Create a generation
Submit an image or video generation job. Returns immediately with an opaque job ID to poll via GET /generations/{id}.
Request body
Model identifier. uni-1 is the default image tier; uni-1-max produces higher-quality output than uni-1 at a higher per-image price. ray-3.2 is the public video model for text-to-video, image-to-video, and video-to-video editing.
The kind of generation to perform
Text prompt
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.
Output aspect ratio. Valid values depend on the selected model and generation type; the server validates the final model-specific set.
Style preset for image generation
Output image format
Enable web search grounding — the agent can search the web and download reference images before generating.
Example request
{
"prompt": "A glass of iced coffee on a marble countertop, morning light streaming through a window"
}Response
Generation submitted
Generation identifier
The kind of generation to perform
Current state of the generation
Model identifier. uni-1 is the default image tier; uni-1-max produces higher-quality output than uni-1 at a higher per-image price. ray-3.2 is the public video model for text-to-video, image-to-video, and video-to-video editing.
Creation timestamp
Human-readable failure description
Machine-readable failure code for programmatic handling