qwen-image-2.0-2026-03-03
POST /v1/images/generations
概览
| Method | POST |
|---|---|
| Path | /v1/images/generations |
| Type | http |
| Status | -2 |
| Module | 2102810 |
| Folder | 67328467 |
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "title": "qwen-image-2.0-2026-03-03 文生图请求", "type": "object", "additionalProperties": false, "required": [ "model", "prompt" ], "properties": { "model": { "type": "string", "const": "wan2.7-image-pro", "title": "模型", "description": "固定为 qwen-image-2.0-2026-03-03", "x-apifox-enum": [ { "value": "qwen-image-2.0-2026-03-03", "name": "qwen-image-2.0-2026-03-03", "description": "阿里千问" } ] }, "prompt": { "type": "string", "minLength": 1, "title": "提示词", "description": "【必填】文生图正向提示词" }, "size": { "type": "string", "title": "分辨率", "description": "可选。① 档位:1K / 2K(默认)/ 4K(仅文生图)② 像素:1920x1080 或 1920x1080(注:支持自由设置宽高,输出图像总像素需在512x512至2048x2048之间)", "examples": [ "2K", "4K", "1920*1080" ], "x-apifox-enum": [ { "value": "1K", "name": "1K", "description": "约 1024×1024" }, { "value": "2K", "name": "2K(默认)", "description": "约 2048×2048" }, { "value": "4K", "name": "4K", "description": "仅文生图、无参考图" } ] }, "n": { "type": "integer", "minimum": 1, "maximum": 4, "default": 1, "title": "生成张数", "description": "1-4,默认 1" }, "watermark": { "type": "boolean", "default": false, "title": "水印", "description": "false=无水印(上游默认),true=添加「AI生成」水印", "x-apifox-enum": [ { "value": false, "name": "无水印", "description": "推荐" }, { "value": true, "name": "加水印", "description": "" } ] }, "seed": { "type": "integer", "minimum": 0, "maximum": 2147483647, "title": "随机种子", "description": "可选,相同 seed 可提高可复现性" } }, "x-apifox-orders": [ "model", "prompt", "size", "n", "watermark", "seed" ] }, "required": true, "mediaType": "", "examples": [ { "mediaType": "application/json", "value": "{\r\n \"model\": \"qwen-image-2.0-2026-03-03\",\r\n \"prompt\": \"一只可爱的橘猫坐在窗台上,阳光洒在它身上,背景是城市风景\"\r\n}", "name": "新手推荐:文生图 · 默认 2K" }, { "name": "新手推荐:文生图 · size=4K", "value": "{\r\n \"model\": \"qwen-image-2.0-2026-03-03\",\r\n \"prompt\": \"雪山湖泊日出,写实摄影\",\r\n \"size\": \"4K\"\r\n}", "mediaType": "application/json" }, { "name": "新手推荐:文生图 · 像素16:9", "value": "{\r\n \"model\": \"qwen-image-2.0-2026-03-03\",\r\n \"prompt\": \"宽银幕城市夜景\",\r\n \"size\": \"1920*1080\",\r\n \"watermark\": false\r\n}", "mediaType": "application/json" }, { "name": "进阶推荐:种子使用 · 组合 · 2K×1×固定seed", "value": "{\r\n \"model\": \"qwen-image-2.0-2026-03-03\",\r\n \"prompt\": \"相同种子复现测试,红色玫瑰\",\r\n \"size\": \"2K\",\r\n \"n\": 1,\r\n \"watermark\": false,\r\n \"seed\": 42\r\n}", "mediaType": "application/json" } ], "oasExtensions": "" }
响应
[ { "id": 169968251, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]
响应示例
[ { "name": "未找到", "responseId": 169968251, "data": "{\"error\":{\"message\":\"Invalid URL (GET /v1/images/generations)\",\"type\":\"invalid_request_error\",\"param\":\"\",\"code\":\"\"}}", "id": "019e017f-ee4f-702f-a9bc-ad23093c5143" } ]