Generate images from text prompts using OpenDunes image generation models.
OpenDunes generates images through the dedicated POST /v1/images/generations endpoint, using models built for image output. Describe what you want in a text prompt and receive a hosted image URL in the response.
The request and response are compatible with the OpenAI images API, so any SDK targeting that spec works unchanged.
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | An image-generation model slug — filter the catalog with ?modality=image |
prompt | string | Yes | Text description of the image to generate |
n | integer | No | Number of images to generate (1–10, model-dependent) |
size | string | No | Output dimensions, e.g. "1024x1024", "1792x1024" |
Generated images are stored on OpenDunes object storage and returned as signed URLs (not raw base64), so responses stay small. Each URL is time-limited, and stored images are retained for a limited time (about two weeks) — download anything you want to keep.
If the provider returns no image, the request fails with 502 no_image and you are not charged.
Image generation is billed in DA per image — n images cost n × the model's per-image rate. Rates vary by model; see the pricing reference and the model detail page.
Some chat models can also return images inline by setting "modalities": ["image", "text"] on a POST /v1/chat/completions request — the image arrives as an images[] part on the assistant message. That is a chat capability, distinct from this dedicated image surface.
Browse results at /models filtered to the image surface.