> ## Documentation Index
> Fetch the complete documentation index at: https://docs.viggle.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 创建角色

> 源图片可以作为上传文件提供，也可以通过 `image_url` 提供。唯一的例外是 `type` 为 `vsplat` 且带 `enhance_prompt` 时，可以省略图片，仅凭文本生成角色。响应是刚进入排队的资产；轮询 `GET /v1/characters/{character_id}`，直到 `status` 为 `ready`。

`type` 决定用同一张图片生成什么：`render`（默认，与引入 `type` 之前的行为相同）生成可直接用于渲染的 2D 角色，消耗 1 积分；`vsplat` 额外提取 3D 高斯泼溅（Gaussian splat），消耗 25 积分（带 `enhance` 为 30 积分）；`all` 两者都生成，按两者合计计费，即 26 积分，带 `enhance` 为 31 积分。vsplat 提取变为 `ready` 后，从 `GET /v1/characters/{character_id}/export` 获取其下载 URL。

`enhance` 会对 vsplat 提取额外执行一轮 AI 增强。仅在 `type` 为 `vsplat` 或 `all` 时生效；`type=render` 时不生效，也不计费。它将 vsplat 的费用从 25 积分提高到固定 30 积分，是替换 vsplat 基础价格，而不是在其上叠加。

`enhance_prompt` 描述增强后应得到的角色。单独发送可仅凭文本生成角色；与图片一起发送则用于引导该图片的增强方式。仅适用于 `vsplat` 和 `all`，除增强提取的费用外不额外收费，与 `enhance=false` 同时传时会被拒绝。`type` 为 `all` 时仍需要图片，因为其 2D 渲染部分要基于图片构建。

积分不足时：`render` 角色以及 `all` 角色的 2D 部分在创建时返回 `402`；`vsplat` 提取会被接受，随后其 `vsplat.status` 以 `INSUFFICIENT_CREDITS` 失败。`render` 角色在账户内共享：该账户的任何 API 密钥都可以读取和删除。`vsplat` 角色以及所有角色导出（包括 `all` 的 3D 部分）仅对创建它的 API 密钥可见；其他密钥会得到 `404 CHARACTER_NOT_FOUND`。




## OpenAPI

````yaml zh/openapi.yaml POST /v1/characters
openapi: 3.0.3
info:
  title: Viggle API
  description: >
    Viggle API 可生成 AI 视频（Viggle H3、Viggle Remake、Video Remix）、图片（Viggle Image）、2
    倍视频超分（FlashVSR），以及 JST-2 3D 角色、动作和场景。所有任务都是异步的：先创建，再轮询（渲染任务也可监听进度），直到任务进入终态。


    基础 URL：`https://apis.viggle.ai`。每个请求都需通过 `Authorization: Bearer <API key>`
    认证。用量按积分计费（1 积分 = $0.01）。指南与价格：https://docs.viggle.ai/zh/v1/introduction
  version: 2.0.0
  contact:
    name: Viggle Support
    url: https://viggle.ai
servers:
  - url: https://apis.viggle.ai
    description: 生产环境服务器
security:
  - bearerAuth: []
tags:
  - name: Renders
    description: >-
      Video Remix（JST-1）。准备输入、创建渲染任务、监听进度、取消以及下载结果。渲染任务的状态通过 `GET
      /v1/videos/{video_id}` 读取。
  - name: Credits
    description: 读取调用方 API 密钥可用的积分余额。
  - name: Characters
    description: |
      创建、列出、查看和删除可复用的角色资产。`type` 决定创建时是否同时提取 3D vsplat；就绪后需单独导出其下载链接。
  - name: Motions
    description: |
      创建、列出、查看和删除可复用的动作资产，也可从官方动作模板导入。`type` 决定创建时是否同时提取或生成 3D 动画；就绪后需单独导出其下载链接。
  - name: Videos
    description: >
      从文本、帧或参考素材生成 Viggle H3 视频（`vid_` 前缀），或从驱动视频和角色图生成 Viggle Remake 视频（`anim_`
      前缀）；用 FlashVSR 将视频超分 2 倍（`vsr_` 前缀）；并以统一视图读取调用方 API 密钥创建的所有视频——H3
      生成、Remake 生成以及 Video Remix 渲染任务（`render_` 前缀）——合并为同一种资源。
  - name: Images
    description: |
      Viggle Image——根据文本提示词生成 1–6 张 PNG 图片，可选用最多 8 张参考图引导（`img_` 前缀），并可按 ID 获取。
  - name: Scenes
    description: >
      场景模型——从文本提示词或 360° 全景图构建 3D
      高斯泼溅场景（`.spz`），生成新的指定位姿视角，并基于这些视角重建场景。每个操作都是一个异步任务（`scn_` 前缀），按 ID
      读取结果。每次运行按每个视角 1 积分计费，一张全景图计为 6 个视角。除非任务以 `ready` 结束，否则积分全额退款。
