World Labs API
Use this skill when the user is working with the published World Labs / Marble Public API v1.
Before answering API-contract questions or writing integration code, read references/api.md. For exact current endpoint and schema details, also inspect references/openapi.yaml.
Working Style
- Authenticate with the
WLT-Api-Keyheader, not bearer auth. - Treat API keys as secrets. Never print, commit, or log a real key.
- Prefer explicit model names such as
marble-1.1ormarble-1.1-plus. - Use media asset uploads for local image/video files before world generation.
- Poll
/marble/v1/operations/{operation_id}untildoneistrue; fetch the world byworld_idwhen the caller needs the latest world object. - Verify against
references/openapi.yamlwhen generating clients or naming request fields.
Common Tasks
- Write curl, Python, TypeScript, or SDK-style examples for world generation, operation polling, world retrieval, media asset upload, and pano depth-to-RGB.
- Generate or update client code from the OpenAPI spec.
- Explain request shapes for text, image, multi-image, video, media-asset, and URL-based world prompts.
- Debug authentication, validation, media upload, operation status, and asset URL issues.