# Flux Dev API on Opennan

> Flux Dev API on Opennan: $0.065 per image.

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

## Flux Dev API prices

| Tier | Opennan | Official | Below official |
| --- | --- | --- | --- |
| Any size | $0.065 | No official price | - |

The maker doesn't sell this exact model on its own API (open weights, or retired there), so there is no official price to compare.

## Call Flux Dev from code

```bash
curl https://api.opennan.com/v1/images/generations \
  -H "Authorization: Bearer $OPENNAN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"flux-dev","prompt":"A glass teapot on a sunlit windowsill, soft morning light, 35mm photo","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 Dev API questions

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

Flux Dev API on Opennan: $0.065 per image. Prices are in US dollars per call, shown before you run, and every tier is in the price table.

### What inputs does Flux Dev take?

Text prompt.

### 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.

### What happens if a generation fails?

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

### How do I call Flux Dev 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-dev". Or send a POST to https://api.opennan.com/v1/images/generations.

## Similar models

- [Nano Banana Pro](https://opennan.com/models/nano-banana-pro): from $0.05928 per image
- [Nano Banana 2.1](https://opennan.com/models/nano-banana-2-1): from $0.0585 per image
- [Nano Banana 2](https://opennan.com/models/nano-banana-2): from $0.04589 per image
- [GPT Image 2](https://opennan.com/models/gpt-image-2): from $0.039 per image
- [Flux Kontext](https://opennan.com/models/flux-kontext): from $0.0325 per image
- [Seedream 4.0](https://opennan.com/models/seedream-4-0): from $0.02925 per image
