# YUY API 下游调用文档

- API Base URL: `https://ai.yuyapi.cn/v1`
- 鉴权方式: `Authorization: Bearer sk-你的令牌`
- `sk-你的令牌` 只是占位示例，文档页面不会读取、显示或导出你的真实令牌。
- 请求格式整体兼容 OpenAI API。

## 1. 聊天 / Codex

```bash
curl https://ai.yuyapi.cn/v1/chat/completions \
  -H "Authorization: Bearer sk-你的令牌" \
  -H "Content-Type: application/json" \
  -d '{"model":"模型名","messages":[{"role":"user","content":"你好"}]}'
```

## 2. 图片生成

### 2.1 `gpt-image-2` 文生图（异步任务）

注意：`gpt-image-2` 提交接口不会立即返回图片 URL。提交成功但响应里没有 `data[0].url` 是正常的，不要把它当作失败。下游软件必须先保存 `task_id`，再轮询任务结果。

```bash
curl https://ai.yuyapi.cn/v1/images/generations \
  -H "Authorization: Bearer sk-你的令牌" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2","prompt":"一张城市夜景","n":1,"size":"1024x1024","quality":"auto","response_format":"url"}'
```

提交成功示例：

```json
{
  "id": "task_xxx",
  "task_id": "task_xxx",
  "object": "image.task",
  "status": "queued",
  "model": "gpt-image-2"
}
```

### 2.2 轮询图片任务

```bash
curl https://ai.yuyapi.cn/v1/images/tasks/task_xxx \
  -H "Authorization: Bearer sk-你的令牌"
```

处理中示例：

```json
{
  "id": "task_xxx",
  "task_id": "task_xxx",
  "object": "image.task",
  "status": "processing",
  "progress": 35,
  "model": "gpt-image-2"
}
```

成功示例：

```json
{
  "id": "task_xxx",
  "task_id": "task_xxx",
  "object": "image.task",
  "status": "succeeded",
  "progress": 100,
  "model": "gpt-image-2",
  "result": {
    "data": [{ "url": "https://example.com/image.png" }]
  }
}
```

当 `status` 为 `succeeded` 或 `completed` 时，再读取图片 URL。推荐读取 `result.data[0].url`，同时兼容 `data[0].url`、`result.url`、`url`。当 `status` 为 `queued`、`processing`、`running` 时继续轮询；当 `status` 为 `failed` 时按失败处理。

### 2.3 `gpt-image-2` 图生图

图生图必须使用 `multipart/form-data`：

```bash
curl https://ai.yuyapi.cn/v1/images/edits \
  -H "Authorization: Bearer sk-你的令牌" \
  -F "model=gpt-image-2" \
  -F "prompt=参考这张图生成新图" \
  -F "image=@/path/to/input.jpg"
```

多图参考时重复传 `image[]`。

### 2.4 Gemini 原生图片模型

`T香蕉2`、`T香蕉pro` 使用 Gemini 原生异步生图接口。`{model}` 需要做 URL 编码；多图参考时把图片 base64 放进 `parts[].inlineData.data`，不要带 `data:image/jpeg;base64,` 前缀。

```bash
curl https://ai.yuyapi.cn/v1beta/models/T香蕉2:generateContent \
  -H "Authorization: Bearer sk-你的令牌" \
  -H "Content-Type: application/json" \
  -d '{"contents":[{"role":"user","parts":[{"text":"生成一张写实摄影风格的橙色跑车，城市夜景"}]}],"generationConfig":{"responseModalities":["TEXT","IMAGE"],"imageConfig":{"aspectRatio":"16:9","imageSize":"2K"}}}'
```

提交成功会返回 `task_id`，继续用 `GET /v1/images/tasks/{task_id}` 轮询，完成后优先读取 `data[0].url`，同时兼容 `result.data[0].url`。

## 3. 视频生成

### 3.1 Sora-v3 视频（`/v1/video/submit/generate`）

Sora-v3 支持文生视频、单图图生视频和首尾帧视频，提交接口与轮询接口如下：

