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

# Grok Video 1.5 Preview Generation

> Generate a 10s or 15s video from exactly one reference image using grok-video-1.5-preview

* Image-to-video only. Text-to-video is not supported.
* Requires exactly one public reference image URL.
* Supports `10` and `15` second videos.
* Supports only `16:9` and `9:16` aspect ratios.
* Async task API: poll video task status with the returned task ID.

<Warning>
  Do not pass base64 image data. Upload local files with the [Upload 이미지 API](../../uploads/images), then pass the returned public URL in `images`.
</Warning>

## Authorizations

<ParamField header="Authorization" type="string" required>
  All API requests require Bearer Token authentication.

  ```text theme={null}
  Authorization: Bearer YOUR_API_KEY
  ```
</ParamField>

## Body

<ParamField body="model" type="string" default="grok-video-1.5-preview" required>
  Use `grok-video-1.5-preview`.
</ParamField>

<ParamField body="prompt" type="string" required>
  Describe the motion, camera movement, and visual direction for the reference image.
</ParamField>

<ParamField body="images" type="string[]" required>
  Pass exactly one public image URL.

  * Minimum: `1`
  * Maximum: `1`
  * Supported URL schemes: `http://`, `https://`
</ParamField>

<ParamField body="seconds" type="string" default="10">
  Video duration.

  Supported values: `"10"`, `"15"`
</ParamField>

<ParamField body="aspect_ratio" type="string" default="16:9">
  Video aspect ratio.

  Supported values: `16:9`, `9:16`
</ParamField>

## Pricing

| Duration | Price             |
| -------- | ----------------- |
| `10s`    | `$0.10 / request` |
| `15s`    | `$0.15 / request` |

## 응답

<ResponseField name="id" type="string">
  Task identifier for polling video status.
</ResponseField>

<ResponseField name="object" type="string">
  Object type, always `generation.task`.
</ResponseField>

<ResponseField name="model" type="string">
  모델 name used for the task.
</ResponseField>

<ResponseField name="status" type="string">
  Task status: `queued`, `in_progress`, `completed`, or `failed`.
</ResponseField>

## Create a video task

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://toapis.com/v1/videos/generations \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
      "model": "grok-video-1.5-preview",
      "prompt": "Animate this product photo into a cinematic commercial video with a subtle camera push-in",
      "images": ["https://example.com/product.jpg"],
      "seconds": "10",
      "aspect_ratio": "16:9"
    }'
  ```

  ```python Python theme={null}
  import requests

  task = requests.post(
      "https://toapis.com/v1/videos/generations",
      headers={
          "Authorization": "Bearer YOUR_API_KEY",
          "Content-Type": "application/json",
      },
      json={
          "model": "grok-video-1.5-preview",
          "prompt": "Animate this product photo into a cinematic commercial video",
          "images": ["https://example.com/product.jpg"],
          "seconds": "15",
          "aspect_ratio": "16:9",
      },
  ).json()

  print(task["id"])
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "video_abc123def456",
    "object": "generation.task",
    "model": "grok-video-1.5-preview",
    "status": "queued",
    "progress": 0,
    "created_at": 1768380224,
    "metadata": {}
  }
  ```
</ResponseExample>

## Query task status

Use the returned `id` with [Video Task 상태](../../tasks/video-status).
