---
agent:
  instructions: "Use this search API to find relevant Cook Studio content (product, pricing, FAQ, blog articles, example videos) with keywords or natural-language queries instead of crawling pages. Results are returned in Markdown."
  endpoint: "https://cookstudio.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Grok Imagine Video"
description: "Grok Imagine Video through the Cook Studio API: allowed settings, price estimate and example request."
---
# Grok Imagine Video

One clip per request. The start frame sets the first image of the clip; the prompt describes the motion.

|  |  |
| --- | --- |
| Model id | `grok-video` |
| Type | Video clip |
| Endpoint | `POST /generations` |
| Available now | Yes |
| `seconds` | `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10` |
| `aspect_ratio` | taken from the start frame (do not send it) |
| `resolution` | `720p` (default `720p`) |
| `image` | **required** start frame, image/png / image/jpeg / image/webp, about 150 KB max |
| `prompt` | up to 4,000 characters |

## Price

Prices are the same as in the app and can change, so they are not listed here. Ask for the current price first; nothing is charged:

```bash
curl https://app.cookstudio.ai/api/v1/generations/estimate -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"model":"grok-video","prompt":"Slow dolly-in on a lighthouse at dusk, waves crashing, cinematic","seconds":1}'
```

## Generate

```bash
curl https://app.cookstudio.ai/api/v1/generations -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"model":"grok-video","prompt":"Slow dolly-in on a lighthouse at dusk, waves crashing, cinematic","seconds":1, "image": {"mime_type": "image/jpeg", "base64": "<raw base64, no data: prefix>"}}'
# → 201 {"id": "…", "object": "generation", "model": "grok-video", "status": "running", "credits": …}
```

Then poll [`GET /generations/{id}`](https://cookstudio.ai/docs/reference/get-generation) until `status` is `done` and download the file from [`/generations/{id}/file`](https://cookstudio.ai/docs/reference/get-generation-file). A failed generation is refunded in full.

The allowed values on this page are read from the same list the API checks against, and `GET /models` returns them live.

Canonical: https://cookstudio.ai/docs/models/grok-video
