Skip to main content
POST
Image generation
Generate images from a natural-language description.

Request

Parameters

Response

The url is usually valid for only 1 hour — download it or copy it to your own storage. With response_format: "b64_json", base64 is returned:

DALL·E 3 notes

  • Only n=1; call multiple times to generate several images.
  • The prompt is automatically rewritten by the model; the returned revised_prompt is the prompt actually used.
  • No mask editing support (use images/edits).

gpt-image-1 notes

  • Supports n > 1 to generate multiple images at once.
  • Supports three quality tiers with notable price differences.
  • Supports a transparent background (background: "transparent").

Billing

A fixed charge per model × size × quality × count, unlike token billing. The specific multipliers shown in Console → Models are authoritative.