Image models
GPT-4o Image
On this page
High-fidelity image generation with strong text rendering.
| modelId | gpt-4o-image |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | modelId | Endpoint | Required input |
|---|---|---|---|
| Default | gpt-4o-image | POST /api/v1/generate | prompt, size |
| Poll task | — | GET /api/v1/task/{id}?model=gpt-4o-image | — |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| imageUrl | string | No | Image URL |
| prompt | string | Yes | Text value (default: A watercolor map of a fictional seaside town, hand-lettered street names, tiny sailboats in the bay, pastel palette.) |
| size | string | Yes | Options: 3:2 | 2:3 | 1:1 (default: 3:2) |
| isEnhance | boolean | No | In most cases, enabling this is unnecessary. However, for specific scenarios like generating 3D images, enabling it can produce a more refined effect. Use discretion. (true/false) (default: false) |
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-4o-image","input":{"imageUrl":"https://example.com/input.jpg","prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","size":"3:2","isEnhance":false}}'