# GPT Image 2.5 Flare API on MLMux

> A GPT Image 2.5 model for text-to-image generation at 1K or 2K, priced by output size.

- Model page: https://www.mlmux.com/gpt-image-2-5-flare
- API model ID: `weavy/gpt-image-2.5-flare`
- Provider: OpenAI
- Generation modes: Text to image
- Endpoint: `POST https://api.mlmux.com/v1/images/generations`
- Reference images: not available yet
- Resolutions: 1K, 2K
- Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4
- Output formats: png, jpeg

## Pricing

Pay as you go in credits; 1 credit = 1 US dollar, with no subscription. This model runs only on the `official` route.

- 1K image: about $0.013 on `official`
- 2K image: about $0.053 on `official`

## Request

Send your API key as `Authorization: Bearer $MLMUX_API_KEY`. Create keys at https://www.mlmux.com/console/api-keys.

```bash
curl https://api.mlmux.com/v1/images/generations \
  -H "Authorization: Bearer $MLMUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "weavy/gpt-image-2.5-flare",
  "route_mode": "official",
  "prompt": "A red fox in fresh snow at sunrise, cinematic light",
  "resolution": "1K",
  "aspect_ratio": "1:1",
  "output_format": "png",
  "n": 1
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.mlmux.com/v1/images/generations",
    headers={"Authorization": f"Bearer {os.environ['MLMUX_API_KEY']}"},
    json={
  "model": "weavy/gpt-image-2.5-flare",
  "route_mode": "official",
  "prompt": "A red fox in fresh snow at sunrise, cinematic light",
  "resolution": "1K",
  "aspect_ratio": "1:1",
  "output_format": "png",
  "n": 1
},
    timeout=300,
)
response.raise_for_status()
print(response.json())
```

The response contains the generated image URLs. Add `"async": true` to get a task to poll instead.

## Frequently asked questions

### What is GPT Image 2.5 Flare?

GPT Image 2.5 Flare is an image generation model from OpenAI. On MLMux you can run it in the browser or call it through one API. A GPT Image 2.5 model for text-to-image generation at 1K or 2K, priced by output size.

### How do I use the GPT Image 2.5 Flare 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 weavy/gpt-image-2.5-flare. The generated images are returned in the response.

### What can GPT Image 2.5 Flare do?

Generation modes: Text to image. Each request returns 1K or 2K images in aspect ratios such as 1:1, 16:9, 9:16, 4:3, and 3:4. Reference images and image editing are not available for GPT Image 2.5 Flare on MLMux yet.

### How much does GPT Image 2.5 Flare cost?

MLMux is pay as you go, with no subscription or monthly fee, and 1 credit equals 1 US dollar. GPT Image 2.5 Flare runs on the official route, where a 1K image costs about $0.013, billed on the tokens each request actually uses. Rates for every resolution are listed in the pricing section of this page.

### Can I try GPT Image 2.5 Flare without writing code?

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

## More

- Image API guide: https://www.mlmux.com/docs/images
- Pricing for every model: https://www.mlmux.com/pricing
- All models: https://www.mlmux.com/llms.txt