```bash
curl https://ai.yuyapi.cn/v1/video/submit/generate \
  -H "Authorization: Bearer sk-你的令牌" \
  -H "Content-Type: application/json" \
  -d '{"model":"sora-v3-fast","prompt":"一段电影感视频","duration":8,"metadata":{"modeType":"text2video","ratio":"16:9","enableSound":"on"}}'
```

查询任务：

```bash
curl https://ai.yuyapi.cn/v1/video/fetch/task_xxx \
  -H "Authorization: Bearer sk-你的令牌"
```

### 3.2 Grok / Omni / Veo / KY / XH / LD 视频（`/v1/videos`）

Grok、Omni、Veo、KY、XH、LD 使用 OpenAI-style `/v1/videos` 异步任务 API。视频参考图统一传 `images` 数组，单图也写成数组；不要传 `image` 字段。需要视频/音频参考的新模型可传 `videos`、`audios` 数组；Veo 不需要传 `seconds`；Omni Edit 需要传 `video_url`。

```bash
curl https://ai.yuyapi.cn/v1/videos \
  -H "Authorization: Bearer sk-your-token" \
  -H "Content-Type: application/json" \
  -d '{"model":"omni-flash-components-1080p","prompt":"make the subject walk forward naturally","seconds":"8","images":["https://example.com/input.jpg"],"aspect_ratio":"9:16","n":1}'
```

```bash
curl https://ai.yuyapi.cn/v1/videos/task_xxx \
  -H "Authorization: Bearer sk-your-token"
```

Grok 1.5 图生视频模型只支持 1 张参考图；Omni Flash 支持 `seconds` 字符串 `"4"`、`"6"`、`"8"`、`"10"`；Veo 支持文生视频、单图图生视频和 2 张图首尾帧。轮询成功后优先读取 `url`，兼容 `video_url`、`metadata.url`、`result.file_url` 和 `data[0].url`。

## 4. 当前可调用模型

