Skip to content
Docs menu

Image models

gpt-image-1.5

On this page

gpt-image-1.5 — fast, high-fidelity AI image generation & editing.

modelIdgpt-image-1-5-text-to-image
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationEndpointDescription
Text to imagePOST /api/v1/generateBase generation from a text prompt.
Poll taskGET /api/v1/task/{id}?model=gpt-image-1-5-text-to-imageRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredEnter your text here...
aspect_ratioselectrequired1:1, 2:3, 3:2
qualityselectrequiredmedium, high

Example request

bash
curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer $YOUBOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"gpt-image-1-5-text-to-image","input":{"prompt":"An origami crane folded from translucent amber paper perched on a moss-covered stone, backlit by a single shaft of forest sunlight, delicate paper fibers glowing, ultra-sharp macro detail.","aspect_ratio":"3:2","quality":"medium"}}'