docs: add wan2.7 image models, fix qwen-image response format to match UAPI template
This commit is contained in:
parent
89ff1cdbb3
commit
0d73c74c4d
@ -409,6 +409,24 @@ data: [DONE]`
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
models: [
|
models: [
|
||||||
|
{
|
||||||
|
name: "万象图像 wan2.7 系列(异步)",
|
||||||
|
params: [
|
||||||
|
{ name: "model", type: "string", required: true, desc: "wan2.7-image-pro / wan2.7-image-plus" },
|
||||||
|
{ name: "catelogid", type: "string", required: true, desc: "文生图固定 t2i" },
|
||||||
|
{ name: "prompt", type: "string", required: true, desc: "提示词" },
|
||||||
|
{ name: "size", type: "string", required: false, desc: "尺寸:512*512, 1024*1024, 2048*2048 等" },
|
||||||
|
{ name: "n", type: "integer", required: false, desc: "生成数量 1-4" }
|
||||||
|
],
|
||||||
|
responseExample: {
|
||||||
|
lang: "json",
|
||||||
|
code: `// 提交响应
|
||||||
|
{"status": "ok", "data": {"taskid": "task_xxx", "status": "PENDING"}}
|
||||||
|
|
||||||
|
// 查询结果(/v1/tasks?taskid=task_xxx)
|
||||||
|
{"status": "ok", "data": {"status": "SUCCEEDED", "usage": {"image_count": 1}, "image_count": 1, "image": ["https://..."]}}`
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "千问图像 qwen-image-2.0 系列(同步/0.5元/张)",
|
name: "千问图像 qwen-image-2.0 系列(同步/0.5元/张)",
|
||||||
params: [
|
params: [
|
||||||
@ -423,7 +441,11 @@ data: [DONE]`
|
|||||||
],
|
],
|
||||||
responseExample: {
|
responseExample: {
|
||||||
lang: "json",
|
lang: "json",
|
||||||
code: `{"status": "ok", "data": {"image": ["https://..."], "usage": {"image_count": 1}}}`
|
code: `// 成功响应
|
||||||
|
{"status": "ok", "data": {"status": "SUCCEEDED", "usage": {"image_count": 1}, "image_count": 1, "image": ["https://..."]}}
|
||||||
|
|
||||||
|
// 失败响应
|
||||||
|
{"status": "ok", "data": {"status": "FAILED", "error": "InvalidParameter.InvalidParameter"}}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -441,7 +463,7 @@ data: [DONE]`
|
|||||||
{"status": "ok", "data": {"taskid": "task_xxx", "status": "PENDING"}}
|
{"status": "ok", "data": {"taskid": "task_xxx", "status": "PENDING"}}
|
||||||
|
|
||||||
// 查询结果(/v1/tasks?taskid=task_xxx)
|
// 查询结果(/v1/tasks?taskid=task_xxx)
|
||||||
{"status": "ok", "data": {"status": "SUCCEEDED", "output": [{"url": "https://..."}], "usage": {"image_count": 1}}}`
|
{"status": "ok", "data": {"status": "SUCCEEDED", "usage": {"image_count": 1}, "image_count": 1, "image": ["https://..."]}}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -822,7 +844,7 @@ function renderContent() {
|
|||||||
<div class="feature-grid">
|
<div class="feature-grid">
|
||||||
<div class="feature-card"><h4>🤖 文本生成</h4><p>兼容 OpenAI Chat Completions 格式,支持流式输出</p></div>
|
<div class="feature-card"><h4>🤖 文本生成</h4><p>兼容 OpenAI Chat Completions 格式,支持流式输出</p></div>
|
||||||
<div class="feature-card"><h4>🎬 视频生成</h4><p>多平台视频模型:Vidu、Seedance、通义万象、可灵、海螺</p></div>
|
<div class="feature-card"><h4>🎬 视频生成</h4><p>多平台视频模型:Vidu、Seedance、通义万象、可灵、海螺</p></div>
|
||||||
<div class="feature-card"><h4>🎨 图像生成</h4><p>千问图像 qwen-image 系列文生图/图生图模型</p></div>
|
<div class="feature-card"><h4>🎨 图像生成</h4><p>万象2.7、千问图像 qwen-image 系列文生图/图生图模型</p></div>
|
||||||
<div class="feature-card"><h4>👤 真人素材</h4><p>真人认证、素材上传、素材管理全流程</p></div>
|
<div class="feature-card"><h4>👤 真人素材</h4><p>真人认证、素材上传、素材管理全流程</p></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -431,6 +431,55 @@ data: [DONE]
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
#### 万象图像(Wan-Image)
|
||||||
|
|
||||||
|
##### T2I - 文生图
|
||||||
|
|
||||||
|
**异步模型**(需通过 `/v1/tasks?taskid=xxx` 查询状态):
|
||||||
|
|
||||||
|
| 参数名 | 类型 | 必填 | 默认值 | 说明 | 可选值 |
|
||||||
|
|--------|------|------|--------|------|--------|
|
||||||
|
| `model` | string | 是 | - | 模型名称 | 见下方模型列表 |
|
||||||
|
| `catelogid` | string | 是 | `t2i` | 目录类型ID,文生图固定为 `t2i` | `t2i` |
|
||||||
|
| `prompt` | string | 是 | - | 提示词 | - |
|
||||||
|
| `size` | string | 否 | `1024*1024` | 图像尺寸 | `512*512`, `1024*1024`, `2048*2048` 等 |
|
||||||
|
| `n` | integer | 否 | `1` | 生成数量 | 1-4 |
|
||||||
|
|
||||||
|
**可用模型:**
|
||||||
|
|
||||||
|
| 模型名称 | 说明 | 价格 |
|
||||||
|
|----------|------|------|
|
||||||
|
| `wan2.7-image-pro` | 万象专业版,创意性、稳定性、写实质感全面升级 | 0.5元/张 |
|
||||||
|
| `wan2.7-image-plus` | 万象Plus版,高分辨率图像生成,性价比高 | 0.2元/张 |
|
||||||
|
|
||||||
|
**响应示例(异步提交):**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"status": "ok",
|
||||||
|
"data": {
|
||||||
|
"taskid": "task_xxx",
|
||||||
|
"status": "PENDING"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**查询任务状态(`/v1/tasks?taskid=task_xxx`):**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"status": "ok",
|
||||||
|
"data": {
|
||||||
|
"status": "SUCCEEDED",
|
||||||
|
"usage": {"image_count": 1},
|
||||||
|
"image_count": 1,
|
||||||
|
"image": ["https://..."]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
#### 千问图像(Qwen-Image)
|
#### 千问图像(Qwen-Image)
|
||||||
|
|
||||||
##### qwen-image-2.0 系列 - 文生图
|
##### qwen-image-2.0 系列 - 文生图
|
||||||
@ -455,16 +504,28 @@ data: [DONE]
|
|||||||
| `qwen-image-2.0-pro` | 千问图像生成Pro系列,文字渲染、真实质感、语义遵循能力更强 | 0.5元/张 |
|
| `qwen-image-2.0-pro` | 千问图像生成Pro系列,文字渲染、真实质感、语义遵循能力更强 | 0.5元/张 |
|
||||||
| `qwen-image-2.0-2026-03-03` | 千问图像生成2.0快照版(2026-03-03),兼顾效果与响应速度 | 0.5元/张 |
|
| `qwen-image-2.0-2026-03-03` | 千问图像生成2.0快照版(2026-03-03),兼顾效果与响应速度 | 0.5元/张 |
|
||||||
|
|
||||||
**响应示例(同步返回):**
|
**成功响应示例:**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"status": "ok",
|
"status": "ok",
|
||||||
"data": {
|
"data": {
|
||||||
"image": ["https://..."],
|
"status": "SUCCEEDED",
|
||||||
"usage": {
|
"usage": {"image_count": 1},
|
||||||
"image_count": 1
|
"image_count": 1,
|
||||||
}
|
"image": ["https://..."]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**失败响应示例:**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"status": "ok",
|
||||||
|
"data": {
|
||||||
|
"status": "FAILED",
|
||||||
|
"error": "InvalidParameter.InvalidParameter"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -509,14 +570,9 @@ data: [DONE]
|
|||||||
"status": "ok",
|
"status": "ok",
|
||||||
"data": {
|
"data": {
|
||||||
"status": "SUCCEEDED",
|
"status": "SUCCEEDED",
|
||||||
"output": [
|
"usage": {"image_count": 1},
|
||||||
{
|
"image_count": 1,
|
||||||
"url": "https://..."
|
"image": ["https://..."]
|
||||||
}
|
|
||||||
],
|
|
||||||
"usage": {
|
|
||||||
"image_count": 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user