You can use the Gizmo Asset API to generate simulation-ready 3D assets from text or reference images. Each asset comes with a visual mesh, collision geometry, physics properties and joints, and exports to Isaac Sim (USD/USDZ), MuJoCo (MJCF), Gazebo (SDF) or GLB.
CONNECTION
- Base URL: https://api.gizmo.antimlabs.com (every path below starts with /v1).
- Send "Authorization: Bearer $GIZMO_API_KEY" on every request. Read the key from the environment. Never print it, commit it or put it in browser code.
- GET /v1/whoami confirms the key works and shows whether it is a Personal or Team key.
- Generation spends credits. Confirm the list of assets with me before submitting more than a few.
GENERATE ONE ASSET
1. POST /v1/assets with a new unique "Idempotency-Key" header and JSON {"prompt": "..."}.
Describe size, materials, appearance and moving parts, for example "A 60 cm oak nightstand with one drawer that slides out".
Optional fields:
- "reference_image_urls": ["https://..."] for public images. URLs must serve image bytes directly; redirects are not followed.
- "reference_images": [{"image_id": "...", "view": "front"}] for local files. Upload them first with POST /v1/images (multipart, one "files" field per file). Views: front, back, left, right, top, bottom, perspective, detail. Up to 8 references per asset in total.
- "interactions": ["Pull the drawer fully open and push it closed"] to say how the asset will be used.
- Variations: "appearance_variants": true, "variant_count": 1-10, "variant_mode": "appearance" (materials only), "geometry" (shape or size) or "both", and optional "variant_guidance": "...".
2. The 202 response contains job_id. Save it together with the idempotency key and request body. If a response is lost, retry with the SAME key and SAME body. Never create a new key just because a request timed out.
3. Poll GET /v1/jobs/{job_id}?include_result=true every 30-60 seconds until job.status is succeeded, failed or cancelled. Most assets take 10-50 minutes. Disconnecting does not stop generation.
4. On success, the asset ID is result.asset.id. Variations are listed in job.variant_assets; each entry with status "ready" has its own assetId to download.
5. On failure, report job.error to me. Do not resubmit automatically.
GENERATE MANY ASSETS
- POST /v1/batches with an Idempotency-Key and {"items": [{"custom_id": "mug-001", "input": {"prompt": "..."}}]}. Each input accepts the same fields as POST /v1/assets.
- Personal keys accept up to 50 items per batch. A Personal account runs up to 20 generations at a time, and batch items start automatically as slots free up. Do not resubmit queued items.
- A single POST /v1/assets beyond 20 in progress returns 429 concurrency_limit_exceeded. Use a batch instead, or wait for Retry-After.
- Poll GET /v1/batches/{batch_id} about once a minute. Read items from GET /v1/batches/{batch_id}/items?limit=100 and follow next_cursor while has_more is true.
- For each succeeded item, GET its result_url (the job) and read result.asset.id. Keep the custom_id to asset_id mapping.
- A completed batch can still contain failed items. Check every item.
DOWNLOAD
- POST /v1/assets/{asset_id}/export?format=FORMAT with no body returns file bytes, not JSON.
usd, mjcf and sdf return a .zip; usdz returns a .usdz file; glb returns a .zip with visual.glb, collision.glb and physics.json.
- Check the HTTP status and Content-Type before saving. Never save an error body as an asset file.
- In collision.glb every mesh node is one convex hull: load each node as its own hull and do not re-decompose. If collision_hybrid_convex.glb and collision_hybrid_sdf.glb are present, use that pair instead. physics.json lists the collider files under "colliders".
- List assets with GET /v1/assets?limit=20 and follow next_cursor while has_more is true.
CANCEL
- POST /v1/jobs/{job_id}/cancel or POST /v1/batches/{batch_id}/cancel, then poll until the status is final.
ERRORS
- Error bodies look like {"detail": {"error": {"code": "...", "message": "...", "status": 402}}}. Keep the X-Request-ID header for support.
- 402 insufficient_credits: stop and tell me to add credits.
- 429: wait for Retry-After, then retry.
- 409: read the code. idempotency_key_reused means the key was already used with a different body.
- 500/503: retry with backoff using the same Idempotency-Key.
TEAM KEYS
- Idempotency-Key is required on every generation. Batches can be larger than 50 items. variant_count is 1-9.
- Use polling. Live job events, GET /v1/usage and DELETE /v1/assets return 403 workspace_route_unavailable for Team keys; do not retry that error.
REPORT BACK
For each asset: the custom_id or prompt, job_id, asset_id, final status or exact error, the saved file paths, and any variations.
Guides: https://docs.gizmo.antimlabs.com/api-access
OpenAPI: https://docs.gizmo.antimlabs.com/openapi.json