We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

OpenAI: GPT-5 Image

openai/gpt-5-image
ImageInput: image · text · fileReasoning400KAdded Oct 14, 2025

Try OpenAI: GPT-5 Image now

Runs on your balance at the prices above. New accounts start with free usage.

Sign in to use thisCreate free account
Results will appear here.
5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign inSession cost $0.00

OpenAI: GPT-5 Image at a glance

  • Input price is 100% higher than the median of 21 Image models.
  • Context window of 400,000 tokens, enough for long documents and multi-turn conversations.
  • Supports structured JSON output with a schema.
  • Supports reasoning effort control.

About OpenAI: GPT-5 Image

GPT-5 Image is a model from OpenAI that combines the GPT-5 language model with image generation capabilities. It sits in the image category while also handling text, so it is a multimodal model rather than a pure image generator. OpenAI released it on 14 October 2025. If you already use GPT-5 for text work, this model extends the same family into image generation and editing.

The model accepts text, images and files as input, and it can produce both text and images as output. Its context window is 400,000 tokens, with a maximum output of 128,000 tokens. On the image side it exposes a set of generation controls: aspect ratio (1:1, 3:2, 2:3 or auto), quality (auto, low, medium or high), background (auto, transparent or opaque), a count n between 1 and 10, up to 16 input references, and output compression from 0 to 100. The presence of input references means you can supply images for the model to work from, which is what makes editing and reference-guided generation possible alongside generation from a text prompt.

Those capabilities point to a fairly broad set of practical uses. You can generate images directly from text prompts and control the shape, quality and background of the result, including transparent backgrounds for assets that need to be composited later. Because the model accepts image and file inputs, you can also use it for image editing or transformation tasks where the source image is passed in as a reference, and for workflows that mix text reasoning with image output, such as producing a written explanation alongside a generated or edited image. The reasoning and structured output parameters suggest it can also be used in pipelines where the text portion needs to be parsed programmatically.

You call the model through api14's OpenAI-compatible API using the model id "openai/gpt-5-image". The supported request parameters are include_reasoning, logprobs, max_tokens, reasoning, response_format, seed, structured_outputs, temperature, top_logprobs, top_p and verbosity. The image-specific controls (aspect ratio, quality, background, n, input references and output compression) are passed as part of the request as well. Because the interface is OpenAI-compatible, existing OpenAI SDK clients and tooling generally work with only the base URL and model id changed.

There is no information here about rate limits, latency or availability, so treat those as unknowns to test against your own workload. If your task is purely text and never touches images, a text-only model in the GPT-5 family may be a simpler fit. If you need image output with strong instruction following and reference images, this model is the one to evaluate first.

How to call the OpenAI: GPT-5 Image API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "openai/gpt-5-image".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.images.generate({
  "model": "openai/gpt-5-image",
  "prompt": "A minimalist product photo of a ceramic mug on a wooden table",
  "n": 1,
  "aspect_ratio": "1:1"
});
import { writeFile } from "node:fs/promises";
await writeFile("image.png", Buffer.from(result.data[0].b64_json, "base64"));

Supported parameters

include_reasoninglogprobsmax_tokensreasoningresponse_formatseedstructured_outputstemperaturetop_logprobstop_pverbosity

Specifications

Context length
400,000
Max output
128,000
Input
image, text, file
Output
image, text

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

OpenAI: GPT-5 Image: frequently asked questions

How much does the OpenAI: GPT-5 Image API cost?
OpenAI: GPT-5 Image costs Input $35.00 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of OpenAI: GPT-5 Image?
OpenAI: GPT-5 Image reads up to 400,000 tokens per request: prompt, history and documents together. It writes up to 128,000 output tokens per response.
What can OpenAI: GPT-5 Image do?
OpenAI: GPT-5 Image accepts image, text, file and returns image, text. It supports structured JSON output, reasoning effort control.
How do I call OpenAI: GPT-5 Image from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-5-image". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to OpenAI: GPT-5 Image?
Comparable Image models at a similar price: OpenAI: GPT Image 1, Microsoft AI: MAI-Image-2.6 Flash, OpenAI: GPT-5.4 Image 2. Each runs through the same API key, so switching is one string.

OpenAI: GPT-5 Image community

New topic

This community has no topics yet. Open the first one about OpenAI: GPT-5 Image.