> ## 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.

# 查询创作选项

> 通过账号限定的创作接口查询创作选项。

> [!NOTE]
>
> 本组页面说明账号 HTTP 接口。命令行 **0.5.0** 已通过官方安装脚本和 npm 发行。服务仍须支持并启用创作，旧凭据须重新明确同意新增创作权限。

读取当前角色选项、默认值、素材限制和支持的清晰度与画幅组合。同时检查 `creation_enabled` 与对应的 `availability` 或清晰度 `available` 值，不提供供应商或模型选择。

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

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

## 命令行流程

通过 npm 安装或更新：

```bash theme={null}
npm install -g @omnimux/cli@0.5.0
omnimux --version
```

macOS/Linux 的独立程序可使用官方安装脚本：

```bash theme={null}
curl -fsSL https://omnimux.ai/install.sh | bash
```

重新登录，明确同意新增创作权限；提交前检查 `creation_enabled` 与相应能力的可用状态。

```bash theme={null}
omnimux login
omnimux influencer options
omnimux influencer character create --brief '一位穿蓝色外套、神态友好的成年角色' --request-id creator-character-0001 --dry-run
omnimux influencer character create --brief '一位穿蓝色外套、神态友好的成年角色' --request-id creator-character-0001 --yes
omnimux influencer request get creator-character-0001
omnimux influencer task wait task_example_character --timeout 600
omnimux influencer character list
```

请将示例作品编号替换为实际返回的编号。`--dry-run` 只检查本地输入，不上传、不创建任务，也不代表后台素材检查通过。带 `--yes` 的创建命令会提交收费创作。如需一张可选风格参考图，在角色命令中加入 `--reference-image ./style.png`，并确保文件存在。

多角度是可选步骤，会另行消耗生成额度；创建视频不必先做多角度：

```bash theme={null}
omnimux influencer character multiview task_example_character --request-id creator-multiview-0001 --yes
```

使用成功的原角色主图和真实参考视频创建视频。默认采用运动交换和 480 档，后台会识别参考视频真实的 4–30 秒时长；对象交换可加 `--mode replace`。不传模型、供应商分组或手填时长。

