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

# Grok Imagine Video 1.5 Video Generation

> Grok Imagine Video 1.5 Video Generation · model `grok-imagine-video-1-5`

* Create: `POST /v1/video/generations` with `model` `grok-imagine-video-1-5`
* Async: poll [Video task](/en/api-reference/tasks/video-task) with returned `task_id`
* Persist result URLs promptly (upstream links may expire)

## Identity

| Field  | Value                    |
| ------ | ------------------------ |
| Series | Video series             |
| Brand  | Grok Imagine             |
| model  | `grok-imagine-video-1-5` |

## Endpoint

| Method | Path                              |
| ------ | --------------------------------- |
| `POST` | `/v1/video/generations`           |
| `GET`  | `/v1/video/generations/{task_id}` |

Base URL: `https://api.omnimux.ai`

## Authorizations

| Name            | In     | Type   | Required | Description               |
| --------------- | ------ | ------ | -------- | ------------------------- |
| `Authorization` | header | string | yes      | `Bearer sk-...` (API key) |

## Body

| Field                  | Type         | Required    | Description                      |
| ---------------------- | ------------ | ----------- | -------------------------------- |
| `model`                | string       | yes         | Must be `grok-imagine-video-1-5` |
| `prompt`               | string       | conditional | Required for text-to-video       |
| `seconds` / `duration` | number       | no          | Duration in seconds (bounded)    |
| `size` / `resolution`  | string       | no          | Resolution (model-specific)      |
| `image` / `images`     | string/array | no          | Image-to-video references        |

## Response

### 200 (create)

| Field     | Type   | Description                                 |
| --------- | ------ | ------------------------------------------- |
| `task_id` | string | Task id for polling                         |
| `status`  | string | e.g. `pending` / `processing` / `completed` |

See [Video task](/en/api-reference/tasks/video-task). Errors: right rail and [Error codes](/en/faqs/connection-usage).

<Panel>
  <RequestExample>
    ```bash curl --request POST \ theme={null}
      --url https://api.omnimux.ai/v1/video/generations \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data '{"model":"grok-imagine-video-1-5","prompt":"slow pan across a product on a table"}'
    ```
  </RequestExample>

  <ResponseExample>
    ```json 200 theme={null}
    {
      "task_id": "task_01HXYZABCDEF",
      "status": "queued"
    }
    ```

    ```json 400 theme={null}
    { "error": { "message": "Invalid request", "type": "invalid_request_error", "code": "bad_request" } }
    ```

    ```json 401 theme={null}
    { "error": { "message": "Invalid token", "type": "authentication_error", "code": "unauthorized" } }
    ```

    ```json 402 theme={null}
    {
      "error": {
        "message": "Insufficient quota. Please top up your account.",
        "type": "insufficient_quota",
        "code": "insufficient_quota"
      }
    }
    ```

    ```json 403 theme={null}
    { "error": { "message": "Forbidden", "type": "permission_error", "code": "forbidden" } }
    ```

    ```json 429 theme={null}
    { "error": { "message": "Rate limit exceeded", "type": "rate_limit_error", "code": "rate_limit_exceeded" } }
    ```

    ```json 500 theme={null}
    { "error": { "message": "Internal server error", "type": "server_error", "code": "internal_error" } }
    ```
  </ResponseExample>
</Panel>
