Image models
gpt-image-1.5
On this page
gpt-image-1.5 — fast, high-fidelity AI image generation & editing.
| modelId | gpt-image-1-5-text-to-image |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | Endpoint | Description |
|---|---|---|
| Text to image | POST /api/v1/generate | Base generation from a text prompt. |
| Poll task | GET /api/v1/task/{id}?model=gpt-image-1-5-text-to-image | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | textarea | required | Enter your text here... |
| aspect_ratio | select | required | 1:1, 2:3, 3:2 |
| quality | select | required | medium, 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"}}'