Flux API

Flux.1 and Flux Kontext — professional-grade open-source image models

image by Black Forest Labs · 16 variants available
Get API key Try in Playground
Starting price
$0.0112
per image · Black Forest Labs Flux 3 Klein, text to image, 1K
Pay-as-you-go · No subscription · $10 minimum top-up · One API key for 16 variants + 501 models in total
Full Flux price list and cost examples →

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 16 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 3 Klein, text to image, 1K 1.60 $0.0112 per image Details →
Black Forest Labs Flux 3 Klein, image editing, 1K 1.60 $0.0112 per image Details →
Black Forest Labs Flux 3 Klein, image editing, 2K 2.50 $0.0175 per image Details →
Black Forest Labs Flux 3 Klein, text to image, 2K 2.50 $0.0175 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, image to image, 1.0s-1K 5.00 $0.0350 per image Details →
Black Forest Labs flux-2 pro, text-to-image, 1.0s-1K 5.00 $0.0350 per image Details →
Black Forest Labs Flux 3 Klein, image editing, 4K 6.50 $0.0455 per image Details →
Black Forest Labs Flux 3 Klein, text to image, 4K 6.50 $0.0455 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 flux-2 pro, text-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, text to image, 1.0s-1K 14.00 $0.0980 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-2K 24.00 $0.1680 per image Details →
Black Forest Labs Flux 2 Flex, image 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-3-klein-text-to-image-1k",
  "input": {
    "prompt": "a red fox sitting in snow, golden hour, photographic"
  }
}'

FAQ

How much does Flux cost?

Pricing starts at $0.0112 per image for the most affordable variant. You pay per call from your credit balance — no monthly subscription, no minimum commitment. Starter top-up is $10 → 1,430 credits.

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 501 models, and the same create-task request shape across all providers.

Can I use Flux in production?

Yes. Each API key is rate-limited to 20 requests per 10 seconds. Results are asynchronous: poll /api/v1/jobs/recordInfo with the taskId, or pass a callBackUrl in the create-task body to receive a POST when the task finishes. Daily and monthly spend caps in dashboard settings stop 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 runs the most popular models from your browser; every variant in the table is available through the API at the price shown.

Nano Banana
Google's fast, high-quality image generation and editing model
Ideogram
Ideogram — best-in-class AI image model for text rendering and typography
Qwen (Alibaba)
Alibaba's Qwen Image — unified image generation and editing
GPT Image (OpenAI)
OpenAI's GPT Image 2 — photorealistic generation with sharp text rendering
Recraft
Recraft — AI image model for vector graphics, logos, and brand-consistent design