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

# Grok Video: Routes & Request Parameters

> Grok Imagine 1.5 video generation across Official A, T, and Deal V routes

> [!NOTE]
>
> **Key points for AI agents**
>
> * Endpoint: `POST https://1788.love/v1/videos` with `Authorization: Bearer YOUR_1788_API_KEY`. See [Async tasks](https://docs.1788.love/en/guides/async-tasks.md).
> * Supports **text-to-video** and **image-to-video** only. Reference videos, reference audio, and `last_frame` are not supported (returns an immediate 4xx error).
> * Pass images via `image_with_roles` (`role`: `first_frame` or `reference_image`) or `image_urls`. Use `aspect_ratio` (`ratio` also accepted; Route A also accepts legacy `size`).
> * `duration` must be a JSON integer.
> * Resolution: Route A uses `resolution` (or `quality`) set to `480p` / `720p`; Route T encodes resolution in the model name (`grok-t-480` / `grok-t-720`); Deal Route V bills per request and accepts `480p` / `720p`.
> * See the [Price List](https://1788.love/pricing) for live rates.

## Routes

| Model ID | Channel | Billing | Resolution | Duration (s) | Aspect ratios | Max images | Video / Audio | First / Last frame |
| - | - | - | - | - | - | - | - | - |
| `grok-imagine-1.5-video` | Official A | Per sec | `480p`, `720p` (default `720p`) | 6–30 | `16:9` `9:16` `1:1` `3:2` `2:3` | 7 | No | First ✓ (as ref) / Last ✗ |
| `grok-t-480` | Official T | Per sec | Fixed `480p` | 6–15 | `16:9` `9:16` `1:1` `3:2` `2:3` | 7 | No | First ✓ / Last ✗ |
| `grok-t-720` | Official T | Per sec | Fixed `720p` | 6–15 | Same as above | 7 | No | First ✓ / Last ✗ |
| `grok-1.5-req-a` | Deal V · Route 1 | Per req | `480p`, `720p` | 5–15 | `16:9` `9:16` `1:1` `4:3` `3:4` `21:9` | 6 | No | First ✓ (as ref) / Last ✗ |
| `grok-1.5-req-c` | Deal V · Route 2 | Per req | `480p`, `720p` | 5–15 | `16:9` `9:16` `1:1` `4:3` `3:4` `21:9` | 6 | No | First ✓ (as ref) / Last ✗ |

* On Route T, a single image is treated as `first_frame`; 2–7 images are treated as reference images. When `role: "first_frame"` is set explicitly, it must be the only image.
* Media URLs must be public HTTPS URLs—use [Upload media](https://docs.1788.love/en/api-reference/upload-image.md) for local files.

## Examples

### Text-to-video (Official A)

```bash theme={null}
curl https://1788.love/v1/videos \
  -H "Authorization: Bearer YOUR_1788_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-1.5-video",
    "prompt": "A golden retriever running on a sunny beach, slow motion",
    "duration": 6,
    "resolution": "720p",
    "aspect_ratio": "16:9"
  }'
```

### Image-to-video (Official T, 720p)

```json theme={null}
{
  "model": "grok-t-720",
  "prompt": "Bring the scene to life with a gentle push-in",
  "duration": 8,
  "aspect_ratio": "9:16",
  "image_with_roles": [
    { "url": "https://ruyi6.cn/r/EXAMPLE_IMAGE.png", "role": "first_frame" }
  ]
}
```

### Deal Route V (per request, 5s)

```json theme={null}
{
  "model": "grok-1.5-req-a",
  "prompt": "The subject turns and smiles as wind blows through their hair",
  "duration": 5,
  "resolution": "720p",
  "aspect_ratio": "9:16",
  "image_with_roles": [
    { "url": "https://ruyi6.cn/r/EXAMPLE_IMAGE.png", "role": "reference_image" }
  ]
}
```


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