paths:
  /v1/characters:
    parameters:
      - $ref: '#/components/parameters/RequestId'
    post:
      tags:
        - Characters
      summary: 创建角色
      description: >
        源图片可以作为上传文件提供，也可以通过 `image_url` 提供。唯一的例外是 `type` 为 `vsplat` 且带
        `enhance_prompt` 时，可以省略图片，仅凭文本生成角色。响应是刚进入排队的资产；轮询 `GET
        /v1/characters/{character_id}`，直到 `status` 为 `ready`。


        `type` 决定用同一张图片生成什么：`render`（默认，与引入 `type` 之前的行为相同）生成可直接用于渲染的 2D 角色，消耗 1
        积分；`vsplat` 额外提取 3D 高斯泼溅（Gaussian splat），消耗 25 积分（带 `enhance` 为 30
        积分）；`all` 两者都生成，按两者合计计费，即 26 积分，带 `enhance` 为 31 积分。vsplat 提取变为 `ready`
        后，从 `GET /v1/characters/{character_id}/export` 获取其下载 URL。


        `enhance` 会对 vsplat 提取额外执行一轮 AI 增强。仅在 `type` 为 `vsplat` 或 `all`
        时生效；`type=render` 时不生效，也不计费。它将 vsplat 的费用从 25 积分提高到固定 30 积分，是替换 vsplat
        基础价格，而不是在其上叠加。


        `enhance_prompt` 描述增强后应得到的角色。单独发送可仅凭文本生成角色；与图片一起发送则用于引导该图片的增强方式。仅适用于
        `vsplat` 和 `all`，除增强提取的费用外不额外收费，与 `enhance=false` 同时传时会被拒绝。`type` 为
        `all` 时仍需要图片，因为其 2D 渲染部分要基于图片构建。


        积分不足时：`render` 角色以及 `all` 角色的 2D 部分在创建时返回 `402`；`vsplat` 提取会被接受，随后其
        `vsplat.status` 以 `INSUFFICIENT_CREDITS` 失败。`render` 角色在账户内共享：该账户的任何 API
        密钥都可以读取和删除。`vsplat` 角色以及所有角色导出（包括 `all` 的 3D 部分）仅对创建它的 API 密钥可见；其他密钥会得到
        `404 CHARACTER_NOT_FOUND`。
      operationId: v1CreateCharacter
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CreateCharacterForm'
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCharacterForm'
              description: 以 JSON 对象传入的表单字段，用 `image_url` 代替 `image` 上传。
      responses:
        '200':
          description: 角色已进入排队。
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Asset'
        '400':
          $ref: '#/components/responses/ResourceBadRequest'
        '401':
          $ref: '#/components/responses/ResourceUnauthorized'
        '402':
          $ref: '#/components/responses/ResourcePaymentRequired'
        '404':
          $ref: '#/components/responses/ResourceNotFound'
        '408':
          $ref: '#/components/responses/UploadTimeout'
        '409':
          $ref: '#/components/responses/ResourceConflict'
        '500':
          $ref: '#/components/responses/ResourceInternalServerError'
        '502':
          $ref: '#/components/responses/ResourceBadGateway'
        '503':
          $ref: '#/components/responses/ResourceServiceUnavailable'
