Video models
Grok Imagine
On this page
Grok Imagine — high-quality AI video generation.
| modelId | grok-imagine-image-to-video |
| Modality | video |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | Endpoint | Description |
|---|---|---|
| Text to video | POST /api/v1/generate | Base generation from a text prompt. |
| Image to video | POST /api/v1/generate | Condition on a reference image — upload it via /api/v1/files/upload and pass the URL. |
| Poll task | GET /api/v1/task/{id}?model=grok-imagine-image-to-video | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| image_urls | image | optional | Drag and drop or click to upload your image |
| task_id | text | optional | Enter task_id |
| index | number | optional | — |
| prompt | textarea | optional | Enter your prompt here... |
| mode | select | optional | fun, normal, spicy |
| aspect_ratio | select | optional | 2:3, 3:2, 1:1, 16:9, 9:16 |
| duration | number | optional | — |
| resolution | select | optional | 480p, 720p |
| nsfw_checker | select | optional | false, true |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"grok-imagine-image-to-video","input":{"task_id":"…","index":0,"prompt":"Slow cinematic push-in with gentle ambient motion, soft light shifting across the frame, subtle parallax and a shallow, dreamlike depth of field.","mode":"normal","aspect_ratio":"2:3","duration":6,"resolution":"480p","nsfw_checker":"true"}}'