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

> ## Agent Instructions
> Public hosts only: console https://omnimux.ai/dashboard · API https://api.omnimux.ai · docs https://docs.omnimux.ai.
> Gateway auth is Authorization: Bearer sk-… on https://api.omnimux.ai/v1 (OpenAI-compatible Chat Completions and related paths).
> Discover pages from /llms.txt; full site dump /llms-full.txt; product skill /skill.md; docs search MCP /mcp. Prefer .md page URLs for Markdown.
> Default docs locale is en; zh mirrors the same relative paths. Do not invent model ids not present on live pricing or the complete API pages.

# 查询角色

> 通过账号限定的创作接口查询角色。

读取本人成功的角色主图及其 `multiviews` 关联。关联的多角度任务可能仍在执行或已经失败。多角度设定图不能冒充角色主图。没有命令行回执的既有网页任务，`request_id` 可能为空。

* 服务地址为 `https://omnimux.ai`，使用限定权限个人凭据，不使用 `sk-` 网关密钥。
* 所需权限：`influencer_creation:read`.
* `New-Api-User` 只作可选兼容信息。账号由凭据确定，此请求头不能选择其他归属。

新增权限须重新明确完成设备授权；已有和旧式凭据不会自动扩权。见[设备码登录](https://docs.omnimux.ai/zh/api-reference/account/device-login.md)。

```bash cURL theme={null}
curl --request GET \
  --url 'https://omnimux.ai/api/influencer/v1/characters/task_example_character' \
  --header 'Authorization: Bearer <user-access-token>'
```

```json 200 仅示例 theme={null}
{
  "success": true,
  "data": {
    "request_id": "creator-character-0001",
    "task_id": "task_example_character",
    "kind": "character",
    "status": "succeeded",
    "raw_status": "SUCCESS",
    "artifact_status": "ready",
    "input": {
      "tier": "normal",
      "selection": {},
      "brief": "A friendly adult character"
    },
    "recovery_expires_at": 1792605400,
    "created_at": 1792000000,
    "finished_at": 1792000600,
    "artifacts": [
      {
        "key": "image",
        "type": "image",
        "mime_type": "image/png",
        "content_url": "https://omnimux.ai/v1/tasks/task_example_character/artifacts/image/content?access=EXAMPLE_ONLY"
      }
    ],
    "replayed": false,
    "multiviews": []
  }
}
```

```json 401 theme={null}
{
  "success": false,
  "code": "AUTH_UNAUTHORIZED",
  "message": "需要有效账号凭据；过期、已撤销或被停用账号的凭据会被拒绝。"
}
```

```json 403 theme={null}
{
  "success": false,
  "code": "ACCESS_TOKEN_SCOPE_DENIED",
  "message": "缺少明确的创作读取/生成权限；旧凭据不会自动扩权。"
}
```

```json 404 theme={null}
{
  "success": false,
  "code": "task_not_found",
  "message": "未找到本人可用任务、角色或请求；不会透露其他账号的资源是否存在。"
}
```

```json 503 theme={null}
{
  "success": false,
  "code": "generation_queue_unavailable",
  "message": "创作或读取暂不可用；也可能是新生成尚未启用或当前没有兼容能力。"
}
```


## OpenAPI

````yaml openapi/ops/influencer/zh/creation.json GET /api/influencer/v1/characters/{task_id}
openapi: 3.1.0
info:
  title: OmniMux 角色与视频创作
  version: '1'
servers:
  - url: https://omnimux.ai
security:
  - accessToken: []
paths:
  /api/influencer/v1/characters/{task_id}:
    get:
      summary: 查询角色
      description: >-
        需要明确的 influencer_creation:read
        权限；有效网页会话也可使用同一归属受限入口。创建请求拒绝未知顶层字段；调用方不能选择模型、供应商分组、尺寸或手填时长。
      operationId: InfluencerGetCharacter
      parameters:
        - name: New-Api-User
          in: header
          required: false
          schema:
            type: string
          description: 可选兼容请求头，不参与身份验证或资源归属；后台从凭据确定账号。
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            example: task_example_character
          description: 本人作品任务编号，不是供应商编号或请求编号。
      responses:
        '200':
          description: 仅属于当前账号的创作数据。
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/CharacterDetail'
                required:
                  - success
                  - data
        '401':
          description: 需要有效账号凭据；过期、已撤销或被停用账号的凭据会被拒绝。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: AUTH_UNAUTHORIZED
                message: 需要有效账号凭据；过期、已撤销或被停用账号的凭据会被拒绝。
        '403':
          description: 缺少明确的创作读取/生成权限；旧凭据不会自动扩权。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: ACCESS_TOKEN_SCOPE_DENIED
                message: 缺少明确的创作读取/生成权限；旧凭据不会自动扩权。
        '404':
          description: 未找到本人可用任务、角色或请求；不会透露其他账号的资源是否存在。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: task_not_found
                message: 未找到本人可用任务、角色或请求；不会透露其他账号的资源是否存在。
        '503':
          description: 创作或读取暂不可用；也可能是新生成尚未启用或当前没有兼容能力。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: generation_queue_unavailable
                message: 创作或读取暂不可用；也可能是新生成尚未启用或当前没有兼容能力。
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://omnimux.ai/api/influencer/v1/characters/task_example_character' \
              --header 'Authorization: Bearer <user-access-token>'
components:
  schemas:
    CharacterDetail:
      type: object
      properties:
        request_id:
          type: string
          description: 调用方恢复编号；无命令行回执的既有网页任务可能为空，与请求追踪编号不同。
        task_id:
          type: string
          example: task_example_character
        kind:
          type: string
          enum:
            - character
            - multiview
            - video
        status:
          type: string
          enum:
            - waiting
            - submitting
            - reconciling
            - queued
            - running
            - succeeded
            - failed
            - unknown
        raw_status:
          type: string
          description: 原生任务状态；自动处理请使用归一化后的 status。
        artifact_status:
          type: string
          enum:
            - pending
            - ready
            - unavailable
          description: ready 要求任务成功且存在可用成品。受理成功或成品数组为空不代表已交付。
        parent_task_id:
          type: string
          example: task_example_character
        input:
          $ref: '#/components/schemas/ProductInput'
        recovery_expires_at:
          type: integer
          format: int64
          minimum: 0
          description: 秒级时间戳；进行中或尚未建立结束恢复期限时为零。结束后可恢复七天；过期不允许重用请求编号。
        created_at:
          type: integer
          format: int64
        finished_at:
          type: integer
          format: int64
        artifacts:
          type: array
          items:
            $ref: '#/components/schemas/Artifact'
        replayed:
          type: boolean
          description: 创建、请求恢复及任务/成品详情会返回；角色投影不保证包含此字段。
        raw_quota:
          type: integer
          minimum: 0
          description: 已知的原生额度记录，不是积分：raw_quota ÷ 500000 = 美元。没有已知正数时省略。
        credits:
          type: number
          minimum: 0
          description: 已知 raw_quota ÷ 50000，不是生成前报价，也不是最终退款凭证。
        quota_status:
          type: string
          enum:
            - recorded
            - reconciling
          description: 失败任务的 reconciling 不代表积分已经退回。
        fail_reason:
          type: string
          description: >-
            可用时返回的公开失败原因，请结合状态判断。"Insufficient user quota"
            表示任务在执行或结算阶段因账户余额不足失败；失败说明不代表退款已经完成。
        multiviews:
          type: array
          items:
            $ref: '#/components/schemas/Task'
          description: 本人关联的多角度设定图任务，可能包含进行中或失败记录。
      required:
        - request_id
        - task_id
        - kind
        - status
        - raw_status
        - artifact_status
        - input
        - recovery_expires_at
        - created_at
        - finished_at
        - artifacts
        - multiviews
    Error:
      type: object
      properties:
        success:
          type: boolean
          const: false
        code:
          type: string
        message:
          type: string
      required:
        - success
        - code
        - message
    ProductInput:
      type: object
      properties:
        tier:
          type: string
          enum:
            - normal
            - freak
            - total
            - cats
            - dogs
        selection:
          $ref: '#/components/schemas/Selection'
        brief:
          type: string
        image_url:
          type: string
        parent_task_id:
          type: string
          example: task_example_character
        mode:
          type: string
          enum:
            - motion
            - replace
            - recreate
        resolution:
          type: string
          enum:
            - 480p
            - 720p
        aspect_ratio:
          type: string
          enum:
            - '16:9'
            - '9:16'
            - '3:4'
        duration_sec:
          type: integer
          description: >-
            由服务端从参考视频推导的整数生成时长；小数秒可能被取整。recreate 时回显来自 analyze 结果提交的
            duration_sec。不是创建入参、不是参考视频的精确时长，也不是成片实测时长。
        character_task_id:
          type: string
          example: task_example_character
        prompt:
          type: string
    Artifact:
      type: object
      properties:
        key:
          type: string
        type:
          type: string
          examples:
            - image
            - video
        mime_type:
          type: string
        content_url:
          type: string
          format: uri
          description: 短期签名成品地址；失效时重新查询成品入口。不要向该地址或其存储重定向转发账号凭据。
        video_metadata:
          type: object
          description: >-
            服务器观测到的生成成品视频媒体信息。历史任务和非视频成品不包含此对象。数值为尽力而为：duration
            取自容器，video_duration 当前与它相同，调用方仍须按自己的约束校验。
          properties:
            duration:
              type: number
              description: 容器时长，单位秒。
            video_duration:
              type: number
              description: 画面时长，单位秒。生成成品未完整解码，因此当前与 duration 相同。
            width:
              type: integer
              description: 宽度，单位像素。
            height:
              type: integer
              description: 高度，单位像素。
            frame_rate:
              type: number
              description: 帧率，单位帧/秒。
            video_codec:
              type: string
              description: 观测到的视频编码，例如 h264 或 hevc。
            audio_codec:
              type: string
              description: 观测到的音频编码；成品无音轨时为空字符串。
            container:
              type: string
              description: 容器格式，例如 mp4 或 mov。
            size_bytes:
              type: integer
              format: int64
              description: 已存储成品的字节数。
          required:
            - duration
            - video_duration
            - width
            - height
            - frame_rate
            - video_codec
            - audio_codec
            - container
            - size_bytes
      required:
        - key
        - type
        - content_url
    Task:
      type: object
      properties:
        request_id:
          type: string
          description: 调用方恢复编号；无命令行回执的既有网页任务可能为空，与请求追踪编号不同。
        task_id:
          type: string
          example: task_example_character
        kind:
          type: string
          enum:
            - character
            - multiview
            - video
        status:
          type: string
          enum:
            - waiting
            - submitting
            - reconciling
            - queued
            - running
            - succeeded
            - failed
            - unknown
        raw_status:
          type: string
          description: 原生任务状态；自动处理请使用归一化后的 status。
        artifact_status:
          type: string
          enum:
            - pending
            - ready
            - unavailable
          description: ready 要求任务成功且存在可用成品。受理成功或成品数组为空不代表已交付。
        parent_task_id:
          type: string
          example: task_example_character
        input:
          $ref: '#/components/schemas/ProductInput'
        recovery_expires_at:
          type: integer
          format: int64
          minimum: 0
          description: 秒级时间戳；进行中或尚未建立结束恢复期限时为零。结束后可恢复七天；过期不允许重用请求编号。
        created_at:
          type: integer
          format: int64
        finished_at:
          type: integer
          format: int64
        artifacts:
          type: array
          items:
            $ref: '#/components/schemas/Artifact'
        replayed:
          type: boolean
          description: 创建、请求恢复及任务/成品详情会返回；角色投影不保证包含此字段。
        raw_quota:
          type: integer
          minimum: 0
          description: 已知的原生额度记录，不是积分：raw_quota ÷ 500000 = 美元。没有已知正数时省略。
        credits:
          type: number
          minimum: 0
          description: 已知 raw_quota ÷ 50000，不是生成前报价，也不是最终退款凭证。
        quota_status:
          type: string
          enum:
            - recorded
            - reconciling
          description: 失败任务的 reconciling 不代表积分已经退回。
        fail_reason:
          type: string
          description: >-
            可用时返回的公开失败原因，请结合状态判断。"Insufficient user quota"
            表示任务在执行或结算阶段因账户余额不足失败；失败说明不代表退款已经完成。
      required:
        - request_id
        - task_id
        - kind
        - status
        - raw_status
        - artifact_status
        - input
        - recovery_expires_at
        - created_at
        - finished_at
        - artifacts
    Selection:
      type: object
      additionalProperties:
        type: array
        items:
          type: string
      description: >-
        类别编号到有序选项编号数组的映射；请使用创作选项返回的
        taxonomy。这是对象，不是平铺数组。未知类别或选项、冲突组合会被拒绝；沿用角色类型可见性与现有选项规范化规则。
      example:
        gender:
          - female
  securitySchemes:
    accessToken:
      type: http
      scheme: bearer
      bearerFormat: nap_
      description: >-
        OmniMux 限定权限个人凭据；每个操作标明准确的 influencer_creation 权限。旧凭据不会自动扩权，不使用 sk-
        网关密钥；网页会话沿用既有账号验证。

````

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