返回模型调用 API 参考
POST/v1/images/generations

z-image-turbo

API Key application/json

请求示例

curl -X POST https://top.qingyuntop.ai/v1/images/generations \
  -H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "z-image-turbo",
  "prompt": "一副典雅庄重的对联悬挂于厅堂之中,房间是个安静古典的中式布置",
  "size": "1280x720",
  "n": 1,
  "watermark": false,
  "prompt_extend": true
}'

请求参数

参数位置类型必填说明示例
modelJSON bodystring模型名称-
promptJSON bodystring图像描述-
sizeJSON bodystring图像尺寸-
nJSON bodyinteger生成数量 只支持1张-
watermarkJSON bodyboolean是否水印-
prompt_extendJSON bodybooleanAI优化提示词-

返回响应 (200)

参数位置类型必填说明示例
created响应 JSONinteger--
data响应 JSONarray<object>--
data[].url响应 JSONstring--
data[].b64_json响应 JSONstring--

响应示例

{
  "created": 1767842675,
  "data": [
    {
      "url": "https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/...",
      "b64_json": ""
    }
  ]
}
来源原始接口定义(用于追溯)

以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。

{
  "id": 497673330,
  "name": "z-image-turbo",
  "type": "http",
  "serverId": "",
  "preProcessors": [],
  "postProcessors": [],
  "inheritPreProcessors": {},
  "inheritPostProcessors": {},
  "description": "",
  "operationId": "",
  "sourceUrl": "",
  "method": "post",
  "path": "/v1/images/generations",
  "tags": [],
  "status": -2,
  "requestBody": {
    "type": "application/json",
    "parameters": [],
    "jsonSchema": {
      "type": "object",
      "properties": {
        "model": {
          "type": "string",
          "description": "模型名称"
        },
        "prompt": {
          "type": "string",
          "description": "图像描述"
        },
        "size": {
          "type": "string",
          "description": "图像尺寸"
        },
        "n": {
          "type": "integer",
          "description": "生成数量 只支持1张"
        },
        "watermark": {
          "type": "boolean",
          "description": "是否水印"
        },
        "prompt_extend": {
          "type": "boolean",
          "description": "AI优化提示词"
        }
      },
      "required": [
        "model",
        "prompt",
        "size",
        "n",
        "watermark",
        "prompt_extend"
      ],
      "x-apifox-orders": [
        "model",
        "prompt",
        "size",
        "n",
        "watermark",
        "prompt_extend"
      ]
    },
    "examples": [
      {
        "mediaType": "application/json",
        "value": "{\r\n  \"model\": \"z-image-turbo\",\r\n  \"prompt\": \"一副典雅庄重的对联悬挂于厅堂之中,房间是个安静古典的中式布置\",\r\n  \"size\": \"1280x720\",\r\n  \"n\": 1,\r\n  \"watermark\": false,\r\n  \"prompt_extend\": true\r\n}",
        "name": "示例 1"
      }
    ],
    "mediaType": "",
    "oasExtensions": "",
    "required": true,
    "additionalContentTypes": []
  },
  "parameters": {
    "path": [],
    "query": [],
    "cookie": [],
    "header": []
  },
  "commonParameters": {
    "query": [],
    "body": [],
    "cookie": [],
    "header": []
  },
  "auth": {},
  "responses": [
    {
      "id": 154902222,
      "name": "成功",
      "code": 200,
      "contentType": "json",
      "jsonSchema": {
        "type": "object",
        "properties": {
          "created": {
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "b64_json": {
                  "type": "string"
                }
              },
              "x-apifox-orders": [
                "url",
                "b64_json"
              ]
            }
          }
        },
        "required": [
          "created",
          "data"
        ],
        "x-apifox-orders": [
          "created",
          "data"
        ]
      },
      "itemSchema": {},
      "description": "",
      "mediaType": "",
      "headers": []
    }
  ],
  "responseExamples": [
    {
      "name": "成功示例",
      "responseId": 154902222,
      "data": "{\r\n  \"created\": 1767842675,\r\n  \"data\": [\r\n    {\r\n      \"url\": \"https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/...\",\r\n      \"b64_json\": \"\"\r\n    }\r\n  ]\r\n}",
      "description": "",
      "oasKey": "",
      "oasExtensions": "",
      "id": "019fd25e-4be5-7428-af98-aa0231478e79"
    }
  ],
  "codeSamples": [],
  "projectId": 8662722,
  "moduleId": 8310462,
  "folderId": 92749332,
  "ordering": 12,
  "responsibleId": 0,
  "commonResponseStatus": {},
  "advancedSettings": {
    "disabledSystemHeaders": {}
  },
  "customApiFields": {},
  "oasExtensions": "",
  "mockScript": {},
  "createdAt": "2026-08-05T14:40:23.000Z",
  "updatedAt": "2026-08-05T14:40:31.000Z",
  "creatorId": 2863449,
  "editorId": 2863449,
  "creatorUserId": 2863449,
  "editorUserId": 2863449,
  "responseChildren": [],
  "visibility": "INHERITED",
  "securityScheme": {},
  "callbacks": ""
}