ChatGPT Images 2.5 API
Complete API reference for ChatGPT Images 2.5 client models.
Model Variants
This API supports two model variants:
Quick Comparison
Supported Aspect Ratios
16:9, 9:16, 1:1, 3:2, 2:3, 3:4, 4:3, 5:4, 4:5, 21:9
ChatGPT Images 2.5 Client (Text-to-Image)
Endpoint
POST /api/v1/image/task
Authentication
Authorization: Bearer YOUR_API_KEY
Request Parameters
Required
Note: The width:height ratio must be one of: 16:9, 9:16, 1:1, 3:2, 2:3, 3:4, 4:3, 5:4, 4:5, 21:9
Example Request
javascript
ChatGPT Images 2.5 Edit Client (Image Editing)
Endpoint
POST /api/v1/image/task
Request Parameters
Required
Note: The width:height ratio must be one of: 16:9, 9:16, 1:1, 3:2, 2:3, 3:4, 4:3, 5:4, 4:5, 21:9
Single Image Edit Example
javascript
Multi-Image Composition Example
javascript
Response Format
Initial Response
Both ChatGPT Images 2.5 variants return a task_id for polling:
json
Polling Response
Poll GET /api/v1/image/{task_id} to check status:
json
Status Values
submitted: Task acceptedprocessing: Image generation or editing in progresssucceed: Task completed successfullyfailed: Task failed
Processing Time
Typical processing time is 15-60 seconds depending on prompt complexity and image count for edit requests.
Best Practices
- Be explicit about composition: ChatGPT Images 2.5 performs best when prompts describe subject, framing, lighting, and intended style clearly.
- Match aspect ratio to delivery target: Set the ratio up front for social posts, banners, product pages, or editorial layouts.
- Use clean source images for edits: Sharp, well-lit inputs improve identity preservation and local edit quality.
- Limit multi-image requests to strong references: For edit requests, provide only the images that matter to avoid conflicting visual guidance.