diff --git a/wwwroot/api_doc.html b/wwwroot/api_doc.html index 532f3b4..da81ac1 100644 --- a/wwwroot/api_doc.html +++ b/wwwroot/api_doc.html @@ -371,7 +371,7 @@ data: [DONE]` desc: "图像生成接口。支持文生图和图生图。", params: [ { section: "必填参数", rows: [ - { name: "model", type: "string", required: true, desc: "模型名称,如 \"jimeng-4.0\"" }, + { name: "model", type: "string", required: true, desc: "模型名称,如 \"qwen-image-2.0-pro\"" }, { name: "catelogid", type: "string", required: true, desc: "目录类型ID,文生图固定为 \"t2i\"" }, { name: "prompt", type: "string", required: true, desc: "生成提示词" } ]}, @@ -387,7 +387,7 @@ data: [DONE]` requestExample: { lang: "json", code: `{ - "model": "jimeng-4.0", + "model": "qwen-image-2.0-pro", "catelogid": "t2i", "prompt": "A beautiful sunset over the ocean", "size": "1024x1024", @@ -401,7 +401,7 @@ data: [DONE]` code: `{ "id": "luid_xxx", "object": "image.generation", - "model": "jimeng-4.0", + "model": "qwen-image-2.0-pro", "status": "submitted", "taskid": "task_xxx", "created": 1716912000 @@ -409,37 +409,6 @@ data: [DONE]` } ], models: [ - { - name: "百炼-万象文生图(异步)", - params: [ - { name: "model", type: "string", required: true, desc: "wan2.2-t2i-plus / wan2.5-t2i-preview / wan2.2-t2i-flash" }, - { 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", "output": [{"url": "https://..."}], "usage": {"image_count": 1}}}` - } - }, - { - name: "智谱 CogView-3-Flash(同步/免费)", - params: [ - { name: "model", type: "string", required: true, desc: "cogview-3-flash" }, - { name: "catelogid", type: "string", required: true, desc: "文生图固定 t2i" }, - { name: "prompt", type: "string", required: true, desc: "提示词" }, - { name: "size", type: "string", required: false, desc: "尺寸:512x512, 1024x1024, 2048x2048" } - ], - responseExample: { - lang: "json", - code: `{"status": "ok", "data": {"image": "https://...", "usage": {"image_count": 1}}}` - } - }, { name: "千问图像 qwen-image-2.0 系列(同步/0.5元/张)", params: [ @@ -853,7 +822,7 @@ function renderContent() {

🤖 文本生成

兼容 OpenAI Chat Completions 格式,支持流式输出

🎬 视频生成

多平台视频模型:Vidu、Seedance、通义万象、可灵、海螺

-

🎨 图像生成

百炼万象、智谱CogView 等文生图/图生图模型

+

🎨 图像生成

千问图像 qwen-image 系列文生图/图生图模型

👤 真人素材

真人认证、素材上传、素材管理全流程

diff --git a/wwwroot/api_doc.md b/wwwroot/api_doc.md index a4530f3..4bf99cb 100644 --- a/wwwroot/api_doc.md +++ b/wwwroot/api_doc.md @@ -383,7 +383,7 @@ data: [DONE] | 参数 | 类型 | 说明 | |------|------|------| -| `model` | string | 模型名称,如 `"jimeng-4.0"` | +| `model` | string | 模型名称,如 `"qwen-image-2.0-pro"` | | `catelogid` | string | 目录类型ID,文生图固定为 `"t2i"` | | `prompt` | string | 生成提示词 | @@ -402,7 +402,7 @@ data: [DONE] ```json { - "model": "jimeng-4.0", + "model": "qwen-image-2.0-pro", "catelogid": "t2i", "prompt": "A beautiful sunset over the ocean", "size": "1024x1024", @@ -418,7 +418,7 @@ data: [DONE] { "id": "luid_xxx", "object": "image.generation", - "model": "jimeng-4.0", + "model": "qwen-image-2.0-pro", "status": "submitted", "taskid": "task_xxx", "created": 1716912000 @@ -431,96 +431,6 @@ data: [DONE] --- -#### 百炼-万象文生图(DashScope) - -##### 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.2-t2i-plus` | 万象专业版,在创意性、稳定性、写实质感上全面升级,生成细节丰富 | 10秒 | -| `wan2.5-t2i-preview` | 万象2.5 preview版,在创意性、稳定性、写实质感上全面升级,生成细节丰富 | 10秒 | -| `wan2.2-t2i-flash` | 万象极速版,快速生成,适合对速度要求高的场景 | 10秒 | - -**响应示例(异步提交):** - -```json -{ - "status": "ok", - "data": { - "taskid": "task_xxx", - "status": "PENDING" - } -} -``` - -**查询任务状态(`/v1/tasks?taskid=task_xxx`):** - -```json -{ - "status": "ok", - "data": { - "status": "SUCCEEDED", - "output": [ - { - "url": "https://..." - } - ], - "usage": { - "image_count": 1 - } - } -} -``` - ---- - -#### 智谱CogView(Zhipu) - -##### T2I - 文生图 - -**同步模型**(直接返回图像数据): - -| 参数名 | 类型 | 必填 | 默认值 | 说明 | 可选值 | -|--------|------|------|--------|------|--------| -| `model` | string | 是 | `cogview-3-flash` | 模型名称 | `cogview-3-flash` | -| `catelogid` | string | 是 | `t2i` | 目录类型ID,文生图固定为 `t2i` | `t2i` | -| `prompt` | string | 是 | - | 提示词 | - | -| `size` | string | 否 | `1024x1024` | 图像尺寸 | `512x512`, `1024x1024`, `2048x2048` 等 | - -**可用模型:** - -| 模型名称 | 说明 | -|----------|------| -| `cogview-3-flash` | CogView-3-Flash是一款免费的图像生成模型,能够根据您的指令生成美学评分更高的图像。无论是艺术创作、设计参考还是娱乐用途,cogview-3-flash都能满足您的需求 | - -**响应示例(同步返回):** - -```json -{ - "status": "ok", - "data": { - "image": "https://...", - "usage": { - "image_count": 1 - } - } -} -``` - ---- - #### 千问图像(Qwen-Image) ##### qwen-image-2.0 系列 - 文生图