Flux API
Flux.1 and Flux Kontext — professional-grade open-source image models
Overview
Flux by Black Forest Labs is the leading open-source image generation and editing model. AI Generate provides all Flux variants including Kontext Pro, Kontext Max, Flux 1.1 Pro, and Flux 2.
All 10 Flux variants & pricing
Every variant is accessible via the same API endpoint. Switch variants by changing the model parameter. No extra setup.
| Variant | Credits | Price USD | Unit | |
|---|---|---|---|---|
| Black Forest Labs flux-2 pro, text-to-image, 1.0s-1K | 5.00 | $0.0350 | per image | Details → |
| Black Forest Labs flux-2 pro, image to image, 1.0s-1K | 5.00 | $0.0350 | per image | Details → |
| Black Forest Labs flux1-kontext, text-to-image, Pro | 5.00 | $0.0350 | per image | Details → |
| Black Forest Labs flux-2 pro, text-to-image, 1.0s-2K | 7.00 | $0.0490 | per image | Details → |
| Black Forest Labs flux-2 pro, image to image, 1.0s-2K | 7.00 | $0.0490 | per image | Details → |
| Black Forest Labs flux1-kontext, text-to-image, Max | 10.00 | $0.0700 | per image | Details → |
| Black Forest Labs Flux 2 Flex, image to image, 1.0s-1K | 14.00 | $0.0980 | per image | Details → |
| Black Forest Labs Flux 2 Flex, text-to-image, 1.0s-1K | 14.00 | $0.0980 | per image | Details → |
| Black Forest Labs Flux 2 Flex, image to image, 1.0s-2K | 24.00 | $0.1680 | per image | Details → |
| Black Forest Labs Flux 2 Flex, text-to-image, 1.0s-2K | 24.00 | $0.1680 | per image | Details → |
Use Flux via API
Example call with the default variant. Replace model with any slug from the table above.
curl https://aimarcusimage.eu/api/v1/jobs/createTask \
-H "Authorization: Bearer sk-aig-..." \
-H "Content-Type: application/json" \
-d '{
"model": "black-forest-labs-black-forest-labs-flux-2-pro-text-to-image-1-0s-1k",
"input": {
"prompt": "a red fox sitting in snow, golden hour, photographic"
}
}'
FAQ
How much does Flux cost?
Pricing starts at $0.0350 per image for the most affordable variant. You pay per call from your credit balance — no monthly subscription, no minimum commitment. First $10 on signup are free.
Is this an official Black Forest Labs API?
AI Generate is an AI model aggregator that routes calls to Black Forest Labs's upstream API. You get the exact same model outputs with simpler billing (pay per call, no contracts), one API key for 288 models, and the same OpenAI-compatible request shape across all providers.
Can I use Flux in production?
Yes. The endpoint is rate-limited to 20 requests per 10 seconds per API key, retries are idempotent via taskId, and async results are delivered via polling or webhook. Set a spend cap in dashboard settings to protect against runaway usage.
Which Flux variant should I pick?
For first tests, start with the cheapest variant (lowest "Price USD" in the table above). Upgrade to higher-resolution or "Quality" tiers only when you have validated prompts. The Playground (free) lets you A/B test all variants before spending credits.