图片接口¶
本节列出该能力下当前已实现的接口。
生成图像(qwen-image)¶
POST /v1/images/generations
百炼qwen-image系列图片生成
鉴权¶
- Bearer Token (
Authorization: Bearer <token>)
请求体¶
- Content-Type:
application/json
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| model | string | yes | - |
| input | object | yes | - |
| parameters | object | no | - |
返回¶
| 状态码 | 说明 | Schema |
|---|---|---|
| 200 | 成功生成图像 | ImageResponse |
编辑图像(qwen-image-edit)¶
POST /v1/images/edits
百炼qwen-image系列图片生成
鉴权¶
- Bearer Token (
Authorization: Bearer <token>)
请求体¶
- Content-Type:
application/json
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| model | string | yes | - |
| input | object | yes | - |
| parameters | object | no | - |
返回¶
| 状态码 | 说明 | Schema |
|---|---|---|
| 200 | 成功生成图像 | ImageResponse |