Prerequisites
An API key from the developer settings.1. Set your API key
Export your API key as an environment variable.2. Generate an image
Send a request to the image generation endpoint with a model and prompt.data array with the generated image and the download URL you need next.
3. Download your image
Theurl in each data item is a signed download URL. Download the file before the deletes_at timestamp.
Next steps
Generate images
Explore reference images, output formats, and response handling.
Generate videos
Learn the async submit, poll, and download flow.
Models
Check current model availability in the dashboard.
Models guide
Learn how to list and choose models with
GET /v2/models.