Skip to main content
POST
GPT Image 2 Light Text-to-Image
GPT Image 2 Light Text-to-Image API, billed by output resolution.

Request Headers

string
required
Enumerated value: application/json
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

string
default:"1024x1024"
Output image size. The system will match the billing SKU based on this resolution.Optional values: 1024x1024, 1024x1536, 1536x1024, 2048x2048, 2048x1152, 1152x2048, 3840x2160, 2160x3840
string
required
Describe the content of the image to create.
string
default:"auto"
Output image background mode.Optional values: opaque, auto
string
default:"auto"
Content moderation intensity in generation mode.Optional values: auto, low

Response Information

string[]
List of generated image URLs.