Create a generation
Submit an image generation or edit job. Returns immediately with an opaque job ID to poll via GET /generations/{id}.
Parameters
Reference images for style/content guidance. Up to 9 for type 'image', up to 8 for type 'image_edit'.
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.
Reference image for guided generation. Provide either url or inline base64 data (not both).
Your end-user's stable opaque identifier (no PII). Forwarded to upstream model providers as their per-user tagging field so trust & safety violations can be attributed to a specific end-user rather than the whole API account. Also used for per-end-user usage breakdowns in /v1/usage. Strongly recommended for partner integrations.
Create a generation
luma-agents-cli generations create \
--auth-token 'My Auth Token' \
--prompt 'A glass of iced coffee on a marble countertop, morning light streaming through a window'{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "created_at",
"model": "uni-1",
"state": "queued",
"type": "image",
"failure_code": "content_moderated",
"failure_reason": "failure_reason",
"output": [
{
"type": "type",
"url": "https://example.com"
}
]
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "created_at",
"model": "uni-1",
"state": "queued",
"type": "image",
"failure_code": "content_moderated",
"failure_reason": "failure_reason",
"output": [
{
"type": "type",
"url": "https://example.com"
}
]
}