FLUX.2 Flex
FLUX.2 Flex from $0.13 per image — the tier between Pro and Max, on the same media endpoint.
The tunable FLUX.2 tier, sitting between Pro and Max on quality and cost. Same nine aspect ratios, reference-image editing, and PNG or JPEG output.
No credit card required. Takes 30 seconds.
2,400+
Developers
1.2M+
API calls served
100+
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Enter a prompt and generate an image with FLUX.2 Flex.
Drop image or click to upload
For image-to-image editing
Pricing
Per-image: from $0.13/image
Endpoint
/v1/media/queue
Strengths
FLUX.2 Flex lands between Pro and Max, giving extra render quality when Pro falls short without paying Max rates on every image.
Shares the FLUX.2 aesthetic and prompt handling, so you can move a prompt across tiers and keep the same composition and style.
Edit or restyle an uploaded image rather than regenerating from a blank canvas, useful for iterating on an approved asset.
Renders 1:1 through 21:9 plus auto, covering social, web, and cinematic crops from one prompt.
Quick start
Copy this snippet and start making calls with FLUX.2 Flex.
// Step 1: Submit job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "black-forest-labs/flux.2-flex",
"prompt": "A retro-futurist reading room carved into a cliff face, curved teak shelves, warm amber lamps, a storm breaking over the ocean through floor-to-ceiling glass, wide-angle architectural photograph",
"options": {
"aspectRatio": "1:1"
}
}),
});
const { data } = await res.json();
const jobId = data.jobId;
// Step 2: Poll for result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status: "pending" | "processing" | "completed" | "failed"
// job.result: { text?, image?, audio?, video? }Why use FLUX.2 Flex through YepAPI?
FLUX.2 Flex API — the middle tier of FLUX.2
FLUX.2 Flex is the tunable member of Black Forest Labs' FLUX.2 lineup, positioned between the everyday Pro tier and the top-end Max tier. It keeps the same aspect ratios, editing support, and output formats while giving you extra headroom on demanding prompts.
Through YepAPI, Flex runs on the shared `/v1/media/queue` endpoint at $0.13 per image, billed from the same prepaid balance as every other model on the platform.
Start generating in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
The tunable FLUX.2 tier, sitting between Pro and Max on quality and cost. Same nine aspect ratios, reference-image editing, and PNG or JPEG output.
Pricing for FLUX.2 Flex through YepAPI is based on usage. No monthly minimums — you only pay for what you use.
Sign up for a free API key, then send requests to the /v1/media/queue endpoint.
Ready to use FLUX.2 Flex?
$5 free credit on signup. No credit card required. Pay per call.
Explore more models
FLUX.2 Pro
Black Forest LabsGenerate photorealistic images with FLUX.2 Pro from $0.07 per image — one REST call, no GPU to rent.
FLUX.2 Max
Black Forest LabsFLUX.2 Max for hero-grade AI images from $0.15 per image — the family's highest-fidelity tier via one API key.
FLUX.2 Klein
Black Forest LabsFLUX.2 Klein from $0.03 per image — the compact 4B FLUX model for high-volume generation.