New video model APIs are live — view system announcements
Back to model catalog
ImageOpenAISave 20-34%

GPT Image 2 API

GPT Image 2 is exposed through Pixapi for high-quality image generation and editing with low, medium, high, and auto quality tiers plus custom output sizes.

LatestQuality tiersText to imageImage to image

Pricing details

Transparent usage pricing with no hidden fees. Pay only for successful outputs.

Credits by size and quality

Credits per image are determined by output size tier and quality. quality=auto is billed as high. Reference prices use OpenAI square (highest) 1K rates, scaled by size for 2K/4K.

RuleCreditsNotes
1K · low1 / imageLong edge <= 1536px. size=auto defaults to 1K. Reference vs OpenAI square rates; savings ~20%.
1K · medium4 / imageLong edge <= 1536px. Official square ~$0.053/image; savings ~25%.
1K · high / auto14 / imageLong edge <= 1536px. quality=auto billed as high. Official square ~$0.211/image; savings ~34%.
2K · low2 / imageLong edge <= 2048px. Reference vs OpenAI square rates; savings ~20%.
2K · medium17 / imageLong edge <= 2048px. Official square-scaled ~$0.225/image; savings ~24%.
2K · high / auto67 / imageLong edge <= 2048px. quality=auto billed as high. Official square-scaled ~$1.010/image; savings ~34%.
4K · low4 / imageLong edge <= 3840px. Reference vs OpenAI square rates; savings ~20%.
4K · medium34 / imageLong edge <= 3840px. Official square-scaled ~$0.451/image; savings ~25%.
4K · high / auto133 / imageLong edge <= 3840px. quality=auto billed as high. Official square-scaled ~$2.005/image; savings ~34%.

* Final billing follows the actual model output and dashboard records.

gpt-image-2 API facts

These fields are the citable integration facts for this model page.

Canonical model idgpt-image-2
Provider shown on PixapiOpenAI
Supported capabilitiesText to image, Image to image
API endpointsPOST /v1/images/generations, POST /v1/async/images/generations, POST /v1/images/edits, POST /v1/async/images/edits
Required request fieldsmodel, prompt
Returned output fieldscreated, data[].url
Starting credit costfrom 1 Credit/image

gpt-image-2 professional API access

GPT Image 2

Pixapi connects gpt-image-2 from OpenAI behind one production-ready API contract, covering authentication, credit metering, response normalization, and dashboard visibility.

Get key

gpt-image-2

Model ID

OpenAI

Provider

from 1 Credit/image

Starting cost

2

Capabilities

Model features

Production capabilities for builders who need reliable creative model access.

Text-to-image and editing

Use /v1/images/generations for prompts and /v1/images/edits when input images are provided.

Quality and size controls

Choose low, medium, high, or auto quality and request preset or valid custom sizes.

Gemini fallback friendly

When GPT Image 2 capacity is constrained, compare with Gemini 3 Pro Image Preview or Gemini 3.1 Flash Image Preview.

Unified API contract

Use GPT Image 2 without provider-specific account setup, signatures, or response mapping.

Enterprise stability

Redundant infrastructure, request tracing, and a 99.9% availability target for production traffic.

Fast asset delivery

Generated media can be stored and distributed through Pixapi's global delivery layer.

Credit billing

Track usage and remaining credits from one dashboard across your connected models.

Use cases

Typical workflows where teams connect this model through Pixapi.

High-fidelity creative assets

Generate polished application graphics, campaign visuals, and commercial compositions.

Text and layout sensitive images

Use GPT Image 2 when prompt adherence, readable text, or precise composition matters.

Large-format output

Request 2K or 4K-style custom sizes when your workflow needs larger assets.

Application integration

Embed GPT Image 2 in SaaS products, internal tools, automations, and user-facing workflows.

Batch production

Run high-volume creative jobs with consistent costs, retries, and operational visibility.

Quick start

Connect the model in minutes with the same API key and billing account.

1

Create an account

Sign up for Pixapi and open your developer dashboard.

2

Add credits

Recharge once and use the balance across supported models.

3

Generate a key

Create an API key, choose the model id, and send your first request.

Frequently asked questions

What size values does GPT Image 2 accept?

Use auto, common preset sizes, or custom WIDTHxHEIGHT values that follow the provider limits.

How is GPT Image 2 priced?

GPT Image 2 starts at 1 credit per image. Credits follow the docs matrix: 1K low/medium/high is 1/4/14, 2K is 2/17/67, and 4K is 4/34/133. quality=auto is billed as high.

Does GPT Image 2 support editing?

Yes. Use /v1/images/edits with image URLs in the JSON image field.