工具
呼叫工具
API 請求構建器
使用 X-API-Key。缺失或無效金鑰會返回 HTTP 401 與 error 欄位;業務錯誤通常返回 HTTP 200 和非零 code。
金鑰僅用於本頁請求,不儲存。
高階參數 / JSON
請在自己的服務端執行。配置 KUSART_API_KEY,替換素材地址並確認畫風相容性;Python/JavaScript 示例只建立一次任務,再輪詢原任務。
curl -X POST "https://api.kusa.pics/api/go/b2b/tasks/create" \
-H "Content-Type: application/json" \
-H "X-API-Key: $KUSART_API_KEY" \
-d '{
"task_type": "ANIMA_TEXT_TO_IMAGE",
"params": {
"amount": 1,
"height": 1024,
"prompt": "anime character in a sunlit flower garden, delicate watercolor illustration",
"turbo": true,
"use_aesthetic": true,
"watermark": false,
"width": 1024
}
}'提交生成請求會從該金鑰對應帳戶扣除積分。查詢畫風和查詢任務不會新增生成任務。
尚未傳送請求,介面返回會顯示在這裡。