Preparing page…
▥ Seedance 2.5 is here! ›
PricingDocsUpdatesAccount

openai/gpt-image-2

OpenAI's high-fidelity image generation and editing model 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

10 credits · $0.05

Output

GPT Image 2 sample output

Generated in 24.8 seconds

Examples

View more examples ↗

Pricing

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

Learn more about pricing ↗

Readme

GPT Image 2 is available through MLMux with one request shape and three explicit provider routes.

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

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

More image models

Explore all models ↗
googleNano Banana 2

Google's fast image generation model with conversational editing, multi-image fusion, and character consistency.

googleNano Banana Pro

Google's professional image generation and editing model for complex instructions, accurate text, and multi-reference composition.

One API for image and video generation.

ModelsPricingDocumentationConsole