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

# Create video

> Create a Muse video task.

**Path:** `POST https://api.omniall.ai/v1/video/generations`

**Scenarios:**
- Text-to-video: `prompt` + `seconds` (optional `size` / `resolution`)
- Image / multi-image reference: `reference_image` or `reference_images` (max 7 total)
- Motion / video reference: `reference_videos` (max 3 MP4 URLs)

**Constraints:**
- `muse-video`: `seconds` required, only 5 / 10 / 15 / 20 / 25 / 30
- `muse-video-60s`: fixed 60 seconds (`seconds: 60`)
- `resolution` only `720P` (optional, default 720P)
- `size` only `16:9` / `9:16` (optional, default 16:9)
- `count` must be 1
- Reference audio not supported
- Invalid params → HTTP 400

Auth: `Authorization: Bearer sk-...`



## OpenAPI

````yaml openapi/muse-video.yaml POST /v1/video/generations
openapi: 3.1.0
info:
  title: Omniall AI — Muse Video
  version: 1.0.0
  description: >-
    Muse async video generation (`muse-video` / `muse-video-60s`).


    **Create:** `POST https://api.omniall.ai/v1/video/generations`


    **Get:** `GET https://api.omniall.ai/v1/video/generations/{task_id}`


    Auth: `Authorization: Bearer sk-...`


    | Model | Specs |

    |-------|-------|

    | `muse-video` | 720P; duration 5 / 10 / 15 / 20 / 25 / 30 s; 1 clip per
    request |

    | `muse-video-60s` | 720P; fixed 60 s; 1 clip per request |


    These are two different models — pick by scenario. Generation often takes a
    few minutes; poll the get endpoint.
servers:
  - url: https://api.omniall.ai
security: []
tags:
  - name: Muse
    description: Muse text-to-video / image-to-video / reference video
paths:
  /v1/video/generations:
    post:
      tags:
        - Muse
      summary: Create video
      description: >-
        Create a Muse video task.


        **Path:** `POST https://api.omniall.ai/v1/video/generations`


        **Scenarios:**

        - Text-to-video: `prompt` + `seconds` (optional `size` / `resolution`)

        - Image / multi-image reference: `reference_image` or `reference_images`
        (max 7 total)

        - Motion / video reference: `reference_videos` (max 3 MP4 URLs)


        **Constraints:**

        - `muse-video`: `seconds` required, only 5 / 10 / 15 / 20 / 25 / 30

        - `muse-video-60s`: fixed 60 seconds (`seconds: 60`)

        - `resolution` only `720P` (optional, default 720P)

        - `size` only `16:9` / `9:16` (optional, default 16:9)

        - `count` must be 1

        - Reference audio not supported

        - Invalid params → HTTP 400


        Auth: `Authorization: Bearer sk-...`
      operationId: museCreateVideo
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            example: Bearer sk-...
          description: Bearer API key, e.g. `Bearer sk-...`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MuseCreateVideoRequest'
            examples:
              muse_text:
                summary: Text-to-video (muse-video · 5s)
                value:
                  model: muse-video
                  prompt: Seaside sunset timelapse, golden light on the waves
                  seconds: 5
                  resolution: 720P
                  size: '16:9'
                  count: 1
              muse_refs:
                summary: Image + video refs (muse-video · 10s vertical)
                value:
                  model: muse-video
                  prompt: >-
                    Person walking city streets, slow follow shot, motion from
                    reference video
                  seconds: 10
                  size: '9:16'
                  reference_images:
                    - https://example.com/1.jpg
                    - https://example.com/2.jpg
                  reference_videos:
                    - https://example.com/motion.mp4
              muse_60:
                summary: Fixed 60s (muse-video-60s)
                value:
                  model: muse-video-60s
                  prompt: Person walking city streets, slow follow shot
                  seconds: 60
                  resolution: 720P
                  size: '16:9'
                  reference_images:
                    - https://example.com/1.jpg
                    - https://example.com/2.jpg
      responses:
        '200':
          description: Task accepted (processing)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MuseVideoTask'
              example:
                id: task_xxxxxxxx
                task_id: task_xxxxxxxx
                object: video
                model: muse-video
                status: processing
                progress: 0
                seconds: '5'
                size: '16:9'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
components:
  schemas:
    MuseCreateVideoRequest:
      type: object
      required:
        - model
        - prompt
      description: Muse create-video request body.
      properties:
        model:
          $ref: '#/components/schemas/MuseModel'
        prompt:
          type: string
          description: Video description.
          example: Seaside sunset timelapse, golden light on the waves
        seconds:
          oneOf:
            - type: integer
            - type: string
          description: >
            Duration in seconds.

            - `muse-video`: required, only 5 / 10 / 15 / 20 / 25 / 30

            - `muse-video-60s`: fixed 60

            If both `seconds` and `duration` are set they must match; prefer
            `seconds` only.
          example: 5
        duration:
          oneOf:
            - type: integer
            - type: string
          description: Alias of `seconds`. Must match if both are sent.
        resolution:
          type: string
          description: Resolution. Only `720P`; default `720P`.
          enum:
            - 720P
            - 720p
          default: 720P
          example: 720P
        size:
          type: string
          description: Aspect ratio. Only `16:9` / `9:16`; default `16:9`.
          enum:
            - '16:9'
            - '9:16'
          default: '16:9'
          example: '16:9'
        count:
          type: integer
          description: Number of clips. Must be 1.
          enum:
            - 1
          default: 1
          example: 1
        reference_image:
          type: string
          description: >-
            Single reference image URL. Counts toward the 7-image cap with
            `reference_images`.
          example: https://example.com/1.jpg
        reference_images:
          type: array
          items:
            type: string
          description: >-
            Reference image URL array. Combined with `reference_image`, max 7.
            Omit for text-to-video.
          maxItems: 7
        reference_videos:
          type: array
          items:
            type: string
          description: Reference video URLs (http/https MP4). Max 3.
          maxItems: 3
    MuseVideoTask:
      type: object
      description: Muse video task object.
      properties:
        id:
          type: string
          description: Task id (usually same as `task_id`).
        task_id:
          type: string
          description: Task id.
        object:
          type: string
          description: Object type, usually `video`.
          example: video
        model:
          $ref: '#/components/schemas/MuseModel'
        status:
          type: string
          description: Status such as `processing` / `completed` / `failed`.
          example: processing
        progress:
          type: number
          description: Progress 0–100 when returned.
        seconds:
          oneOf:
            - type: string
            - type: integer
          description: Requested duration.
        size:
          type: string
          description: Aspect ratio.
        resolution:
          type: string
          description: Resolution.
        url:
          type: string
          description: Result video URL when completed (may also be `video_url`).
        video_url:
          type: string
          description: Result video URL (compat field).
        error:
          type: object
          description: Error payload when failed.
          properties:
            message:
              type: string
    OpenAIErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: |
                Example validation messages:
                - muse-video must send seconds (5/10/15/20/25/30)
                - invalid duration / size / resolution / count
                - too many reference images (>7) or videos (>3)
                - reference audio not supported
                - seconds and duration mismatch
            type:
              type: string
            code:
              type: string
    MuseModel:
      type: string
      description: Muse model id (same as Model Square).
      enum:
        - muse-video
        - muse-video-60s
      example: muse-video

````

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