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

# API quickstart

> Generate a simulation-ready 3D asset from a prompt or photo, then download it for Isaac Sim, MuJoCo, Gazebo or any GLB viewer.

The Gizmo API turns a text prompt or reference photos into a 3D asset that is ready for simulation: a textured visual mesh, collision geometry, physics properties and working joints. You can export every asset as USD or USDZ (Isaac Sim), MJCF (MuJoCo), SDF (Gazebo) or a GLB bundle.

Generation is asynchronous. You submit a request, get a job ID back straight away, and download the asset when the job finishes (usually 10 to 50 minutes).

> [!TIP]
>
> Using Claude Code, Codex or Cursor? Skip the curl and [hand Gizmo to your agent](https://docs.gizmo.antimlabs.com/use-with-your-agent.md).

## 1. Create a key

Sign in at [gizmo.antimlabs.com](https://gizmo.antimlabs.com), open **API Access**, and create a key. New accounts start with \$20 of credit. Keep the key on your server or in your environment:

```bash theme={null}
export GIZMO_API_KEY="gzm_k1_..."
curl --fail-with-body "https://api.gizmo.antimlabs.com/v1/whoami" \
  -H "Authorization: Bearer $GIZMO_API_KEY"
```

## 2. Generate an asset

```bash theme={null}
curl --fail-with-body -X POST "https://api.gizmo.antimlabs.com/v1/assets" \
  -H "Authorization: Bearer $GIZMO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: cabinet-001" \
  -d '{"prompt": "A wooden cabinet with three sliding drawers"}'
```

The response is `202 Accepted` with a `job_id`. The `Idempotency-Key` makes retries safe: if the response is lost, send the same request with the same key and you get the same job back instead of a second one.

## 3. Wait for it

```bash theme={null}
curl --fail-with-body "https://api.gizmo.antimlabs.com/v1/jobs/JOB_ID?include_result=true" \
  -H "Authorization: Bearer $GIZMO_API_KEY"
```

Poll every 30 to 60 seconds until `job.status` is `succeeded`, `failed` or `cancelled`. Generation keeps running if you disconnect. On success, the asset ID is `result.asset.id`.

## 4. Download it

```bash theme={null}
curl --fail-with-body -X POST \
  "https://api.gizmo.antimlabs.com/v1/assets/ASSET_ID/export?format=usd" \
  -H "Authorization: Bearer $GIZMO_API_KEY" \
  -o cabinet-usd.zip
```

Swap `format=usd` for `usdz`, `mjcf`, `sdf` or `glb`. The response is the file itself.

## Next steps

| I want to | Guide |
| - | - |
| Let a coding agent do all of this | [Use Gizmo from your agent](https://docs.gizmo.antimlabs.com/use-with-your-agent.md) |
| Generate from product photos or several views | [Reference images](https://docs.gizmo.antimlabs.com/api-references.md) |
| See every generation option | [Generate one asset](https://docs.gizmo.antimlabs.com/api-generate.md) |
| Get extra versions of an asset (colors, finishes, sizes) | [Variations](https://docs.gizmo.antimlabs.com/api-variations.md) |
| Generate up to 50 assets in one request | [Batches](https://docs.gizmo.antimlabs.com/api-batches.md) |
| Poll, cancel or retry safely | [Track, cancel & retry](https://docs.gizmo.antimlabs.com/api-jobs.md) |
| Understand the GLB bundle and collider files | [Downloads & bundle formats](https://docs.gizmo.antimlabs.com/api-downloads.md) |
| Understand pricing and limits | [Billing & limits](https://docs.gizmo.antimlabs.com/api-limits.md) |
| Handle an error | [Errors & troubleshooting](https://docs.gizmo.antimlabs.com/api-errors.md) |
| Use a shared Team account | [Authentication & Teams](https://docs.gizmo.antimlabs.com/api-authentication.md) |

The [API Reference](https://docs.gizmo.antimlabs.com/api-reference/assets/generate-an-asset.md) lists every endpoint with its parameters and response schemas. Client tooling can use the [OpenAPI specification](https://docs.gizmo.antimlabs.com/openapi.json).


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