qwen-image-edit-2509
POST /v1/images/generations
说明
给定提示和/或输入图像,模型将生成新图像。
概览
| Method | POST |
|---|---|
| Path | /v1/images/generations |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 67328467 |
参数
{ "query": [], "path": [], "cookie": [], "header": [ { "required": false, "description": "", "type": "string", "id": "GTujCrB2It", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "model": { "type": "string" }, "prompt": { "type": "string", "description": "提示词" }, "image": { "type": "string", "description": "图片url" } }, "required": [ "model", "prompt", "image" ], "x-apifox-orders": [ "model", "prompt", "image" ] }, "required": false, "mediaType": "", "examples": [ { "value": "{\n \"model\": \"qwen-image-edit-2509\",\n \"prompt\": \"把小鸭子放在女人的T恤上面\",\n \"image\": \"https://v3.fal.media/files/penguin/XoW0qavfF-ahg-jX4BMyL_image.webp\"\n \n}", "mediaType": "application/json", "description": "" } ], "oasExtensions": "" }
响应
[ { "id": 776216829, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "url": { "type": "string" } } } }, "created": { "type": "integer" }, "usage": { "type": "object", "properties": { "prompt_tokens": { "type": "integer" }, "completion_tokens": { "type": "integer" }, "total_tokens": { "type": "integer" }, "prompt_tokens_details": { "type": "object", "properties": { "cached_tokens_details": { "type": "object", "properties": {} } }, "required": [ "cached_tokens_details" ] }, "completion_tokens_details": { "type": "object", "properties": {} }, "output_tokens": { "type": "integer" } }, "required": [ "prompt_tokens", "completion_tokens", "total_tokens", "prompt_tokens_details", "completion_tokens_details", "output_tokens" ] } }, "required": [ "data", "created", "usage" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 776216829, "data": "{\r\n \"data\": [\r\n {\r\n \"url\": \"https://cdn.qwenlm.ai/output/629c2af9-f8d8-4667-b6c9-bede5854a4d4/t2i/c38fb9ef-7ede-48ff-8295-fc3388300b3b/1758636609.png?key=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXNvdXJjZV91c2VyX2lkIjoiNjI5YzJhZjktZjhkOC00NjY3LWI2YzktYmVkZTU4NTRhNGQ0IiwicmVzb3VyY2VfaWQiOiIxNzU4NjM2NjA5IiwicmVzb3VyY2VfY2hhdF9pZCI6IjQ2YzZhZTU0LWY1ZGQtNGI5Ni04YzIwLTE4MjY3MDAzNjAzZiJ9.ozZAA_-LDKY_WtsGAQvsuurIA-wWBxSmF1C64ueum1I\"\r\n }\r\n ],\r\n \"created\": 1758636610\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 708301166 } ]