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

# Get World Status

> Retrieves the status and result of a World Labs Marble world generation task

Poll this endpoint to check the status of a World Labs Marble generation task. If the create response included `poll_url`, prefer calling that exact URL.

## Path Parameters

<ParamField path="id" type="string" required>
  World generation task ID.
</ParamField>

## Response

<ResponseField name="id" type="string">
  Public task ID.
</ResponseField>

<ResponseField name="task_id" type="string">
  Async task identifier alias.
</ResponseField>

<ResponseField name="operation_id" type="string">
  World Labs operation ID.
</ResponseField>

<ResponseField name="status" type="string">
  Task status: `pending`, `processing`, `completed`, `failed`, or `timeout`.
</ResponseField>

<ResponseField name="world_id" type="string">
  World Labs world ID when completed.
</ResponseField>

<ResponseField name="world_marble_url" type="string">
  URL for the generated Marble world when completed.
</ResponseField>

<ResponseField name="model_url" type="string">
  Alias for the primary generated world/model URL.
</ResponseField>

<ResponseField name="glb_url" type="string">
  Collider mesh GLB URL when available.
</ResponseField>

<ResponseField name="pano_url" type="string">
  Panorama image URL when available.
</ResponseField>

<ResponseField name="thumbnail_url" type="string">
  Thumbnail image URL when available.
</ResponseField>

<ResponseField name="caption" type="string">
  Caption for the generated world.
</ResponseField>

<ResponseField name="cost" type="object">
  Generation cost details when available, including `total_credits`.
</ResponseField>

<ResponseField name="error" type="string">
  Error message when the task failed.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.aisonar.dev/v1/worlds/generations/ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
    -H "Authorization: Bearer sk-your-api-key"
  ```

  ```python Python theme={null}
  import requests
  import time

  task_id = "ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

  while True:
      response = requests.get(
          f"https://api.aisonar.dev/v1/worlds/generations/{task_id}",
          headers={"Authorization": "Bearer sk-your-api-key"},
      )
      result = response.json()
      if result["status"] in ["completed", "failed", "timeout"]:
          print(result)
          break
      time.sleep(10)
  ```

  ```javascript JavaScript theme={null}
  const taskId = 'ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
  const response = await fetch(`https://api.aisonar.dev/v1/worlds/generations/${taskId}`, {
    headers: { Authorization: 'Bearer sk-your-api-key' }
  });

  const result = await response.json();
  console.log(result.status, result.world_marble_url);
  ```
</RequestExample>
