OpenAI logo

OpenAI: GPT Image 1.5 API

openai/gpt-image-1.5
Playground

GPT Image 1.5 API is retained for applications already built around this OpenAI image version. It accepts text and image input through the Images API, but OpenAI marks the upstream model deprecated. [1]

Compatibility is the reason to select 1.5: existing prompts and image pipelines can keep their model ID while teams test a move to GPT Image 2. New projects should account for the deprecation before committing. [1][2]

MODALITIES
Price$2.5 / $16 / 1MCONTEXTN/A

Playground

Test GPT Image 1.5 API with representative production prompts before using gpt-image-1.5 in a live workflow.

Providers

OpenAI lists GPT Image 1.5 API with text and image input and image output but does not publish a context-window value. APINEED routing and prepaid rates are identified separately. [1]

API Need50% off
Uptime
Total Context
N/A
Max Output
N/A
Input
$2.5/ 1M
Output
$16/ 1M
Cache Read
$0.625/ 1M
Cache Write
Route priced

Discount

Its listed input rate is lower than GPT Image 1, while image output follows its own upstream pricing field. APINEED applies a 50% discount to the catalog rates. The table compares official GPT Image 1.5 API pricing with the APINEED prepaid rate.

Official
Provider baseline
Input $5/ 1MOutput $32/ 1M
Baseline

Availability

APINEED continuously monitors GPT Image 1.5 API access and keeps requests on healthy capacity.

System statusLast 90 days
APINEED GATEWAY99.15% uptime

Quick Start

Call GPT Image 1.5 API through the Images API, then decode the base64 response. Keep regression prompts and reference images when planning migration. The endpoint still returns base64 data, so transport code can remain stable while the model ID changes. [2]

1

Get your API key

Create an APINEED key for GPT Image 1.5 API and keep it in an environment variable.

export API_NEED_API_KEY=sk-apineed-v1-...
2

Generate and save an image

Send model and prompt to /v1/images. Each item in data contains a base64-encoded image.

import os
import base64
import requests

response = requests.post(
    "https://apineed.com/v1/images/generations",
    headers={
        "Authorization": f"Bearer {os.environ['API_NEED_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={
        "model": "openai/gpt-image-1.5",
        "prompt": "A serene mountain landscape at sunset with dramatic clouds",
    },
)
response.raise_for_status()

for i, image in enumerate(response.json().get("data", [])):
    with open(f"output_{i}.png", "wb") as file:
        file.write(base64.b64decode(image["b64_json"]))
3

Use supported image controls

GPT Image 1.5 API accepts the controls listed for gpt-image-1.5; omit unsupported fields from image requests.

{
  "model": "openai/gpt-image-1.5",
  "prompt": "A serene mountain landscape at sunset with dramatic clouds",
  "quality": "high",
  "background": "transparent",
  "n": 1,
  "output_compression": 90
}

GPT Image 1.5 API Endpoint

Submit GPT Image 1.5 API generation or editing requests here. The API returns base64 images and can stream partial results when the model supports SSE. [2]

POST/v1/images/generations
Authorization
Bearer $API_NEED_API_KEY
Content-Type
application/json
HTTP-Referer
optional - your site URL, for rankings
Model
openai/gpt-image-1.5

Parameters

GPT Image 1.5 API image controls on the dedicated Images API, based on OpenAI metadata for openai/gpt-image-1.5. [1][2]

NameTypeValuesDescription
qualityenumauto, low, medium, highControls image rendering quality.
backgroundenumauto, transparent, opaqueControls whether the generated image uses an automatic, transparent, or opaque background.
nrange1-10Sets the number of images returned in one request.
input_referencesrange0-16Sets the number of reference images accepted for image-to-image generation or editing.
output_compressionrange0-100Sets JPEG or WebP compression from 0 to 100. It is ignored for PNG output.

GPT Image 1.5 API Q&A

Model-specific answers for teams comparing GPT Image 1.5 API on capability, benchmark evidence, integration, and cost.

Is GPT Image 1.5 API deprecated?

Yes. OpenAI marks the upstream model deprecated; APINEED retains it for compatibility with existing image workflows.

Should a new project start with GPT Image 1.5 API?

Usually evaluate GPT Image 2 first. Choose 1.5 when compatibility or validated legacy behavior is a specific requirement.

Can I migrate without changing response decoding for GPT Image 1.5 API?

Both models use the Images API and return base64 image data, so the transport layer can remain similar while prompts are revalidated.

What should a migration test include for GPT Image 1.5?

For GPT Image 1.5 API, reuse production prompts and references, then compare edit fidelity, output format, artifacts, text rendering, latency, and accepted-image cost.

Which endpoint serves GPT Image 1.5 API?

Send GPT Image 1.5 API requests to https://apineed.com/v1/images with gpt-image-1.5 as the model value. The data array returns base64-encoded images.

How do I validate GPT Image 1.5 API before release?

Test GPT Image 1.5 API with production prompts, reference images, supported controls, and an accepted-output cost target before shifting live image traffic.

How to Deploy the GPT Image 1.5 API on apineed.com

Deploy GPT Image 1.5 API through APINEED after validating its model-specific trade-offs above. The API key, credit, and endpoint flow stays consistent across the catalog.

1

Add credits for GPT Image 1.5 API

Add credits on APINEED before deploying the GPT Image 1.5 API. Pay-as-you-go billing lets usage start small and scale with production traffic.

2

Get your API key

Create an APINEED API key for the GPT Image 1.5 API. The same key can call GPT Image 1.5 and other AI APIs through apineed.com.

3

Set the model slug

Use gpt-image-1.5 as the model value when you deploy the GPT Image 1.5 API. Keep the APINEED base URL at https://apineed.com/v1.

4

Generate images with GPT Image 1.5 API

Send text or image prompts to the GPT Image 1.5 API from your app, workflow, or agent. Image output returns through one APINEED API layer.

More models from OpenAI