๐Ÿ”Œ qiai API v1

Enterprise AI image generation API ยท SDXL / AnimateDiff / Z-Image

โš ๏ธ API access requires a paid subscription (Standard and above). View Plans

๐Ÿ”‘ Authentication

All API requests must include an API Key using one of the following methods:

# Header method
Authorization: Bearer cfy-xx...xxxx

# OR
X-API-Key: cfy-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Generate your API Key on the Subscription page.

๐Ÿ“ค Submit Generation Task

POST/api/v1/generate

Request Parameters

ParameterTypeRequiredDescription
stylestringโœ…Style: guofeng / anime / realistic / general / turbo / zanime / zimage
product_typestringProduct: static_image / batch_4 / batch_8 / animation_16f / animation_24f / animation_32f
promptstringโœ…Positive prompt (Chinese or English supported)
negative_promptstringNegative prompt
widthintWidth (default: 768)
heightintHeight (default: 1152)
llm_enhanceboolAI-powered prompt enhancement
webhook_urlstringCallback URL on completion

Example

curl -X POST https://your-server:7000/api/v1/generate \
  -H "Authorization: Bearer cfy-xx...xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "style": "guofeng",
    "product_type": "static_image",
    "prompt": "a warrior in red standing in bamboo forest holding a sword, ink wash painting style",
    "width": 768,
    "height": 1152,
    "llm_enhance": true,
    "webhook_url": "https://your-app.com/callback"
  }'

Response

{
  "ok": true,
  "order_id": "ORD-20260528-XXXXXX",
  "status": "pending",
  "product_type": "static_image",
  "style": "guofeng",
  "priority": 3
}

๐Ÿ“Š Query Status

GET/api/v1/status/{order_id}

curl -H "Authorization: Bearer ***" \
  https://your-server:7000/api/v1/status/ORD-20260528-XXXXXX

๐Ÿ“ฆ Subscription Tiers & Limits

PlanMonthly
Quota
PriceBatchAnimationStyles
Free20$0โ€”โ€”Turbo only
Standard300$63/batchโ€”All styles
Pro800$138/batchโœ…All styles
Mega2000$3012/batchโœ…All styles

โšก Priority Queue

Mega (4) > Pro (3) > Standard (2) > Free (0). Higher-priority orders are processed first.

๐Ÿ”” Webhook

On task completion, a POST request is sent to your webhook_url:

{
  "order_id": "ORD-20260528-XXXXXX",
  "status": "completed",
  "output_urls": ["https://.../output1.png", "https://.../output2.png"]
}

๐Ÿ“ง Support: 37405912@qq.com