Flux · Image
Flux · IntroductionTemporarily Offline
⏸ This model is temporarily offline. The docs are for reference only and calls are unavailable. Watch announcements for restoration.
Flux image generation based on the FLUX Kontext family, for text-to-image and image-to-image. Models: • flux-kontext-pro (standard, 12/img) • flux-kontext-max (enhanced, 24/img) Select with the request body model field; returns a taskId, poll for the result.
How to call
- Submit:
POST /api/cqt/generator/flux, returns a taskId. - Query:
GET /api/cqt/info/flux?id=taskId, poll until status = succeeded.
Capability map
POSTText to ImageNEW
Generate images from text with FLUX Kontext models.
POSTImage to ImageNEW
Generate a new image from a reference image + text (restyle, local edits).
Common Errors
| Code | msg | Meaning | How to fix |
|---|---|---|---|
| 400 | model not found | Unsupported model (only flux-kontext-pro / flux-kontext-max) | Set model to flux-kontext-pro or flux-kontext-max |
| 451 | content moderation | Prompt or input image flagged | Edit the prompt or replace the image and retry |
| 500 | failed / timeout | Task failed or timed out; data.errorMsg usually contains details | Retry later; contact support if it persists |
Errors are returned as upstream bizCode, e.g. upstream bizCode=451, msg=prompt_unsafe.
Tip: after saving your API Key via Authorize, every capability page supports "Try it".