← All models
State-of-the-art image generation model
images
Details
- Accepts
- text + image
Pricing
- Input
- 625 cr / 1M tokens
- Output
- 1250 cr / 1M tokens
- Image input
- 1000 cr / 1M tokens
Prices in credits (1 credit = $0.01).
Data schema
approximateInput
| Field | Type | Description |
|---|---|---|
| n | integer | Number of outputs. |
| size | stringenum: 1024x1024, 1024x1536, 1536x1024, auto | |
| promptrequired | string | The text prompt. |
| quality | stringenum: low, medium, high, auto | |
| background | stringenum: transparent, opaque, auto | |
| output_format | stringenum: png, webp, jpeg | |
| image | string | Input image (URL or data URI). |
| user_id | string | An optional unique identifier representing your end-user. This helps OpenAI monitor and detect abuse. |
| moderation | —enum: auto, low | Content moderation level |
| aspect_ratio | —enum: 1:1, 3:2, 2:3, 4:3, 3:4, 16:9… | The size of the generated image. Use 'auto' to let the model pick. Sizes above 2560x1440 are experimental and may give more variable results. |
| input_images | array | A list of images to use as input for the generation |
| openai_api_key | string | Your OpenAI API key (optional - uses proxy if not provided) |
| number_of_images | integer | Number of images to generate (1-10) |
| output_compression | integer | Compression level (0-100%) |
Output
| Field | Type | Description |
|---|---|---|
| images | array | Generated images ([{ url }]). |