CQTAI
Flux · Image

Image to ImageNEWTemporarily Offline

This model is temporarily offline. The docs are for reference only and calls are unavailable. Watch announcements for restoration.
📌 What is thisGenerate a new image from a reference image + text (restyle, local edits).
💡 When to useUse to restyle or remix an existing image.

Endpoints

UsageMethodPath
Submit taskPOST/api/cqt/generator/flux
Query ResultGET/api/cqt/info/flux?id={taskId}
Recommended polling intervalPoll every 5s until status = succeeded / failed.

Request Parameters

ParamTypeRequiredDescription
modelstringRequiredflux-kontext-pro / flux-kontext-max
promptstringRequiredEdit / generation description
filesUrlstring[]RequiredReference image URL(s)
aspectRatiostringOutput ratio
outputFormatstringOutput format jpeg / png, default jpeg
safetyToleranceintegerSafety tolerance, default 2
enhancePromptbooleanWhether to enhance the prompt, default true
webhookUrlstringCompletion webhook URL

Request Example

curl -X POST https://api.cqtai.com/api/cqt/generator/flux \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "flux-kontext-max",
    "prompt": "make the sky stormy",
    "filesUrl": ["https://example.com/input.jpg"],
    "aspectRatio": "1:1"
  }'
# -> { "code":200, "data":"<taskId>" }

Response Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "id": "<taskId>",
    "status": "succeeded",
    "resultUrl": "https://.../result.png",
    "createTime": "2026-06-15 10:00:00",
    "completeTime": "2026-06-15 10:00:20"
  }
}

Billing & Credits

flux-kontext-pro: 12 credits per image; flux-kontext-max: 24 credits per image (x your user rate). Auto-refunded on failure.