Skip to main content
POST
Image generation
Generate images from a text prompt. Supports OpenAI, Google Gemini, and Imagen models.

Authenticate

Use an API key in the Authorization header.

Request body

string
required
Image generation model ID to use. See available image models for the full list.Examples: dall-e-3, imagen-4, imagen-4-ultra, gemini-3-pro-image-preview
string
required
Text description of the image to generate.
integer
default:"1"
Number of images to generate. Most models support 1.
string
default:"1024x1024"
Dimensions of the generated image. Supported sizes vary by model.DALL-E 3: 1024x1024, 1024x1792, 1792x1024
string
default:"standard"
Image quality. Options: standard, hd. Supported on DALL-E 3.
string
default:"url"
Format of the returned image. Options: url, b64_json.

Response

integer
Unix timestamp of when the image was created.
array
Array of generated image objects.

Examples