| 模型 | 类型 | 接口 | 价格说明 |
| --- | --- | --- | --- |
| `claude-fable-5` | 聊天 / Codex | `POST /v1/chat/completions` | 输入 $15.9 / 1M tokens；输出 $74.9 / 1M tokens |
| `claude-opus-4-6` | 聊天 / Codex | `POST /v1/chat/completions` | 输入 $2.54 / 1M tokens；输出 $12.7 / 1M tokens |
| `claude-opus-4-8` | 聊天 / Codex | `POST /v1/chat/completions` | 输入 $2.99 / 1M tokens；输出 $15.9 / 1M tokens |
| `gemini-3.1-flash-lite-preview` | 聊天 / Codex | `POST /v1/chat/completions` | 输入 $0.8 / 1M tokens；输出 $3.8 / 1M tokens |
| `gemini-3.1-pro-preview` | 聊天 / Codex | `POST /v1/chat/completions` | 输入 $1.7 / 1M tokens；输出 $9.9 / 1M tokens |
| `gpt-5.5` | 聊天 / Codex | `POST /v1/chat/completions` | 输入 $1.369 / 1M tokens；输出 $7.791 / 1M tokens |
| `gpt-5.6-luna` | 聊天 / Codex | `POST /v1/chat/completions` | 输入 $0.3522 / 1M tokens；输出 $2.2792 / 1M tokens |
| `gpt-5.6-sol` | 聊天 / Codex | `POST /v1/chat/completions` | 输入 $1.369 / 1M tokens；输出 $8.966 / 1M tokens |
| `gpt-5.6-terra` | 聊天 / Codex | `POST /v1/chat/completions` | 输入 $0.669 / 1M tokens；输出 $4.96 / 1M tokens |
| `gpt-image-2` | 图片生成 | `POST /v1/images/generations 或 /v1/images/edits + GET /v1/images/tasks/{task_id}` | $0.15 / 次 |
| `T香蕉2` | 图片生成 | `POST /v1beta/models/{model}:generateContent + GET /v1/images/tasks/{task_id}` | $0.15 / 次 |
| `T香蕉pro` | 图片生成 | `POST /v1beta/models/{model}:generateContent + GET /v1/images/tasks/{task_id}` | $0.2 / 次 |
| `grok-imagine-video-1.5-480p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.085 / 成功任务 |
| `grok-imagine-video-1.5-720p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.098 / 成功任务 |
| `grok-video-480p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.085 / 成功任务 |
| `grok-video-720p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.098 / 成功任务 |
| `ky-fast-720p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $3.8 / 成功任务 |
| `ky-pro-720p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $4.65 / 成功任务 |
| `ld-pro-480p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $6.2 / 成功任务 |
| `ld-pro-720p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $7.99 / 成功任务 |
| `ld-pro-720p-cvk` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $5.99 / 成功任务 |
| `omni-flash` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.268 / 成功任务 |
| `omni-flash-1080p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.298 / 成功任务 |
| `omni-flash-4k` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.386 / 成功任务 |
| `omni-flash-components` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.278 / 成功任务 |
| `omni-flash-components-1080p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.308 / 成功任务 |
| `omni-flash-components-4k` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.396 / 成功任务 |
| `omni-flash-edit` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $2.66 / 成功任务 |
| `omni-flash-edit-1080p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $3.66 / 成功任务 |
| `omni-flash-edit-4k` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $4.86 / 成功任务 |
| `sora-v3-fast` | 视频生成 | `POST /v1/video/submit/generate + GET /v1/video/fetch/{task_id}` | $0.59 / 成功任务 |
| `sora-v3-fast-1080p` | 视频生成 | `POST /v1/video/submit/generate + GET /v1/video/fetch/{task_id}` | $0.89 / 成功任务 |
| `sora-v3-pro` | 视频生成 | `POST /v1/video/submit/generate + GET /v1/video/fetch/{task_id}` | $0.69 / 成功任务 |
| `sora-v3-pro-1080p` | 视频生成 | `POST /v1/video/submit/generate + GET /v1/video/fetch/{task_id}` | $0.99 / 成功任务 |
| `veo-3.1-fast-1080` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $1.12 / 成功任务 |
| `veo-3.1-fast-4k` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $2.84 / 成功任务 |
| `veo-3.1-fast-720` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.88 / 成功任务 |
| `veo-3.1-lite-1080` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.82 / 成功任务 |
| `veo-3.1-lite-4k` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $2.6 / 成功任务 |
| `veo-3.1-lite-720` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $0.58 / 成功任务 |
| `veo-3.1-quality-1080` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $10.99 / 成功任务 |
| `veo-3.1-quality-4k` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $12.99 / 成功任务 |
| `veo-3.1-quality-720` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $9.9 / 成功任务 |
| `xh-fast-720p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $3.1 / 成功任务 |
| `xh-pro-720p` | 视频生成 | `POST /v1/videos + GET /v1/videos/{task_id}` | $3.99 / 成功任务 |

## 5. 常见状态

- 图片任务成功状态: `succeeded` / `completed`
- 视频任务成功状态: `succeeded` / `completed`
- 失败状态: `failed` / `cancelled` / `canceled`
- 成功结果通常读取 `result.data[0].url`、`data[0].url`、`result.url` 或 `url`。

## 6. OpenAPI JSON

