
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
/generateGET
/feed?task_id=...Predictable credit usage
Model pricing
| Model | Text to image | Image edit | Formats |
|---|---|---|---|
| flux-kontext-pro | 2 credits | 7 credits | JPEG, PNG |
| flux-kontext-max | 7 credits | 12 credits | JPEG, PNG |
Ready to make your first request?
Authenticate with your project API key and start with the quick start.