Roar AI
Get started
All models
OpenAI · Image generation

GPT Image 2 API

GPT Image 2 costs $5 per million input tokens and $30 per million output tokens on Roar AI. OpenAI’s image model from April 2026, for pictures up to 4K and edits to your own images, retiring in February.

Input$5per 1M tokens
Output$30per 1M tokens

These are API prices for building with GPT Image 2, billed by what you use. They are not the price of a ChatGPT plan.

GPT Image 2 API pricing

Input$5 per 1M tokens
Output$30 per 1M tokens

Every rate is published and stays the same from one request to the next. See every model.

Rates as of 1 December 2026.

Specs

Made byOpenAI
ReleasedApril 2026
TypeImage generation
ReadsText, images
MakesUp to 3840 px on the longest side, e.g. 1024×1024, 2048×2048, 3840×2160
Edits your imagesYes
WeightsClosed
Processed inGlobal
Model idgpt-image-2

About GPT Image 2

GPT Image 2 is the image model OpenAI released in April 2026, alongside ChatGPT Images 2.0. It makes pictures from a text prompt and changes pictures you send it, including just the part you describe. At launch OpenAI said it led every Image Arena leaderboard; Artificial Analysis now places it sixth for making images and thirteenth for editing them, behind OpenAI’s own 2.5 and 2.6 models.

It works at almost any size up to 3,840 pixels on the longest side, from a square 1024×1024 to a 4K 3840×2160, at low, medium or high quality. OpenAI meters it in tokens, like a chat model: the prompt is input and the picture it makes is output, so a larger or higher-quality picture costs more. A picture you send to edit is billed at its own image-input rate.

OpenAI has scheduled it to shut down on 10 February 2027 and recommends its newer image models instead. It stays on our price list until then, for work already built on it.

What is GPT Image 2 good for?

  • Large pictures, up to 4K, from a text prompt.
  • Changing part of a picture you send it, such as a background or one object.
  • Work already built and tested on it, until it retires.

GPT Image 2 limitations

  • Retiring: OpenAI shuts it down on 10 February 2027. For new work, start with GPT Image 2.6 Flare or Sunburst.
  • No transparent backgrounds.
  • OpenAI says text placed precisely in a picture can still come out wrong, characters and logos may not stay the same between pictures, and a complex prompt can take up to two minutes.

How to use the GPT Image 2 API

Use the OpenAI SDK you already have: point it at Roar AI, set the model name and ask for a picture. Read the docs.

from openai import OpenAI

client = OpenAI(base_url="https://api.roar-ai.com/v1", api_key="roar_live_…")

picture = client.images.generate(
    model="gpt-image-2",
    prompt="A tea plantation at dawn, soft light, wide shot",
    size="1024x1024",
)

GPT Image 2 FAQ

How much does GPT Image 2 cost?

Input is $5 per 1M tokens; output is $30 per 1M tokens.

Can I use GPT Image 2 alongside other models?

Yes. Every model on Roar AI is on the same API key and the same monthly invoice, so switching from GPT Image 2 to another model only means changing the model name in your code.

Is GPT Image 2 open source?

No. OpenAI does not publish the weights, so it is only available through an API like this one.

Can GPT Image 2 edit an image I send it?

Yes. Send it a picture with a prompt saying what to change, through the image edits endpoint, and it returns a new picture.

How is GPT Image 2 billed?

By tokens, like a chat model: the prompt is input, and the picture it makes is output. Larger or higher-quality pictures use more output tokens, so they cost more.

Start using GPT Image 2

Create a free account, get an API key and call GPT Image 2 with the OpenAI SDK.