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

# Create Character Video

> Create character video through the account-scoped creation API.

Supply either `character_task_id` plus optional ordered `image_urls`, or images with `image_urls[0]` as the main character. The combined image limit is 30. `mode` is `motion` (default), `replace` or `recreate`. Motion and replace accept exactly one reference video source: `video_url` or an owned successful `video_task_id`. `recreate` accepts a compiled prompt plus reference images and no reference video.

* Base URL: `https://omnimux.ai`; use a scoped personal access token, not an `sk-` relay key.
* Required permission: `influencer_creation:write`.
* `New-Api-User` is optional compatibility metadata. The credential determines the account; this header cannot choose another owner.

New permissions require a fresh, explicit device approval. Existing and legacy credentials do not expand automatically. See [device login](https://docs.omnimux.ai/en/api-reference/account/device-login.md).

> [!NOTE]
>
> HTTP 200 means durable queue acceptance or recovery, not a finished file or a confirmed charge. Generation uses the existing account credits/subscription allowance. The native execution path uses payment-required (402) semantics for insufficient quota, but this acceptance endpoint does not synchronously emit 402; a queued task may later fail. Read task state and its public failure reason. Motion and replace do not promise a precise upfront video quote; `recreate` is the exception — its exact amount comes from the analyze result.

Unknown top-level body fields are rejected with 400. Do not send `model`, `group`, `seed`, or `size`. Motion and replace take no client-written duration (`duration_sec` is ignored); `recreate` requires exactly the duration reported by its analyze result. Reuse the same account-scoped `request_id` and intent to restore an accepted task. Changed content returns 409, and expired recovery returns 410. If the creation switch is off, new requests return 503 `influencer_creation_disabled`; identical accepted replays and owner reads remain available.

The server inspects true duration (4–30 seconds), framing, frame rate, dimensions, codec and audio before accepting generation. MP4/MOV; H.264/HEVC; 24–60 fps; each dimension 300–6000; 407,696–8,295,044 pixels; source aspect 0.4–2.5. Invalid media is rejected, not silently trimmed or padded. Recreation does not inspect a clip here: its 4–15 second reference was validated during analysis.

| Resolution | Supported output ratios |
| - | - |
| `480p` | `16:9`, `9:16`, `3:4` |
| `720p` | `16:9`, `9:16` |

Defaults: `motion` and `480p`. In motion mode an explicit ratio wins; when omitted, a supported source ratio is used, otherwise `9:16`. Replace mode preserves a supported source ratio and rejects conflicts.

## Recreation mode

`mode: "recreate"` submits the result of [Analyze Recreation Reference](https://docs.omnimux.ai/en/api-reference/account/influencer/recreate-analyze.md): the reference clip was decomposed already and never travels with this request.

* Omit `video_url` and `video_task_id`. Supplying either returns 400.
* `prompt` is required: the compiled prompt from the analyze poll, editable within the 4000-character ceiling.
* `image_urls` is required: the same ordered images used for the analysis, 1–9 for a recreation. `image_urls[0]` is the primary subject.
* `duration_sec` is required: `meta.duration_sec` from the analyze poll. The server checks the 4–15 whole-second range and rejects anything outside it with 400; a different in-range value becomes the output length while the compiled prompt was written for the analyzed one, so pass the analyzed value exactly.
* `aspect_ratio` is fixed to `9:16`. Omit it or send `9:16`; any other explicit value returns 400.
* `resolution` is `480p` or `720p`. `meta.pricing` already reports the exact credits for both at the derived duration.

Recreation is the only mode with a precise upfront video quote: the amount in `meta.pricing` is what the pre-charge will take, so render it directly instead of computing a price. Acceptance, task polling and artifacts keep the usual contract; inspect the finished clip for actual duration and framing.

```bash cURL recreate theme={null}
curl --request POST \
  --url 'https://omnimux.ai/api/influencer/v1/videos' \
  --header 'Authorization: Bearer <user-access-token>' \
  --header 'Content-Type: application/json' \
  --data '{"request_id":"creator-video-0002","mode":"recreate","prompt":"<compiled prompt from the analyze result>","image_urls":["https://omnimux.ai/REPLACE_WITH_PRODUCT_IMAGE_1.png"],"duration_sec":11,"aspect_ratio":"9:16","resolution":"720p"}'
```

The request preserves image order, passes the reference audio, and uses the saved character's human/cat/dog type. Inspect the finished video to verify appearance, movement, framing and audio; task success alone does not establish creative fidelity.

For motion and replace, the 4–30-second limit applies to the reference clip, not a guarantee of the finished video's exact duration. Generated duration may differ: a four-second reference/request has produced a clip of about 3.71 seconds. `duration_sec` is the server-derived integer request duration, not a measurement of the finished video. Reference audio is supplied to generation, but output loudness may change; lossless or bit-for-bit audio preservation is not promised. Check the downloaded video for actual duration and sound. In recreation the reference clip is 4–15 seconds and its rounded length fixes `duration_sec`, but the finished clip still needs the same inspection.

```bash cURL theme={null}
curl --request POST \
  --url 'https://omnimux.ai/api/influencer/v1/videos' \
  --header 'Authorization: Bearer <user-access-token>' \
  --header 'Content-Type: application/json' \
  --data '{"request_id":"creator-video-0001","character_task_id":"task_example_character","video_url":"https://omnimux.ai/REPLACE_WITH_OWN_REFERENCE.mp4","mode":"motion","resolution":"480p"}'
```

```json 200 Illustrative only theme={null}
{
  "success": true,
  "data": {
    "request_id": "creator-video-0001",
    "task_id": "task_example_video",
    "kind": "video",
    "status": "waiting",
    "raw_status": "WAITING",
    "artifact_status": "pending",
    "input": {},
    "recovery_expires_at": 0,
    "created_at": 1792000000,
    "finished_at": 0,
    "artifacts": [],
    "replayed": false
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "code": "invalid_request",
  "message": "Invalid product fields, unknown body fields or unsupported media/specifications."
}
```

```json 401 theme={null}
{
  "success": false,
  "code": "AUTH_UNAUTHORIZED",
  "message": "A valid live account credential is required. Expired, revoked or disabled-account credentials are rejected."
}
```

```json 403 theme={null}
{
  "success": false,
  "code": "ACCESS_TOKEN_SCOPE_DENIED",
  "message": "The explicit creation read/write scope is missing. Old/legacy credentials do not gain access automatically."
}
```

```json 404 theme={null}
{
  "success": false,
  "code": "task_not_found",
  "message": "Owned usable task/character/request was not found. Other accounts are not distinguishable."
}
```

```json 408 theme={null}
{
  "success": false,
  "code": "reference_video_invalid",
  "message": "Reference preparation timed out or was canceled before acceptance. Recover by request ID before any retry if acceptance is uncertain."
}
```

```json 409 theme={null}
{
  "success": false,
  "code": "creation_request_conflict",
  "message": "The account/request ID already belongs to different creation inputs. Do not generate a new request ID automatically."
}
```

```json 410 theme={null}
{
  "success": false,
  "code": "creation_request_expired",
  "message": "Recovery has expired or the retained task is unavailable. This ID remains reserved and cannot create another bill."
}
```

```json 500 theme={null}
{
  "success": false,
  "code": "internal_error",
  "message": "The creation could not be prepared."
}
```

```json 503 theme={null}
{
  "success": false,
  "code": "influencer_creation_disabled",
  "message": "new command-line creations are currently disabled; accepted requests remain recoverable"
}
```


## OpenAPI

````yaml openapi/ops/influencer/en/creation.json POST /api/influencer/v1/videos
openapi: 3.1.0
info:
  title: OmniMux character and video creation
  version: '1'
servers:
  - url: https://omnimux.ai
security:
  - accessToken: []
paths:
  /api/influencer/v1/videos:
    post:
      summary: Create Character Video
      description: >-
        Requires explicit influencer_creation:write. Valid website sessions may
        use the same owner-scoped route. Unknown top-level creation fields are
        rejected; clients cannot choose model, supplier group, size or duration.
        mode=motion/replace takes exactly one reference source and a 4-30-second
        reference clip; the finished duration may differ from it and reference
        audio is supplied to generation. mode=recreate takes the analyzed prompt
        and reference images, no reference video, duration_sec equal to the
        analyze meta.duration_sec (4-15) and a fixed 9:16 framing. Inspect the
        downloaded result in every mode.
      operationId: InfluencerCreateVideo
      parameters:
        - name: New-Api-User
          in: header
          required: false
          schema:
            type: string
          description: >-
            Optional compatibility header. Ignored for authentication and
            ownership; the server derives the account from the credential.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoRequest'
            example:
              request_id: creator-video-0001
              character_task_id: task_example_character
              video_url: https://omnimux.ai/REPLACE_WITH_OWN_REFERENCE.mp4
              mode: motion
              resolution: 480p
      responses:
        '200':
          description: Accepted or recovered task, not a delivered file.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/Task'
                required:
                  - success
                  - data
              example:
                success: true
                data:
                  request_id: creator-video-0001
                  task_id: task_example_video
                  kind: video
                  status: waiting
                  raw_status: WAITING
                  artifact_status: pending
                  input: {}
                  recovery_expires_at: 0
                  created_at: 1792000000
                  finished_at: 0
                  artifacts: []
                  replayed: false
        '400':
          description: >-
            Invalid product fields, unknown body fields or unsupported
            media/specifications.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: invalid_request
                message: >-
                  Invalid product fields, unknown body fields or unsupported
                  media/specifications.
        '401':
          description: >-
            A valid live account credential is required. Expired, revoked or
            disabled-account credentials are rejected.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: AUTH_UNAUTHORIZED
                message: >-
                  A valid live account credential is required. Expired, revoked
                  or disabled-account credentials are rejected.
        '403':
          description: >-
            The explicit creation read/write scope is missing, or the submission
            was blocked by the pre-enqueue balance preflight. A balance
            rejection creates no task and charges nothing. Old/legacy
            credentials do not gain access automatically.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                scope_denied:
                  value:
                    success: false
                    code: ACCESS_TOKEN_SCOPE_DENIED
                    message: >-
                      The explicit creation read/write scope is missing.
                      Old/legacy credentials do not gain access automatically.
                insufficient_user_quota:
                  value:
                    success: false
                    code: insufficient_user_quota
                    message: Insufficient user quota
        '404':
          description: >-
            Owned usable task/character/request was not found. Other accounts
            are not distinguishable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: task_not_found
                message: >-
                  Owned usable task/character/request was not found. Other
                  accounts are not distinguishable.
        '408':
          description: >-
            Reference preparation timed out or was canceled before acceptance.
            Recover by request ID before any retry if acceptance is uncertain.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: reference_video_invalid
                message: >-
                  Reference preparation timed out or was canceled before
                  acceptance. Recover by request ID before any retry if
                  acceptance is uncertain.
        '409':
          description: >-
            The account/request ID already belongs to different creation inputs.
            Do not generate a new request ID automatically.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: creation_request_conflict
                message: >-
                  The account/request ID already belongs to different creation
                  inputs. Do not generate a new request ID automatically.
        '410':
          description: >-
            Recovery has expired or the retained task is unavailable. This ID
            remains reserved and cannot create another bill.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: creation_request_expired
                message: >-
                  Recovery has expired or the retained task is unavailable. This
                  ID remains reserved and cannot create another bill.
        '500':
          description: The creation could not be prepared.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                code: internal_error
                message: The creation could not be prepared.
        '503':
          description: >-
            Creation/read infrastructure is temporarily unavailable; new
            creation may also be disabled, have no compatible active route, or
            have no available pricing quote.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                disabled:
                  value:
                    success: false
                    code: influencer_creation_disabled
                    message: >-
                      new command-line creations are currently disabled;
                      accepted requests remain recoverable
                route:
                  value:
                    success: false
                    code: creation_route_unavailable
                    message: a compatible creation route is currently unavailable
                records:
                  value:
                    success: false
                    code: generation_queue_unavailable
                    message: creation records are temporarily unavailable
                quote_unavailable:
                  value:
                    success: false
                    code: generation_quote_unavailable
                    message: >-
                      The pricing service is temporarily unavailable. Please try
                      again.
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request POST \
              --url 'https://omnimux.ai/api/influencer/v1/videos' \
              --header 'Authorization: Bearer <user-access-token>' \
              --header 'Content-Type: application/json' \
              --data '{"request_id":"creator-video-0001","character_task_id":"task_example_character","video_url":"https://omnimux.ai/REPLACE_WITH_OWN_REFERENCE.mp4","mode":"motion","resolution":"480p"}'
components:
  schemas:
    VideoRequest:
      type: object
      properties:
        request_id:
          type: string
          minLength: 8
          maxLength: 128
          pattern: ^[A-Za-z0-9._:-]{8,128}$
          example: creator-character-0001
        mode:
          type: string
          enum:
            - motion
            - replace
            - recreate
          default: motion
          description: >-
            motion and replace take exactly one reference source. recreate takes
            a compiled prompt plus reference images and no reference video.
        duration_sec:
          type: integer
          minimum: 4
          maximum: 15
          description: >-
            recreate only: the whole-second duration reported as
            meta.duration_sec by the analyze poll. Send exactly that value. The
            server rejects values outside 4-15 seconds with 400 invalid_request;
            motion and replace ignore this field and derive the duration from
            the reference clip. The server validates only the range, so an
            in-range value other than the analyzed one becomes the output length
            while the compiled prompt was written for the analyzed one.
        character_task_id:
          type: string
          example: task_example_character
          description: >-
            Successful owned original character. Its image is prepended to
            image_urls as the primary subject. Multiview outputs cannot be used
            as this original-character ID.
        image_urls:
          type: array
          maxItems: 30
          items:
            type: string
            format: uri
            pattern: ^https://
            maxLength: 2048
          description: >-
            Ordered subject/support images. With character_task_id, at most 29
            supplemental images. Otherwise at least one image is required, and
            image_urls[0] is the primary subject. Total: 1-30. For recreate,
            keep the same order as the analyze request.
        video_url:
          type: string
          format: uri
          pattern: ^https://
          maxLength: 2048
          description: >-
            Exactly one reference source: this public HTTPS clip or
            video_task_id. Server inspects actual media; no client duration
            input.
        video_task_id:
          type: string
          example: task_example_character
          description: >-
            Owned successful character-video task used as the reference clip;
            exclusive with video_url.
        resolution:
          type: string
          enum:
            - 480p
            - 720p
          default: 480p
        aspect_ratio:
          type: string
          enum:
            - '16:9'
            - '9:16'
            - '3:4'
          description: >-
            480p: 16:9, 9:16, 3:4. 720p: 16:9, 9:16. Motion: explicit value
            wins, otherwise follow a supported source ratio, otherwise 9:16.
            Replace: keep the supported source ratio and reject a conflicting
            explicit value. Recreate is fixed to 9:16 and rejects any other
            explicit value.
        prompt:
          type: string
          maxLength: 4000
          description: >-
            motion/replace: optional compatible performance/scene guidance.
            recreate: required compiled prompt returned by the analyze poll, up
            to 4000 runes. Reference audio and primary character
            identity/species remain part of the motion generation contract.
      required:
        - request_id
      additionalProperties: false
      allOf:
        - if:
            required:
              - mode
            properties:
              mode:
                const: recreate
          then:
            required:
              - prompt
              - image_urls
              - duration_sec
            properties:
              image_urls:
                minItems: 1
                maxItems: 9
            not:
              anyOf:
                - required:
                    - video_url
                - required:
                    - video_task_id
          else:
            allOf:
              - oneOf:
                  - required:
                      - video_url
                    not:
                      required:
                        - video_task_id
                  - required:
                      - video_task_id
                    not:
                      required:
                        - video_url
              - anyOf:
                  - required:
                      - character_task_id
                  - required:
                      - image_urls
                    properties:
                      image_urls:
                        minItems: 1
    Task:
      type: object
      properties:
        request_id:
          type: string
          description: >-
            Client recovery ID; may be empty for earlier website tasks without a
            CLI receipt. Distinct from HTTP tracing request IDs.
        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: Native task status; use normalized status for automation.
        artifact_status:
          type: string
          enum:
            - pending
            - ready
            - unavailable
          description: >-
            ready requires succeeded plus usable artifacts. An accepted request
            or empty artifact list is not a delivered result.
        parent_task_id:
          type: string
          example: task_example_character
        input:
          $ref: '#/components/schemas/ProductInput'
        recovery_expires_at:
          type: integer
          format: int64
          minimum: 0
          description: >-
            Unix seconds. Zero while active or before a terminal deadline is
            established. Recovery lasts seven days after completion; expiry
            never permits request-ID reuse.
        created_at:
          type: integer
          format: int64
        finished_at:
          type: integer
          format: int64
        artifacts:
          type: array
          items:
            $ref: '#/components/schemas/Artifact'
        replayed:
          type: boolean
          description: >-
            Returned by creation, request recovery and task/artifact detail.
            Character projections need not include this field.
        raw_quota:
          type: integer
          minimum: 0
          description: >-
            Known native quota record, not credits: raw_quota / 500000 = USD.
            Omitted if no positive known amount exists.
        credits:
          type: number
          minimum: 0
          description: >-
            Known raw_quota / 50000. Not an upfront quote or proof of a final
            refund.
        quota_status:
          type: string
          enum:
            - recorded
            - reconciling
          description: reconciling on failed tasks does not confirm a completed refund.
        fail_reason:
          type: string
          description: >-
            Public failure reason, when available; inspect with status.
            "Insufficient user quota" means the task failed because the account
            balance was insufficient during execution or settlement. Never infer
            a successful refund from a failure message.
      required:
        - request_id
        - task_id
        - kind
        - status
        - raw_status
        - artifact_status
        - input
        - recovery_expires_at
        - created_at
        - finished_at
        - artifacts
    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: >-
            Integer generation duration in seconds derived by the server from
            the reference video; fractional seconds may be rounded. For recreate
            it echoes the duration_sec submitted from the analyze result. Not a
            creation input, the exact reference duration, or a measurement of
            the finished video.
        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: >-
            Short-lived signed artifact URL. Re-read the artifact endpoint if it
            expires. Never send the account credential to this URL or its
            storage redirects.
        video_metadata:
          type: object
          description: >-
            Server-observed media facts of a generated video artifact. Omitted
            for historical tasks and for non-video artifacts. Best-effort:
            duration comes from the container and video_duration currently
            mirrors it, so consumers still validate against their own
            constraints.
          properties:
            duration:
              type: number
              description: Container duration in seconds.
            video_duration:
              type: number
              description: >-
                Video-track duration in seconds. Currently mirrors duration
                because the generated output is not fully decoded.
            width:
              type: integer
              description: Width in pixels.
            height:
              type: integer
              description: Height in pixels.
            frame_rate:
              type: number
              description: Frames per second.
            video_codec:
              type: string
              description: Reported video codec, such as h264 or hevc.
            audio_codec:
              type: string
              description: Reported audio codec; empty when the output has no audio track.
            container:
              type: string
              description: Container format, such as mp4 or mov.
            size_bytes:
              type: integer
              format: int64
              description: Stored output size in bytes.
          required:
            - duration
            - video_duration
            - width
            - height
            - frame_rate
            - video_codec
            - audio_codec
            - container
            - size_bytes
      required:
        - key
        - type
        - content_url
    Selection:
      type: object
      additionalProperties:
        type: array
        items:
          type: string
      description: >-
        Map category IDs to ordered option-ID arrays from options.taxonomy. This
        is an object, not a flat array. Unknown categories/options and
        incompatible combinations are rejected; tier visibility and existing
        selection normalization apply.
      example:
        gender:
          - female
  securitySchemes:
    accessToken:
      type: http
      scheme: bearer
      bearerFormat: nap_
      description: >-
        Scoped OmniMux personal credential. Each operation lists its exact
        influencer_creation grant. No automatic expansion for old or legacy
        tokens. Do not use an sk- relay key. Website sessions are validated
        separately by the existing account authentication.

````

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