Generations

Get a generation

Changed on

Poll for generation status and output. On completion, the response includes presigned URLs to download the generated images.

get/generations/{generation_id}

Request

  • Base URL
    https://agents.lumalabs.ai/v1
  • Auth
    HTTP bearer

Path parameters

generation_id, string uuid required

Generation UUID returned by POST /generations

Response

Generation status

GenerationResponse required

Generation status and output

id, string uuid required

Generation identifier

type, 'image' | 'image_edit' | 'video' | 'video_edit' | 'video_reframe' | 'layering' required

The kind of generation to perform

state, 'queued' | 'processing' | 'completed' | 'failed' required

Current state of the generation

model, 'uni-1' | 'uni-1-max' | 'ray-3.2' required

Model used

created_at, string required

Creation timestamp

output, GenerationOutput[]

Generated outputs (populated on completion)

failure_reason, string nullable

Human-readable failure description

failure_code, 'content_moderated' | 'generation_failed' | 'budget_exhausted' | 'output_not_found' | 'image_too_large' | 'unsupported_format' | 'corrupt_input' | 'invalid_request' | 'rate_limited' nullable

Machine-readable failure code for programmatic handling

Changes

    • warning

      added the new layering enum value to the type response property for the response status

    • info

      added the optional property output/items/layer to the response with the status

    • warning

      added the new ray-3.2 enum value to the model response property for the response status

    3 more changes in this revision