# Flux Kontext API on Opennan

> Flux Kontext API on Opennan: $0.0325 per image, 18% below Black Forest Labs' official $0.04 per image.

- Maker: Black Forest Labs
- Category: Image
- Model id: `flux-kontext`
- Endpoint: POST https://api.opennan.com/v1/images/generations
- MCP: https://api.opennan.com/v1/mcp (generate_image)
- Page: https://opennan.com/models/flux-kontext

## Flux Kontext API prices

| Tier | Opennan | Official | Below official |
| --- | --- | --- | --- |
| Any size | $0.0325 | $0.04 | 18% below |

Official is the model maker's own list price for the same tier. Where the maker publishes a price, we never sell above it, most tiers at least 10% below.

## Call Flux Kontext from code

```bash
curl https://api.opennan.com/v1/images/generations \
  -H "Authorization: Bearer $OPENNAN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"flux-kontext","prompt":"A glass teapot on a sunlit windowsill, soft morning light, 35mm photo","image":"https://example.com/input-image.png","aspect_ratio":"1:1"}'

# Then poll until "status" is "succeeded" or "failed":
curl https://api.opennan.com/v1/tasks/<task id> -H "Authorization: Bearer $OPENNAN_KEY"
```

## Flux Kontext API questions

### How much does the Flux Kontext API cost?

Flux Kontext API on Opennan: $0.0325 per image, 18% below Black Forest Labs' official $0.04 per image. Prices are in US dollars per call, shown before you run, and every tier is in the price table.

### How does that compare with the official price?

Black Forest Labs lists $0.04 per image; Opennan charges $0.0325 per image, 18% below. We only sell a tier below the maker's official price, most tiers at least 10% below.

### What inputs does Flux Kontext take?

Image.

### Which options can a call set?

Aspect ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9.

### How is it billed?

Per image, by quality and size, plus $0.0195 for each input image.

### What happens if a generation fails?

A failed task is refunded in full. You pay only for results.

### How do I call Flux Kontext from an AI agent?

Add the MCP server https://api.opennan.com/v1/mcp with your API key as a bearer token, then call the generate_image tool with model "flux-kontext". Or send a POST to https://api.opennan.com/v1/images/generations.

## Similar models

- [Seedream 4.0](https://opennan.com/models/seedream-4-0): from $0.02925 per image
- [GPT Image 2](https://opennan.com/models/gpt-image-2): from $0.039 per image
- [GPT Image 1.5](https://opennan.com/models/gpt-image-1-5): from $0.026 per image
- [Nano Banana](https://opennan.com/models/nano-banana): from $0.026 per image
- [Nano Banana 2](https://opennan.com/models/nano-banana-2): from $0.04589 per image
- [Nano Banana 2.1](https://opennan.com/models/nano-banana-2-1): from $0.0585 per image
