Preparing page…
▥ Seedance 2.5 is here! ›
PricingDocsUpdatesAccount

GPT Image 2

High-fidelity image generation and editing for product photography, readable text, and detailed creative workflows.

Warm Official Live Priced by route Data privacy Zero training API docs

Input

prompt*string

A text description of the image you want to generate

route_modestring

Choose the provider route used for this request.

Lower-cost official route and the default for new requests and API keys.
generation_typestring

Select the generation workflow. The API mode updates with this choice.

aspect_ratiostring

Aspect ratio of the generated output

Default: "auto"
resolutionstring

Higher resolutions may take longer to generate.

Default: "1K"
output_formatstring

Format of the output image

countinteger

Number of output images

Indicative cost≈ $0.026 / image · 1K · billed on actual tokens≈ $0.026 for 1 image · official-cheap · 1KBoth routes are billed on the tokens the model returns: official at the provider's published rates, official-cheap at 50% of them. If no usage is returned, the per-image price applies.

Output

Ready for a predictionAdjust the inputs, then run the model.

Examples

View more examples ↗

Pricing

Choose the same two routing tiers used across MLMux. The selected route is included as route_mode in every request.

Learn more about pricing ↗

Token rates

GPT Image 2 is billed on the tokens it returns, per 1M tokens: official at the provider's published rates, official-cheap at 50% of them. If a response carries no usage, the per-image price applies.

Tokensofficialofficial-cheap
Text input$5 / 1M tokens$2.5 / 1M tokens
Image input$8 / 1M tokens$4 / 1M tokens
Image output$30 / 1M tokens$15 / 1M tokens

Readme

GPT Image 2 is available through MLMux with one request shape and two explicit route tiers.

Generate and edit

Use one endpoint for new images, targeted edits, and iterative creative workflows with up to sixteen references.

Work with text

Describe exact headlines, labels, and layout constraints for posters, packaging, and product compositions.

Choose the output

Select a practical aspect ratio, target resolution, file format, and output count for each request.

Model details

Type
image generation
References
Up to 16
Default route
official-cheap

Frequently asked questions

What is GPT Image 2?

GPT Image 2 is an image generation model from OpenAI. On MLMux you can run it in the browser or call it through one API. High-fidelity image generation and editing for product photography, readable text, and detailed creative workflows.

How do I use the GPT Image 2 API?

Create an API key in the MLMux Console, then send a POST request to https://api.mlmux.com/v1/images/generations with the key in the Authorization header and model set to openai/gpt-image-2. The generated images are returned in the response.

What can GPT Image 2 do?

Generation modes: Text to image and Image editing. Each request accepts up to 16 reference images and returns 1K, 2K, or 4K images in aspect ratios such as 1:1, 16:9, 9:16, 4:3, and 3:4.

How much does GPT Image 2 cost?

MLMux is pay as you go, with no subscription or monthly fee, and 1 credit equals 1 US dollar. Each GPT Image 2 request is billed by usage on the route you choose: official, or the lower-cost official-cheap route that is used by default. Current rates are listed in the pricing section of this page.

Can I try GPT Image 2 without writing code?

Yes. Sign in and use the playground at the top of this page to run GPT Image 2 with the same settings as the API. The API tab shows the matching request in Node.js, Python, and HTTP.

More image models

Explore all models ↗
Nano Banana 2.1

Image generation and editing with reference-guided workflows.

Nano Banana 2

Fast image generation and editing.

Nano Banana Pro

Professional image generation.

Seedream 5 Pro

Professional image generation and editing.

GPT Image 2.5 Flare

High-fidelity image generation.

GPT Image 2.5 Sunburst

High-fidelity image generation.

Seedream 4.0

Controlled image generation.

Seedream 4.5

Detailed image generation.

Seedream 5.0

Professional image generation.

Nano Banana

Fast conversational image generation and editing.

Nano Banana 2 Lite

Efficient image generation.

One API for image and video generation.

ModelsPricingDocumentationConsole