Flux
Flux is a high-quality image generation model developed by Black Forest Labs, supporting multiple variants.
POST /v1/images/generations
Call Flux models using the OpenAI-compatible format.
Supported Models
| Model | Description |
|---|
flux-1.1-pro | Flux 1.1 Pro, high-quality generation |
flux-1.1-pro-ultra | Flux 1.1 Pro Ultra, ultra-high quality |
flux-dev | Flux Dev, development version |
flux-schnell | Flux Schnell, fast generation |
flux-kontext-pro | Flux Kontext Pro, context-aware |
flux-kontext-dev | Flux Kontext Dev |
Request Examples
curl -X POST https://crazyrouter.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "flux-1.1-pro",
"prompt": "A photorealistic portrait of a woman with flowing red hair in golden hour lighting",
"n": 1,
"size": "1024x1024"
}'
Resolution Options
| Size | Aspect Ratio |
|---|
1024x1024 | 1:1 |
1024x768 | 4:3 |
768x1024 | 3:4 |
1024x576 | 16:9 |
576x1024 | 9:16 |
1536x1024 | 3:2 |
1024x1536 | 2:3 |
Response Example
{
"created": 1709123456,
"data": [
{
"url": "https://crazyrouter.com/files/flux_abc123.png"
}
]
}
Flux models excel at photorealistic styles and portrait generation. The Flux Kontext series supports reference image-based editing and style transfer. The public docs currently cover only the common POST /v1/images/generations route.