New API
  • Home
  • Docs
  • Console
  • AgentAgentHotHot
  • Partners
Sign in
Model/Details
Loading…
Home / Pricing / Models / gpt-image-2

gpt-image-2 API Pricing & Access

GPT Image2 is our most advanced image generation model, supporting fast, high-quality image generation and editing. It supports flexible image sizes and high-fidelity image input. Azure and OpenAI group support full parameters.

Pricing by group

USD per 1M tokens. Price = base price × group ratio.

GroupInputOutputCache readAbout this group
Codex-Gpt-2$0.2942$1.765$0.1177Moderate discount, moderate operational stability
Codex-Gpt-3$0.3676$2.206$0.1471Minor discount, excellent operational stability
Azure-Gpt-4$2.20$13.20$0.88Standard discount, reliable stability
Openai-Gpt-1$2.941$17.647$1.176More attractive discount, may queue at peak hours
Azure-Gpt-5$3.00$18.00$1.20Minor discount, consistent operational stability
Openai-Gpt-2$3.676$22.059$1.471Favorable discount, more stable runtime performance
Azure-Gpt-6$4.50$27.00$1.80Minimal discount, excellent stability

Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table above and your console.

Capabilities

Provider
OpenAI
Features
Painting
API formats
OpenAI Image Edit · OpenAI Images

Quick start

Base URL: https://api.openlux.ai/v1. Create an API key in the console and replace YOUR_API_KEY in the examples.

curl · /v1/images/generations
curl https://api.openlux.ai/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-image-2", "prompt": "A cat sitting on a windowsill"}'
Python · OpenAI SDK
from openai import OpenAI

client = OpenAI(base_url="https://api.openlux.ai/v1", api_key="YOUR_API_KEY")
img = client.images.generate(model="gpt-image-2", prompt="A cat sitting on a windowsill")
print(img.data[0])

Full parameters in the API docs

FAQ

How do I call the gpt-image-2 API?

Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and use gpt-image-2 as the model name.

How is the gpt-image-2 API billed?

Pay as you go: input and output tokens are priced separately, and the price depends on the group you choose. At build time the lowest public group was $0.2942 per 1M input tokens and $1.765 per 1M output tokens. Top-ups start at $1.

How is prompt caching billed for gpt-image-2?

Cache hits (cache reads) cost 0.4× the input price.

Is there a Batch API?

Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.

Which API formats does gpt-image-2 support?

OpenAI Image Edit, OpenAI Images.

More

More OpenAI models

  • gpt-6.1-sol
  • gpt-6.2-astra
  • gpt-6-astra
  • gpt-5.6-sol
  • gpt-5.5
  • gpt-6.2-sol
  • gpt-image-2.5-sunburst
  • gpt-5.6-luna
  • gpt-6-luna
  • gpt-6-sol
  • gpt-image-2.5-sunburst-c
  • gpt-5.4
  • Model directory
  • All model pricing
  • Sign up and get an API key

Other languages: 中文 · 日本語 · 한국어

New API

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Legal

  • Terms
  • Privacy
  • Usage
  • Disclaimer
  • Refunds
  • DPA
  • Compliance
  • Imprint

Docs

  • API
  • AI News
  • Announcements

More

  • Agent

One API for mainstream AI models

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

New API

One API for mainstream AI models

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Docs

  • API
  • AI News
  • Announcements

More

  • Agent

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

Privacy | Terms | Usage | Disclaimer | Refunds | DPA | Compliance | Imprint |