Start world generation.
Creates a new world generation job and returns a long-running operation. Poll the /operations/ endpoint to check generation status and retrieve the generated world when complete.
Args: request: The world generation request containing world_prompt, display_name, tags, model, seed, and permission settings.
Returns: GenerateWorldResponse with operation_id and timestamps. Use the operation_id to poll for completion.
Raises: HTTPException: 400 if invalid request or content violates policies HTTPException: 402 if insufficient credits HTTPException: 500 if generation could not be started
API key for authentication. Get your key from the developer portal.
Request to generate a world from text, image, multi-image, or video input.
Text-to-world generation.
Generates a world from a text description. text_prompt is REQUIRED.
Optional display name
The model to use for generation
Marble 0.1-mini, Marble 0.1-plus The permission for the world
Random seed for generation
x >= 0Optional tags for the world
Successful Response
Response from world generation endpoint.
True if the operation is completed
Operation identifier
Creation timestamp
Error information if the operation failed
Expiration timestamp
Service-specific metadata, such as progress percentage
Result payload when done=true and no error. Structure depends on operation type.
Last update timestamp