components:
  parameters:
    RequestId:
      name: X-Request-Id
      in: header
      required: false
      description: 可选，调用方提供的关联 ID，会原样回显在响应头中。不传则由服务生成。用于链路追踪和技术支持。
      schema:
        type: string
        minLength: 1
  schemas:
    CreateCharacterForm:
      description: >
        源图片必须且只能通过 `image`、`image_url` 或向后兼容的别名 `ref_url` 之一提供。只有 `type` 为
        `vsplat` 且提供了 `enhance_prompt` 时才可省略。`type` 决定据此生成什么——见
        `createCharacter`。`type` 之后的字段仅在其为 `vsplat` 或 `all` 时适用。工作流路径、输出
        URI、缩略图相机和姿态、渲染来源以及 rest 模式均由服务管理。
      type: object
      properties:
        image:
          type: string
          format: binary
          description: 直接上传的角色源图片。`image` 和 `image_url` 必须且只能提供一个；支持的格式由服务校验。
        image_url:
          type: string
          format: uri
          description: 角色源图片的公网可访问 URL。用于替代 `image`，并在请求处理期间保持可访问。
        ref_url:
          type: string
          format: uri
          deprecated: true
          description: '`image_url` 的向后兼容别名。不要同时发送两个字段。'
        name:
          type: string
          description: 角色的可选显示名称。省略时默认为空字符串。
          default: ''
        model:
          type: string
          enum:
            - V3
            - v3
            - V3_Preview
            - V4
            - v4
            - V4_Preview
            - V4_BaseSG
          description: '`type=render` 或 `all` 使用的可选 2D 预处理模型。它不决定 3D 提取模型。省略则使用服务默认值。'
        type:
          type: string
          description: >-
            要生成的输出：`render` 生成可复用的 2D 角色（1 积分），`vsplat` 只做 3D 提取（默认 30
            积分，`enhance=false` 时 25 积分），`all` 两者都生成（两者都计费——31 或 26 积分）。
          enum:
            - render
            - vsplat
            - all
          default: render
        variant:
          type: string
          enum:
            - optimized
            - original
          default: optimized
          description: VSPLAT 编码变体。`quality` 仅适用于 `optimized`。
        enhance:
          description: >
            是否运行更高保真度的 vsplat 提取。默认开启，固定 30 积分；设为 `false` 则使用更便宜的标准提取，25 积分。仅在
            `type` 为 `vsplat` 或 `all` 时生效——`type=render` 时不起作用，也不计费。
          type: boolean
          default: true
        enhance_prompt:
          description: >
            描述增强后要生成的角色的文本：是谁、服装、颜色、材质和风格。单独发送（仅限
            `type=vsplat`）时根据文本生成角色；与图片一起发送时用于引导该图片的增强方式。仅在 `type` 为 `vsplat` 或
            `all` 时适用，且不能与 `enhance=false` 同时使用。会先去除首尾空白，因此只含空白的值视为未提供；去除后上限为
            1000 个字符。姿态、相机和背景由服务固定。
          type: string
          minLength: 1
          maxLength: 1000
        joint_set:
          type: string
          enum:
            - expression
            - body
            - full
          default: body
          description: >
            vsplat 绑定的骨骼。`full` 保留全部 441 个关节；`expression` 保留 119
            个关节的身体加面部表情骨骼，但没有任何动作导出会生成与之匹配的骨骼（导出提供的 `mixamo`、`metahuman` 对应
            `full`，`metahuman_body` 对应 `body`）；`body` 保留 86
            个关节、仅身体的骨骼，去掉所有面部关节。减少关节集只会改变 `joints` 以及蒙皮矩阵 `W` 的列——splat
            数量本身不变，因此 `body` 角色仍有完整细节的面部，只是无法驱动面部动画。仅在 `type` 为 `vsplat` 或 `all`
            时适用，不影响价格。省略时为 V1 默认值 `body`（提取服务内部自身的默认值是 `full`，但 V1
            接口层总会在请求到达提取服务之前将省略值解析为 `body`）。该字段仅配置角色提取；动作提取不接受 `joint_set`。
        model_precision:
          type: number
          description: vsplat 提取的可选模型级精度参数，大于 0 且不超过 1。仅适用于 `type=vsplat` 或 `all`。
          minimum: 0
          exclusiveMinimum: true
          maximum: 1
        quality:
          type: number
          minimum: 0
          exclusiveMinimum: true
          maximum: 1
          default: 0.7
          description: 剪枝后保留的高斯 splat 目标比例。仅适用于 `type=vsplat` 或 `all`。
        filter_low_quality:
          type: boolean
          default: true
          description: 基于重要性排序的高斯剪枝总开关。仅当其为 true 时才使用 `prune_preset` 和 `prune_budget`。
        prune_preset:
          type: string
          enum:
            - geometric
            - draft
            - balanced
            - quality
            - compact
            - compact_hq
          default: balanced
          description: 高斯 splat 剪枝策略；仅在 `filter_low_quality=true` 时使用。
        prune_budget:
          type: number
          minimum: 0
          exclusiveMinimum: true
          description: 提取时剪枝的可选高斯数量上限。仅适用于 `type=vsplat` 或 `all`。
        use_sparse_W:
          type: boolean
          default: false
          description: 在提取出的资产中以稀疏矩阵存储蒙皮权重。
        scale_parts:
          type: string
          description: 身体部位或骨骼缩放系数的 JSON 对象，例如 `{"legs":1.1}`。需要 `joint_set=full`。
        render_thumbnail:
          description: |
            是否生成标准角色缩略图。渲染来源和姿态由服务内部选择。
          type: boolean
          default: false
        task_id:
          description: >
            `type=vsplat` 时由客户端提供的任务 ID。`type=all` 时，服务使用 Character ID
            作为配套提取任务的键。重复使用 ID 会返回 `409 ID_ALREADY_EXISTS`，不会重放原始响应。长度 1–200
            个字符：字母、数字、`_`、`.` 和 `-`，须以字母或数字开头。
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$
    Asset:
      description: >
        角色或动作资产。两种资源共用同一种数据结构。


        `progress` 和 `error` 始终为 null，`failed` 的资产也是如此：请通过 `status` 判断是否失败，通过
        `vsplat.error` 或 `glb.error` 查看提取失败。


        `type` 反映创建时请求的内容。角色为 `render`、`vsplat` 或 `all`；动作为 `render`、`glb` 或
        `all`。在 `type` 引入之前创建的资产报告为 `render`。`vsplat` 和 `glb`
        携带对应提取任务自身的状态——从不包含下载链接，下载链接需通过 `GET
        /v1/characters/{character_id}/export` 或 `GET
        /v1/motions/{motion_id}/export` 获取——且仅在 `type` 请求了该提取时才不为 null。对于 `all`
        资产，只有 2D 渲染和 3D 提取都就绪后，顶层 `status` 才会变为 `ready`；任一失败时，顶层 `status` 为
        `failed`，而子对象自身的 `status` 仍会显示是哪一个失败。
      type: object
      additionalProperties: false
      required:
        - id
        - status
        - name
        - progress
        - capabilities
        - created_at
        - completed_at
        - error
        - type
        - vsplat
        - glb
      properties:
        id:
          type: string
          description: 公开的资产标识符。Character ID 通常以 `char_` 开头；Motion ID 通常以 `mot_` 开头。
          minLength: 1
        status:
          description: >-
            资产的整体生命周期。`pending` 表示已创建但尚未排队，可按 `queued` 处理。仅当所需能力变为 `ready`
            后，才可将资产用于渲染或导出。
          type: string
          enum:
            - pending
            - queued
            - processing
            - ready
            - failed
        name:
          type: string
          description: 创建时提供或导入时生成的显示名称；不接受名称的流程中可能为空。
        progress:
          type: integer
          description: 预留字段；目前始终为 null。请改为轮询 `status`。
          nullable: true
          minimum: 0
          maximum: 100
        capabilities:
          description: |
            资产的可用用途。资产就绪后会出现 `video_render`。
          type: array
          items:
            type: string
        created_at:
          description: 带 UTC 偏移的 ISO 8601 时间戳，例如 `2026-07-31T09:15:22+00:00`。
          type: string
          nullable: true
        completed_at:
          type: string
          description: 所有请求的处理都进入终态时的时间戳（ISO 8601，带 UTC 偏移）；仍在处理时为 null。
          nullable: true
        error:
          type: object
          description: 预留的顶层失败详情。目前始终为 null；请通过 `status` 判断失败，并在适用时查看提取子对象。
          nullable: true
          allOf:
            - $ref: '#/components/schemas/ErrorBody'
        type:
          type: string
          description: >-
            创建资产时请求的处理内容。`render` 生成可直接用于 2D 渲染的资产，`vsplat`/`glb` 请求 3D 输出，`all`
            请求两种支持的输出。
          enum:
            - render
            - vsplat
            - glb
            - all
          default: render
        vsplat:
          description: >
            角色的 vsplat 提取状态。动作以及 `type` 为 `render` 的角色为 null。创建时提交的请求参数（如
            `model_precision`）不会在此回显——这里只有状态。
          nullable: true
          type: object
          additionalProperties: false
          required:
            - status
            - error
          properties:
            status:
              description: 角色 vsplat 提取的生命周期，与顶层资产状态相互独立。
              allOf:
                - $ref: '#/components/schemas/ResourceStatus'
            error:
              type: object
              description: vsplat 提取状态为 `failed` 时的结构化失败信息；否则为 null。
              nullable: true
              allOf:
                - $ref: '#/components/schemas/ErrorBody'
        glb:
          description: |
            动作的 3D 动画提取/生成状态。角色以及 `type` 为 `render` 的动作为 null。
          nullable: true
          type: object
          additionalProperties: false
          required:
            - status
            - skeletons
            - error
          properties:
            status:
              description: 动作 3D 动画提取或生成的生命周期，与顶层资产状态相互独立。
              allOf:
                - $ref: '#/components/schemas/ResourceStatus'
            skeletons:
              description: >
                可通过 `GET /v1/motions/{motion_id}/export?download_type=`
                导出的已就绪骨骼变体。`status` 变为 `ready` 前为空；两种变体会一次性预先生成，因此该值要么为空，要么为
                `[mixamo, metahuman]`。
              type: array
              items:
                type: string
                enum:
                  - mixamo
                  - metahuman
            error:
              type: object
              description: 3D 动画状态为 `failed` 时的结构化失败信息；否则为 null。
              nullable: true
              allOf:
                - $ref: '#/components/schemas/ErrorBody'
    ErrorBody:
      type: object
      additionalProperties: false
      required:
        - code
        - message
        - retryable
        - request_id
        - details
        - remediation
      properties:
        code:
          description: 稳定的机器可读错误代码。请据此进行程序化处理，而不要解析 `message`。
          allOf:
            - $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          description: 人类可读的说明，适合写入日志或展示给开发者。
        retryable:
          type: boolean
          description: 不修改输入直接重试该操作是否可能成功。HTTP 408、429 和 5xx 响应为 true。
        request_id:
          type: string
          description: 用于追踪和技术支持的关联标识符。报告失败时请附上。
        details:
          type: object
          description: 特定于该错误的结构化上下文；可用的键取决于 `code`。
          additionalProperties: true
        remediation:
          description: 建议的恢复操作及可选的重试延迟。
          allOf:
            - $ref: '#/components/schemas/ErrorRemediation'
    ResourceStatus:
      description: |
        所有异步资源共用的公开生命周期。取值与 `RenderStatus` 相同。
      type: string
      enum:
        - queued
        - processing
        - ready
        - failed
        - cancelled
    ResourceErrorResponse:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          description: 错误负载，包含稳定的错误代码、消息、重试建议、关联 ID 以及特定于该错误的详情。
          allOf:
            - $ref: '#/components/schemas/ErrorBody'
    ErrorResponse:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          description: 错误负载，包含稳定的错误代码、消息、重试建议、关联 ID 以及特定于该错误的详情。
          allOf:
            - $ref: '#/components/schemas/ErrorBody'
    ErrorCode:
      description: >
        API 返回的错误代码，出现在同步错误信封以及失败任务的 `error` 对象中。客户端应能容忍此处未列出的代码。没有公开映射的异步失败会以
        `PROCESSING_FAILED` 呈现。
      type: string
      enum:
        - INVALID_REQUEST
        - UNAUTHENTICATED
        - INVALID_CREDENTIAL
        - INSUFFICIENT_CREDITS
        - RENDER_NOT_FOUND
        - CHARACTER_NOT_FOUND
        - MOTION_NOT_FOUND
        - DRAFT_NOT_FOUND
        - NOT_FOUND
        - RESULT_EXPIRED
        - IDEMPOTENCY_KEY_REUSED
        - ID_ALREADY_EXISTS
        - UPLOAD_TIMEOUT
        - CONTENT_POLICY_VIOLATION
        - RATE_LIMITED
        - SERVICE_BUSY
        - INTERNAL_ERROR
        - IMAGE_REQUIRED
        - MOTION_VIDEO_REQUIRED
        - UNSUPPORTED_MEDIA
        - VIDEO_TOO_LONG
        - VIDEO_TOO_LARGE
        - VIDEO_RESOLUTION_TOO_HIGH
        - VIDEO_UNREADABLE
        - VIDEO_DIMENSIONS_MUST_BE_EVEN
        - VIDEO_INACCESSIBLE
        - NO_HUMANS_DETECTED
        - MOTION_NOT_READY
        - MOTION_MODEL_MISMATCH
        - INVALID_BACKGROUND_MODE
        - ALL_WORKERS_BUSY
        - WORKER_STOPPED
        - TASK_FAILED
        - PROCESSING_FAILED
    ErrorRemediation:
      type: object
      additionalProperties: false
      required:
        - action
        - retry_after_ms
      properties:
        action:
          type: string
          enum:
            - none
            - retry
          description: 建议的下一步操作。同步错误始终为 `none`；失败任务的 `error` 在失败可重试时为 `retry`。
        retry_after_ms:
          type: integer
          description: 重试前建议等待的毫秒数；不建议定时重试时为 null。
          nullable: true
          format: int64
          minimum: 0
  headers:
    RequestId:
      description: 用于技术支持和链路追踪的稳定请求标识。
      schema:
        type: string
  responses:
    ResourceBadRequest:
      description: |
        请求无效。资源类接口对所有请求格式错误都返回 `400`，从不返回 `422`。
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ResourceErrorResponse'
    ResourceUnauthorized:
      description: 缺少 API 密钥或 API 密钥无效。错误码 `UNAUTHENTICATED`。
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ResourceErrorResponse'
    ResourcePaymentRequired:
      description: 积分不足。
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ResourceErrorResponse'
    ResourceNotFound:
      description: >
        资源不存在，或对调用方不可见（其他账户的 2D 资产，或由其他 API 密钥创建的仅 3D 资产或导出）。这几种情况刻意不作区分。错误码为
        `CHARACTER_NOT_FOUND`、`MOTION_NOT_FOUND` 或
        `RENDER_NOT_FOUND`；文件已被删除的导出返回 `RESULT_EXPIRED`。
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ResourceErrorResponse'
    UploadTimeout:
      description: >-
        multipart 上传未能在 10 分钟的读取截止时间内传完。错误码 `UPLOAD_TIMEOUT`，可重试：直接重试，或改传 URL
        代替文件。
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ResourceConflict:
      description: 客户端提供的 `task_id` 已被使用（错误码 `ID_ALREADY_EXISTS`）。
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ResourceErrorResponse'
    ResourceInternalServerError:
      description: 服务器意外错误。
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ResourceErrorResponse'
    ResourceBadGateway:
      description: 提取后端不可用，或提取失败。
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ResourceErrorResponse'
    ResourceServiceUnavailable:
      description: 服务暂时不可用。
      headers:
        Retry-After:
          schema:
            type: integer
            minimum: 0
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ResourceErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: >
        以 `Authorization: Bearer <API key>` 的形式发送 API 密钥。密钥以 `sk-`
        开头。缺少密钥或密钥无效时返回 `401 UNAUTHENTICATED`。切勿在浏览器代码中暴露 API 密钥。

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.