Generate images from text prompts

Creates images based on a text prompt using AI image generation models. Supported models include openai/dall-e-2, openai/dall-e-3, and openai/gpt-image-1. For detailed information about request and response parameters, see OpenAI Images API.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Request parameters follow OpenAI Images API format. See OpenAI documentation for details.

string
required

Text description of the desired image. Maximum length: 1000 chars for dall-e-2, 4000 chars for dall-e-3.

string

Model for image generation in <provider>/<model> format.

integer
1 to 10
Defaults to 1

Number of images to generate. For dall-e-3, only n=1 is supported.

string
enum
Defaults to standard

Image quality. hd creates images with finer details. Only supported for dall-e-3.

Allowed:
string
enum
Defaults to url

Format of the returned images.

Allowed:
string
enum
Defaults to 1024x1024

Image size. dall-e-2: 256x256, 512x512, 1024x1024. dall-e-3: 1024x1024, 1792x1024, 1024x1792.

Allowed:
string
enum
Defaults to vivid

Image style. Only supported for dall-e-3.

Allowed:
string

Optional end-user identifier for abuse monitoring.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json