> ## Documentation Index
> Fetch the complete documentation index at: https://docs.worldlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# API reference

> Browse Marble Public API endpoints by resource.

The Marble Public API is organized around the resources you use to create and
manage generated worlds.

> [card] [Worlds](https://docs.worldlabs.ai/api/reference/worlds.md)
>
> Create worlds, list API-generated worlds, retrieve generated assets, and
> delete worlds you own.

> [card] [Media assets](https://docs.worldlabs.ai/api/reference/media-assets.md)
>
> Prepare uploads for input images or videos, then reference those assets in
> world generation requests.

> [card] [Operations](https://docs.worldlabs.ai/api/reference/operations.md)
>
> Poll long-running generation and pano jobs until they complete or fail.

> [card] [Pano](https://docs.worldlabs.ai/api/reference/pano.md)
>
> Generate an RGB panorama from depth input and a text description.

> [card] [Credits](https://docs.worldlabs.ai/api/reference/credits.md)
>
> Check the remaining API credit balance for the authenticated account.

## Common workflow

**1. Upload input media when needed**

Use [Prepare media asset upload](https://docs.worldlabs.ai/api/reference/media-assets/prepare-upload.md)
for local images or videos that should become world-generation inputs.

**2. Start a world generation job**

Use [Generate a world](https://docs.worldlabs.ai/api/reference/worlds/generate.md) with a supported
world prompt.

**3. Poll the operation**

Use [Get an operation](https://docs.worldlabs.ai/api/reference/operations/get.md) with the returned
`operation_id` until `done` is `true`.

**4. Retrieve the world**

Use [Get a world](https://docs.worldlabs.ai/api/reference/worlds/get.md) to fetch the final world
metadata and generated asset URLs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.