# xAI Grok Imagine Video Extend API

> Grok Imagine Video Extend is xAI's video-to-video AI model. Transform, enhance, and edit video content using text prompts - from style changes to object manipulation and scene modification.

Source: https://www.sandbase.ai/models/xai/grok-imagine-video/video-extend
API reference: https://www.sandbase.ai/models/xai/grok-imagine-video/video-extend/docs

## Facts

- Provider: xAI
- Type: Video model
- Model ID: `xai/grok-imagine-video/video-extend`
- Price: From $0.36 per run
- Capabilities: video to video
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "xai/grok-imagine-video/video-extend",
  "video": "https://static.sandbase.ai/examples/xai/grok-imagine-video/extend/input_video_0.mp4",
  "prompt": "The camera slowly zooms out to reveal the city skyline at sunset",
  "duration": 6
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call xAI Grok Imagine Video Extend through SandBase?

Create a SandBase API key, then send requests with the model ID "xai/grok-imagine-video/video-extend" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate xAI account?

No. One SandBase API key and balance gives you access to xAI Grok Imagine Video Extend and the other models in the catalog; you do not need to sign up with xAI separately.

## README

### Grok Imagine Video Extend

Grok Imagine Video extend: continue a clip with 2–10 seconds of new footage.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 4,096 characters. |
| `video` | video URL, required | — | Source clip. |
| `duration` | integer 2–10 | 6 | Output length in seconds. |

#### Billing

$0.06 per new second.

| Output | Price |
|---|---|
| 2s | $0.12 |
| 6s (default) | $0.36 |
| 10s | $0.60 |

Failed runs are not charged.

#### Prompting

- Describe subject, action, camera, and sound.

#### Also on SandBase

Other Grok Imagine Video endpoints: `xai/grok-imagine-video/text-to-video`, `xai/grok-imagine-video/image-to-video`, `xai/grok-imagine-video/reference-to-video`, `xai/grok-imagine-video/video-edit`, `xai/grok-imagine-video/1.5/text-to-video` (1.5, newer).