图片实际像素、视频实际时长和声音以下载成品为准。成片时长和音量可能与参考不同，详见[视频成品限制](https://docs.omnimux.ai/zh/api-reference/account/influencer/create-video.md)。

```bash theme={null}
omnimux influencer video create --character task_example_character --video ./reference.mp4 --request-id creator-video-0001 --yes
omnimux influencer request get creator-video-0001
omnimux influencer task wait task_example_video --timeout 600
omnimux influencer task download task_example_video --output ./result.mp4
```

中断或提交结果不明时，按原请求编号查回，不要另开新单。等待超时不会取消云端任务。下载默认拒绝覆盖已有文件，完整写入后才报告成功。详见[请求恢复说明](https://docs.omnimux.ai/zh/api-reference/account/influencer/get-request.md)和[成品读取说明](https://docs.omnimux.ai/zh/api-reference/account/influencer/get-artifacts.md)。

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

```json 200 仅示例 theme={null}
{
  "success": true,
  "data": {
    "version": 1,
    "taxonomy": {
      "version": 1,
      "categories": [
        {
          "id": "gender",
          "options": [
            {
              "id": "female",
              "label_en": "Female",
              "visibleIn": [
                "normal",
                "freak",
                "total",
                "cats",
                "dogs"
              ]
            }
          ]
        }
      ]
    },
    "taxonomy_etag": "EXAMPLE_ONLY",
    "defaults": {
      "tier": "normal",
      "mode": "motion",
      "resolution": "480p",
      "aspect_ratio": "9:16",
      "wait_timeout_seconds": 600
    },
    "creation_enabled": false,
    "availability": {
      "character": false,
      "reference_image": false,
      "multiview": false
    },
    "character": {
      "types": [
        "normal",
        "freak",
        "total",
        "cats",
        "dogs"
      ],
      "aspect_ratio": "16:9",
      "max_brief_characters": 4000
    },
    "video": {
      "modes": [
        "motion",
        "replace"
      ],
      "resolutions": {
        "480p": {
          "aspect_ratios": [
            "16:9",
            "9:16",
            "3:4"
          ],
          "available": false
        },
        "720p": {
          "aspect_ratios": [
            "16:9",
            "9:16"
          ],
          "available": false
        }
      },
      "min_seconds": 4,
      "max_seconds": 30,
      "min_images": 1,
      "max_images": 30,
      "max_prompt_characters": 4000,
      "preserves_reference_audio": true,
      "server_inspects_media": true
    },
    "media": {
      "reference_image_max_bytes": 5242880,
      "reference_image_mime_types": [
        "image/jpeg",
        "image/png",
        "image/webp"
      ],
      "video_containers": [
        "mp4",
        "mov"
      ],
      "video_codecs": [
        "h264",
        "hevc"
      ],
      "min_dimension": 300,
      "max_dimension": 6000,
      "min_pixels": 407696,
      "max_pixels": 8295044,
      "min_fps": 24,
      "max_fps": 60,
      "min_aspect_ratio": 0.4,
      "max_aspect_ratio": 2.5
    }
  }
}
```

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

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

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


## OpenAPI

````yaml openapi/ops/influencer/zh/creation.json GET /api/influencer/v1/options
openapi: 3.1.0
info:
  title: OmniMux 角色与视频创作
  version: '1'
servers:
  - url: https://omnimux.ai
security:
  - accessToken: []
paths:
  /api/influencer/v1/options:
    get:
      summary: 查询创作选项
      description: >-
        需要明确的 influencer_creation:read
        权限；有效网页会话也可使用同一归属受限入口。创建请求拒绝未知顶层字段；调用方不能选择模型、供应商分组、尺寸或手填时长。
      operationId: InfluencerOptions
      parameters:
        - name: New-Api-User
          in: header
          required: false
          schema:
            type: string
          description: 可选兼容请求头，不参与身份验证或资源归属；后台从凭据确定账号。
      responses:
        '200':
          description: 仅属于当前账号的创作数据。
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/Options'
                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: 缺少明确的创作读取/生成权限；旧凭据不会自动扩权。
        '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/options' \
              --header 'Authorization: Bearer <user-access-token>'
components:
  schemas:
    Options:
      type: object
      properties:
        version:
          type: integer
          const: 1
        taxonomy:
          type: object
          properties:
            version:
              type: integer
            source:
              type: string
            tier_group:
              type: object
              properties:
                options:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      label_en:
                        type: string
                      visibleIn:
                        type:
                          - array
                          - 'null'
                        items:
                          type: string
                      slot:
                        type:
                          - string
                          - 'null'
                      swatch:
                        type: string
                      imageUrl:
                        type: string
                    required:
                      - id
                      - label_en
                comingSoonImageUrls:
                  type:
                    - array
                    - 'null'
                  items:
                    type: string
            category_priority:
              type: array
              items:
                type: string
            categories:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  label_en:
                    type: string
                  kind:
                    type: string
                  max:
                    type: integer
                  options:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        label_en:
                          type: string
                        visibleIn:
                          type:
                            - array
                            - 'null'
                          items:
                            type: string
                        slot:
                          type:
                            - string
                            - 'null'
                        swatch:
                          type: string
                        imageUrl:
                          type: string
                      required:
                        - id
                        - label_en
                required:
                  - id
                  - options
            prompt_map:
              type: object
              description: 随选项集返回的描述元数据；从 categories 选择输入编号，不要把此对象作为创建参数发送。
        taxonomy_etag:
          type: string
        defaults:
          type: object
          properties:
            tier:
              type: string
            mode:
              type: string
            resolution:
              type: string
            aspect_ratio:
              type: string
            wait_timeout_seconds:
              type: integer
          required:
            - tier
            - mode
            - resolution
            - aspect_ratio
            - wait_timeout_seconds
        creation_enabled:
          type: boolean
          description: false 只禁止命令行新创作，不禁止读取和已受理请求原样恢复。true 本身不代表兼容生成能力可用。
        availability:
          type: object
          properties:
            character:
              type: boolean
            reference_image:
              type: boolean
            multiview:
              type: boolean
          required:
            - character
            - reference_image
            - multiview
        character:
          type: object
          properties:
            types:
              type: array
              items:
                type: string
            aspect_ratio:
              type: string
            max_brief_characters:
              type: integer
          required:
            - types
            - aspect_ratio
            - max_brief_characters
        video:
          type: object
          properties:
            modes:
              type: array
              items:
                type: string
            resolutions:
              type: object
              properties:
                480p:
                  type: object
                  properties:
                    aspect_ratios:
                      type: array
                      items:
                        type: string
                    available:
                      type: boolean
                  required:
                    - aspect_ratios
                    - available
                720p:
                  type: object
                  properties:
                    aspect_ratios:
                      type: array
                      items:
                        type: string
                    available:
                      type: boolean
                  required:
                    - aspect_ratios
                    - available
            min_seconds:
              type: integer
              description: 允许的参考视频最短秒数，不代表生成成片时长。
            max_seconds:
              type: integer
              description: 允许的参考视频最长秒数，不保证生成成片具有相同时长。
            min_images:
              type: integer
            max_images:
              type: integer
            max_prompt_characters:
              type: integer
            preserves_reference_audio:
              type: boolean
              description: 参考原声会传入生成，成片音量可能变化；不承诺无损或逐个音频采样完全相同。
            server_inspects_media:
              type: boolean
        media:
          type: object
          properties:
            reference_image_max_bytes:
              type: integer
            min_dimension:
              type: integer
            max_dimension:
              type: integer
            min_pixels:
              type: integer
            max_pixels:
              type: integer
            min_fps:
              type: integer
            max_fps:
              type: integer
            reference_image_mime_types:
              type: array
              items:
                type: string
            video_containers:
              type: array
              items:
                type: string
            video_codecs:
              type: array
              items:
                type: string
            min_aspect_ratio:
              type: number
            max_aspect_ratio:
              type: number
      required:
        - version
        - taxonomy
        - taxonomy_etag
        - defaults
        - creation_enabled
        - availability
        - character
        - video
        - media
    Error:
      type: object
      properties:
        success:
          type: boolean
          const: false
        code:
          type: string
        message:
          type: string
      required:
        - success
        - code
        - message
  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.