下面这段是给 Apifox / Postman / Swagger 等工具导入使用的机器可读接口规格；普通下游用户只看上面的调用示例即可。

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "YUY API",
    "version": "1.0.0",
    "description": "YUY API 下游统一调用接口，兼容 OpenAI 风格鉴权和请求结构。"
  },
  "servers": [
    {
      "url": "https://ai.yuyapi.cn/v1"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "ChatCompletionRequest": {
        "type": "object",
        "required": [
          "model",
          "messages"
        ],
        "properties": {
          "model": {
            "type": "string"
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "ImageGenerationRequest": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "n": {
            "type": "integer",
            "default": 1
          },
          "size": {
            "type": "string",
            "example": "1024x1024"
          },
          "quality": {
            "type": "string",
            "example": "auto"
          },
          "response_format": {
            "type": "string",
            "example": "url"
          }
        }
      },
      "TaskResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "task_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "result": {
            "type": "object"
          }
        }
      },
      "V1VideoRequest": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "examples": [
              "grok-video-720p",
              "grok-imagine-video-1.5-720p",
              "omni-flash-4k",
              "omni-flash-components-1080p",
              "omni-flash-edit-1080p",
              "veo-3.1-fast-1080",
              "ky-pro-720p",
              "xh-pro-720p",
              "ld-pro-720p"
            ]
          },
          "prompt": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "videos": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "audios": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "video_url": {
            "type": "string",
            "format": "uri"
          },
          "aspect_ratio": {
            "type": "string",
            "examples": [
              "16:9",
              "9:16",
              "1:1"
            ]
          },
          "seconds": {
            "type": "string",
            "examples": [
              "6",
              "8",
              "10",
              "16",
              "20"
            ]
          },
          "n": {
            "type": "integer",
            "default": 1
          }
        }
      }
    }
  },
  "paths": {
    "/chat/completions": {
      "post": {
        "summary": "聊天 / Codex",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Chat completion response"
          }
        }
      }
    },
    "/images/generations": {
      "post": {
        "summary": "图片文生图",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageGenerationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Image result or async image task. gpt-image-2 returns task_id first; poll /images/tasks/{task_id} for final URL."
          }
        }
      }
    },
    "/images/edits": {
      "post": {
        "summary": "图片图生图 / 编辑",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "model",
                  "prompt",
                  "image"
                ],
                "properties": {
                  "model": {
                    "type": "string",
                    "example": "gpt-image-2"
                  },
                  "prompt": {
                    "type": "string"
                  },
                  "image": {
                    "type": "string",
                    "format": "binary"
                  },
                  "image[]": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Async image task. Read task_id and poll /images/tasks/{task_id}."
          }
        }
      }
    },
    "/images/tasks/{task_id}": {
      "get": {
        "summary": "图片任务轮询",
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Image task response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResponse"
                }
              }
            }
          }
        }
      }
    },
    "/video/submit/generate": {
      "post": {
        "summary": "视频任务提交",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Video task response"
          }
        }
      }
    },
    "/video/fetch/{task_id}": {
      "get": {
        "summary": "视频任务轮询",
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Video task response"
          }
        }
      }
    },
    "/videos": {
      "post": {
        "summary": "Grok / Omni / Veo / KY / XH / LD async video task submit",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V1VideoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Async video task response"
          }
        }
      }
    },
    "/videos/{task_id}": {
      "get": {
        "summary": "Grok / Omni / Veo / KY / XH / LD task polling",
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OpenAI-style video task response"
          }
        }
      }
    }
  },
  "x-yuy-models": [
    {
      "name": "claude-fable-5",
      "category": "text",
      "categoryLabel": "聊天 / Codex",
      "endpoint": "POST /v1/chat/completions",
      "price": "输入 $15.9 / 1M tokens；输出 $74.9 / 1M tokens",
      "billingMode": "per_token"
    },
    {
      "name": "claude-opus-4-6",
      "category": "text",
      "categoryLabel": "聊天 / Codex",
      "endpoint": "POST /v1/chat/completions",
      "price": "输入 $2.54 / 1M tokens；输出 $12.7 / 1M tokens",
      "billingMode": "per_token"
    },
    {
      "name": "claude-opus-4-8",
      "category": "text",
      "categoryLabel": "聊天 / Codex",
      "endpoint": "POST /v1/chat/completions",
      "price": "输入 $2.99 / 1M tokens；输出 $15.9 / 1M tokens",
      "billingMode": "per_token"
    },
    {
      "name": "gemini-3.1-flash-lite-preview",
      "category": "text",
      "categoryLabel": "聊天 / Codex",
      "endpoint": "POST /v1/chat/completions",
      "price": "输入 $0.8 / 1M tokens；输出 $3.8 / 1M tokens",
      "billingMode": "per_token"
    },
    {
      "name": "gemini-3.1-pro-preview",
      "category": "text",
      "categoryLabel": "聊天 / Codex",
      "endpoint": "POST /v1/chat/completions",
      "price": "输入 $1.7 / 1M tokens；输出 $9.9 / 1M tokens",
      "billingMode": "per_token"
    },
    {
      "name": "gpt-5.5",
      "category": "text",
      "categoryLabel": "聊天 / Codex",
      "endpoint": "POST /v1/chat/completions",
      "price": "输入 $1.369 / 1M tokens；输出 $7.791 / 1M tokens",
      "billingMode": "per_token"
    },
    {
      "name": "gpt-5.6-luna",
      "category": "text",
      "categoryLabel": "聊天 / Codex",
      "endpoint": "POST /v1/chat/completions",
      "price": "输入 $0.3522 / 1M tokens；输出 $2.2792 / 1M tokens",
      "billingMode": "per_token"
    },
    {
      "name": "gpt-5.6-sol",
      "category": "text",
      "categoryLabel": "聊天 / Codex",
      "endpoint": "POST /v1/chat/completions",
      "price": "输入 $1.369 / 1M tokens；输出 $8.966 / 1M tokens",
      "billingMode": "per_token"
    },
    {
      "name": "gpt-5.6-terra",
      "category": "text",
      "categoryLabel": "聊天 / Codex",
      "endpoint": "POST /v1/chat/completions",
      "price": "输入 $0.669 / 1M tokens；输出 $4.96 / 1M tokens",
      "billingMode": "per_token"
    },
    {
      "name": "gpt-image-2",
      "category": "image",
      "categoryLabel": "图片生成",
      "endpoint": "POST /v1/images/generations 或 /v1/images/edits + GET /v1/images/tasks/{task_id}",
      "price": "$0.15 / 次",
      "billingMode": "per_request"
    },
    {
      "name": "T香蕉2",
      "category": "image",
      "categoryLabel": "图片生成",
      "endpoint": "POST /v1beta/models/{model}:generateContent + GET /v1/images/tasks/{task_id}",
      "price": "$0.15 / 次",
      "billingMode": "per_request"
    },
    {
      "name": "T香蕉pro",
      "category": "image",
      "categoryLabel": "图片生成",
      "endpoint": "POST /v1beta/models/{model}:generateContent + GET /v1/images/tasks/{task_id}",
      "price": "$0.2 / 次",
      "billingMode": "per_request"
    },
    {
      "name": "grok-imagine-video-1.5-480p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.085 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "grok-imagine-video-1.5-720p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.098 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "grok-video-480p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.085 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "grok-video-720p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.098 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "ky-fast-720p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$3.8 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "ky-pro-720p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$4.65 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "ld-pro-480p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$6.2 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "ld-pro-720p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$7.99 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "ld-pro-720p-cvk",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$5.99 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "omni-flash",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.268 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "omni-flash-1080p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.298 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "omni-flash-4k",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.386 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "omni-flash-components",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.278 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "omni-flash-components-1080p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.308 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "omni-flash-components-4k",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.396 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "omni-flash-edit",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$2.66 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "omni-flash-edit-1080p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$3.66 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "omni-flash-edit-4k",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$4.86 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "sora-v3-fast",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/video/submit/generate + GET /v1/video/fetch/{task_id}",
      "price": "$0.59 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "sora-v3-fast-1080p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/video/submit/generate + GET /v1/video/fetch/{task_id}",
      "price": "$0.89 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "sora-v3-pro",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/video/submit/generate + GET /v1/video/fetch/{task_id}",
      "price": "$0.69 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "sora-v3-pro-1080p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/video/submit/generate + GET /v1/video/fetch/{task_id}",
      "price": "$0.99 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "veo-3.1-fast-1080",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$1.12 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "veo-3.1-fast-4k",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$2.84 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "veo-3.1-fast-720",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.88 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "veo-3.1-lite-1080",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.82 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "veo-3.1-lite-4k",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$2.6 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "veo-3.1-lite-720",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$0.58 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "veo-3.1-quality-1080",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$10.99 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "veo-3.1-quality-4k",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$12.99 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "veo-3.1-quality-720",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$9.9 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "xh-fast-720p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$3.1 / 成功任务",
      "billingMode": "per_request"
    },
    {
      "name": "xh-pro-720p",
      "category": "video",
      "categoryLabel": "视频生成",
      "endpoint": "POST /v1/videos + GET /v1/videos/{task_id}",
      "price": "$3.99 / 成功任务",
      "billingMode": "per_request"
    }
  ]
}
```
