Flux Kontext generated image

Production image API

Flux Kontext API

Generate and edit images with Kontext Pro or Max through a stable asynchronous API with active status checks and automatic credit refunds on failed tasks.

Two endpoints, one task lifecycle

Submit once. Poll until final.

Every request returns a snake_case task_id. Status polling actively checks the provider, persists the result, and reconciles stale work in the background.

POST/generate
GET/feed?task_id=...

Predictable credit usage

Model pricing

View credit plans
ModelText to imageImage editFormats
flux-kontext-pro2 credits7 creditsJPEG, PNG
flux-kontext-max7 credits12 creditsJPEG, PNG

Ready to make your first request?

Authenticate with your project API key and start with the quick start.

Open quick start