Generations
Get a generation
Changed onPoll for generation status and output. On completion, the response includes presigned URLs to download the generated images.
get/generations/{generation_id}
Request
- Base URLhttps://agents.lumalabs.ai/v1
- AuthHTTP bearer
Path parameters
generation_id, string uuid required
Generation UUID returned by POST /generations
Response
Generation status
Generation Response 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, Generation Output[]
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
layeringenum value to thetyperesponse property for the response status - info
added the optional property
output/items/layerto the response with the status
- warning
- warning
added the new
ray-3.2enum value to themodelresponse property for the response status
3 more changes in this revision
- warning