LumixAI logo
Black Forest Labs image generation API

Flux.2 Flex API for production images.

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 per image
Provider
Black Forest Labs
Flux.2 Flex API image generation sample

Model overview

Why use Flux.2 Flex through LumixAI?

Flux.2 Flex image generation through the LumixAI API with live model pricing from the backend.

Use Flux.2 Flex through LumixAI when you want one stable REST workflow for prompts, model selection, async jobs, polling, 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.

AI image generation

production workflows

API integrations

Developer workflow

Call Flux.2 Flex without a separate provider integration.

Async jobs

Queue generation with /v1/images/jobs, poll /v1/images/jobs/{id}, then download the finished image.

Credit pricing

Flux.2 Flex starts at 18 credits per image before conditional rules.

Modality
Image
Aspect ratios
1:1, 16:9, 9:16, 2:3
Resolutions
1k, 2k
await fetch("https://api.lumixai.live/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: "1:1",
    resolution: "1k"
  })
});

Next step

Generate your first Flux.2 Flex image.

Generate with LumixAI