GPT Image 1.5 API
activeOpenAI's GPT Image 1.5 — multimodal image generation and editing with text rendering capabilities.
Quick Start
Send a request to the GPT Image 1.5 API:
| 1 | curl -X POST https://apiin.one/api/v1/images/generations \ |
| 2 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| 3 | -H "Content-Type: application/json" \ |
| 4 | -d '{ |
| 5 | "model": "gpt-image-1-5", |
| 6 | "prompt": "A modern logo design for a coffee shop called \"Bean & Brew\" with clean typography", |
| 7 | "quality": "medium", |
| 8 | "aspect_ratio": "1:1" |
| 9 | }' |
API Endpoint
/api/v1/images/generationsSend a POST request with your API key to generate content using GPT Image 1.5.
Headers
Bearer YOUR_API_KEY
application/json
Body Parameters
Model identifier: gpt-image-1-5
Text description of the image to generate
Output aspect ratio: 1:1, 2:3, or 3:2 Defaults to 1:1.
Image quality: medium (10 credits) or high (28 credits) Defaults to medium.
Array of image URLs for editing mode
Example Request
| 1 | { |
| 2 | "model": "gpt-image-1-5", |
| 3 | "prompt": "A modern logo design for a coffee shop called \"Bean & Brew\" with clean typography", |
| 4 | "quality": "medium", |
| 5 | "aspect_ratio": "1:1" |
| 6 | } |
Example Response
Successful task creation response.
| 1 | { |
| 2 | "code": 200, |
| 3 | "message": "success", |
| 4 | "data": { |
| 5 | "task_id": "n42xxxx_gptimg", |
| 6 | "status": "IN_PROGRESS" |
| 7 | } |
| 8 | } |
Check Task Status
For asynchronous tasks, poll the status endpoint to check when your task is complete:
/api/v1/tasks/{task_id}Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.
| 1 | curl https://apiin.one/api/v1/tasks/task_abc123 \ |
| 2 | -H "Authorization: Bearer aio_your_key" |
Use Cases
- ✓Generate images with accurate text rendering
- ✓Edit existing images with text instructions
- ✓Create marketing assets with embedded typography
- ✓Build AI-powered design tools
API Tester
Test the GPT Image 1.5 API directly from your browser:
Error Codes
| 1 | { |
| 2 | "error": { |
| 3 | "code": 400, |
| 4 | "message": "Invalid parameters", |
| 5 | "type": "invalid_request" |
| 6 | } |
| 7 | } |
Frequently Asked Questions
How much does GPT Image 1.5 cost?
Medium quality costs 10 credits (~$0.02), high quality costs 28 credits (~$0.056). Set via the "quality" parameter.
Can GPT Image 1.5 render text in images?
Yes. GPT Image 1.5 excels at rendering readable text within generated images, unlike most other image models.
Does it support image editing?
Yes. Provide input images via the "input_urls" parameter and text instructions to modify them.
What aspect ratios are supported?
Supported aspect ratios: 1:1, 2:3, and 3:2.
Why Use GPT Image 1.5 Through API in One?
Ready to use GPT Image 1.5?
Get Your API Key →