Sora 图片 · 图片生成

文生图

📌 这是什么用文字描述生成图片。
💡 什么时候用想要 GPT-Image 风格的图时用。

接口地址

用途方法路径
提交任务POST/api/cqt/generator/sora
查询结果GET/api/cqt/info/sora?id={taskId}
建议轮询时间建议每 30 秒轮询一次(响应含 progress 0~1 可显示进度)。

请求参数

参数类型必填说明
promptstring必填图片描述
sizestring比例,仅支持 1:1 / 2:3 / 3:2

请求示例

curl -X POST https://api.cqtai.com/api/cqt/generator/sora \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": "a watercolor illustration of a quiet seaside town",
    "size": "3:2"
  }'
# -> { "code":200, "data":"<taskId>" }

响应示例

{
  "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"
  }
}

计费与积分

固定 6 积分/张(× 你的用户费率)。任务失败自动退回。