Skip to main content
POST
/
v3
/
gpt-image-2-light-text-to-image
GPT Image 2 Light Text-to-Image
curl --request POST \
  --url https://api.highwayapi.ai/v3/gpt-image-2-light-text-to-image \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "size": "<string>",
  "prompt": "<string>",
  "background": "<string>",
  "moderation": "<string>"
}
'
{
  "images": [
    {}
  ]
}
GPT Image 2 Light Text-to-Image API, billed by output resolution.

Request Headers

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

Request Body

size
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
prompt
string
required
Describe the content of the image to create.
background
string
default:"auto"
Output image background mode.Optional values: opaque, auto
moderation
string
default:"auto"
Content moderation intensity in generation mode.Optional values: auto, low

Response Information

images
array
List of generated image URLs.