LumixAI logo
Black Forest Labs image generation API

Flux.2 Flex API

Flux.2 Flex API brings Flux image generation into LumixAI for creative prompts, reference-aware editing, realistic scenes, and high-detail production work.

Model slug
flux-2-flex
Credit rate
18 credits
Provider
Black Forest Labs
Flux.2 Flex API image generation sample

Model overview

What is Flux.2 Flex API?

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

Call Flux.2 Flex from one image API.

Async jobs

Queue generation, poll status, and return image URLs when render completes.

Credit pricing

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"
  })
});

Next step

Try Flux.2 Flex with an API key.

Start generating
Flux.2 Flex API | LumixAI