Async jobs
Queue generation, poll status, and return image URLs when render completes.
Flux.2 Flex API brings Flux image generation into LumixAI for creative prompts, reference-aware editing, realistic scenes, and high-detail production work.

Model overview
Flux.2 model variant for controlled production workflows with stronger creative flexibility.
Use Flux.2 Flex through LumixAI when you want one stable REST workflow for prompts, model selection, async jobs, usage tracking, and credit pricing. The page targets searches for Flux.2 Flex API, Flux.2 Flex image API, and Black Forest Labs image generation API.
controlled prompts
reference workflows
visual systems
Developer workflow
Queue generation, poll status, and return image URLs when render completes.
Flux.2 Flex starts at 18 credits per image before conditional rules.
await fetch("https://api.example.com/v1/images/jobs", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": process.env.LUMIXAI_API_KEY
},
body: JSON.stringify({
model: "flux-2-flex",
prompt: "premium product image, clean studio lighting",
aspectRatio: "16:9",
resolution: "2k"
})
});SEO content source map
Next step