▥ Seedance 2.5 is here! ›
MODEL MAKER

OpenAI models on MLMux

OpenAI makes the GPT Image models for image generation and editing, strong at text inside images. They are billed on the tokens each image uses, and the default official-cheap route costs 60% of OpenAI's list price.

Models

Every OpenAI model on MLMux, with its options and the estimated price on the default official-cheap route. The official route runs at the list price.

Model and API model IDOptionsPrice on official-cheap (default)
GPT Image 2openai/gpt-image-2Image modelSizes: 1K, 2K, 4KUp to 16 reference images$0.032 per 1K imageofficial: $0.053
GPT Image 2.5 Flareopenai/gpt-image-2.5-flareImage modelSizes: 1K, 2K$0.008 per 1K imageofficial: $0.013
GPT Image 2.5 Sunburstopenai/gpt-image-2.5-sunburstImage modelSizes: 1K, 2K$0.008 per 1K imageofficial: $0.013

Quick start

  1. Create an API key

    Create a key in the console and save it as the MLMUX_API_KEY environment variable.

    Create an API key
  2. Send a request

    The example sends GPT Image 2 (openai/gpt-image-2) to https://api.mlmux.com/v1/images/generations. Change the model ID to any model in the table above.

  3. Read the result

    The response lists the image URLs in data. Add "async": true to get a task to poll instead.

    Image API reference
curl https://api.mlmux.com/v1/images/generations \
  -H "Authorization: Bearer $MLMUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "openai/gpt-image-2",
  "route_mode": "official-cheap",
  "prompt": "A red fox in fresh snow at sunrise, cinematic light",
  "size": "1024x1024",
  "output_format": "png",
  "n": 1
}'

Frequently asked questions

Which OpenAI models can I use on MLMux?

3 models: GPT Image 2, GPT Image 2.5 Flare, and GPT Image 2.5 Sunburst. Each one has its own page with its options, prices and a playground to try it in the browser.

How much do OpenAI models cost on MLMux?

The lowest-cost one is GPT Image 2.5 Flare at $0.008 per 1K image on the default official-cheap route. Every price is pay as you go with no subscription, and failed requests are not charged.

How do I call a OpenAI model through the API?

Send the model ID, such as openai/gpt-image-2, to https://api.mlmux.com/v1/images/generations with your MLMux API key. The request format is the same for every model on MLMux, so switching models means changing one field.

Is MLMux affiliated with OpenAI?

No. MLMux is an independent service that runs OpenAI models on official provider routes. Model names and trademarks belong to their owners.