Skip to content
lumalabs.ai

Generations

Create a generation
$ luma-agents-cli generations create
POST/generations
Get a generation
$ luma-agents-cli generations get
GET/generations/{generation_id}
ModelsExpand Collapse
generation: object { id, created_at, model, 5 more }

Generation status and output

id: string

Generation identifier

created_at: string

Creation timestamp

model: "uni-1" or "uni-1-max"

Model used

"uni-1"
"uni-1-max"
state: "queued" or "processing" or "completed" or "failed"

Current state of the generation

"queued"
"processing"
"completed"
"failed"
type: "image" or "image_edit"

The kind of generation to perform

"image"
"image_edit"
failure_code: optional "content_moderated" or "generation_failed" or "budget_exhausted" or 6 more

Machine-readable failure code for programmatic handling

"content_moderated"
"generation_failed"
"budget_exhausted"
"output_not_found"
"image_too_large"
"unsupported_format"
"corrupt_input"
"invalid_request"
"rate_limited"
failure_reason: optional string

Human-readable failure description

output: optional array of GenerationOutput { type, url }

Generated outputs (populated on completion)

type: string

Media type (e.g. image)

url: string

Presigned URL (1hr expiry)

generation_failure_code: "content_moderated" or "generation_failed" or "budget_exhausted" or 6 more

Machine-readable failure code for programmatic handling

"content_moderated"
"generation_failed"
"budget_exhausted"
"output_not_found"
"image_too_large"
"unsupported_format"
"corrupt_input"
"invalid_request"
"rate_limited"
generation_output: object { type, url }

A single generated output

type: string

Media type (e.g. image)

url: string

Presigned URL (1hr expiry)

model: "uni-1" or "uni-1-max"

Model identifier. uni-1 is the default tier; uni-1-max produces higher-quality output than uni-1 at a higher per-image price. Both models are available to all accounts — see Pricing for per-image rates.

"uni-1"
"uni-1-max"