🤖
GPT Image 1.5 API
activeOpenAI's GPT Image 1.5 — multimodal image generation and editing with text rendering capabilities.
OpenAIimage10 credits/call
Provider
OpenAI
Pricing
10–28 credits per image (~$0.02–$0.056)
Speed
3–10 seconds
Output
image
Quick Start
Send a request to the GPT Image 1.5 API:
bash
curl -X POST https://apiin.one/api/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-1-5",
"prompt": "A modern logo design for a coffee shop called \"Bean & Brew\" with clean typography",
"quality": "medium",
"aspect_ratio": "1:1"
}'API Endpoint
POST
/api/v1/images/generationsSend a POST request with your API key to generate content using GPT Image 1.5.
Headers
| Header | 类型 | 必填 | 描述 |
|---|---|---|---|
Authorization | string | 必填 | Bearer YOUR_API_KEY |
Content-Type | string | 必填 | application/json |
Body Parameters
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
model | string | 必填 | Model identifier: "gpt-image-1-5" |
prompt | string | 必填 | Text description of the image to generate |
aspect_ratio | string | 可选 | Output aspect ratio: "1:1", "2:3", or "3:2" (默认值: 1:1) |
quality | string | 可选 | Image quality: "medium" (10 credits) or "high" (28 credits) (默认值: medium) |
input_urls | array | 可选 | Array of image URLs for editing mode |
Example Request
json
{
"model": "gpt-image-1-5",
"prompt": "A modern logo design for a coffee shop called \"Bean & Brew\" with clean typography",
"quality": "medium",
"aspect_ratio": "1:1"
}Example Response
Successful task creation response.
{
"code": 200,
"message": "success",
"data": {
"task_id": "n42xxxx_gptimg",
"status": "IN_PROGRESS"
}
}Check Task Status
For asynchronous tasks, poll the status endpoint to check when your task is complete:
GET
/api/v1/tasks/{task_id}Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.
bash
curl https://apiin.one/api/v1/tasks/task_abc123 \
-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:
API 测试沙盒POST
Error Codes
{
"error": {
"code": 400,
"message": "Invalid parameters",
"type": "invalid_request"
}
}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?
1Superior text rendering in images
2Image editing capabilities
3Up to 80% cheaper than OpenAI direct
4No OpenAI API key or account needed
Ready to use GPT Image 1.5?
Get Your API Key →