🤖

GPT Image 1.5 API

active

OpenAI'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/generations
Send a POST request with your API key to generate content using GPT Image 1.5.

Headers

HeaderТипОбязательноОписание
AuthorizationstringОбязательноBearer YOUR_API_KEY
Content-TypestringОбязательноapplication/json

Body Parameters

ПараметрТипОбязательноОписание
modelstringОбязательноModel identifier: "gpt-image-1-5"
promptstringОбязательноText description of the image to generate
aspect_ratiostringНеобязательноOutput aspect ratio: "1:1", "2:3", or "3:2" (По умолчанию: 1:1)
qualitystringНеобязательноImage quality: "medium" (10 credits) or "high" (28 credits) (По умолчанию: medium)
input_urlsarrayНеобязательно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:

Песочница APIPOST

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 →