---
title: "Grok Imagine Video Reference-to-Video API & Playground"
description: "Grok Imagine Video Reference-to-Video by xAI: Generates a video guided by 1..7 reference images plus a text prompt. Typical cost: 63.7 credits per run."
canonical: https://comfy.org/hub/models/grok-imagine-video-reference-to-video/
lang: en
index: https://comfy.org/llms.txt
---

[Models](https://comfy.org/hub/models/)

xAI

[Animate images](https://comfy.org/hub/models/?useCase=animate-images)

# Grok Imagine Video Reference-to-Video

Generates a video guided by 1..7 reference images plus a text prompt.

- Use via API
- [Open in Cloud](https://stagingcloud.comfy.org/)

63.7 credits /Run

- [image-to-video](https://comfy.org/hub/models/?q=image-to-video)

## Playground

Input

Prompt

Reference image

-

Reference image 2

-

Reference image 3

Select or drop an image PNG, JPEG, WEBP ·  up to 25 MiB

Reference image 4

Select or drop an image PNG, JPEG, WEBP ·  up to 25 MiB

Aspect ratio

Duration

Resolution

Output

00:00

Example

## Try an example

-

## Call this model from your code

Sends your Playground inputs to Comfy Router.

[API docs (opens in a new tab)](https://docs.comfy.org/development/comfy-router/models#xai)

1. ### Get an API key

  Needs a paid Cloud plan with credits.

  [Get an API key (opens in a new tab)](https://platform.comfy.org/profile/api-keys?onboarding=models&model=xai--grok-imagine-video-reference--animate-images)
2. ### Install the SDK

  Python 3.10+. Also on npm as @comfyorg/sdk.

  pip install comfy-sdk==0.2.0
3. ### Run it

  Calls Comfy Router at this endpoint with your COMFY_API_KEY.

  POST /v2/models/xai/grok-imagine-video

Fill in the Playground inputs to generate a request.

## More from xAI

Compare xAI's other models. Price is the default setting; resolution and duration show the full range each model offers.

| Model | Price | Resolution | Duration |
| --- | --- | --- | --- |
| [Grok Imagine Image 2.0 Text-to-Image](https://comfy.org/hub/models/grok-imagine-image-2-0-text-to-image/) | — | 1K – 2K | — |
| [Grok Imagine Image Text-to-Image](https://comfy.org/hub/models/grok-imagine-image-text-to-image/) | 4.2 credits /Run | 1K – 2K | — |
| [Grok Imagine Video 1.5 Text-to-Video](https://comfy.org/hub/models/grok-imagine-video-1-5-text-to-video/) | — | 480p – 1080p | 1 – 15s |
| [Grok Imagine Video Image-to-Video](https://comfy.org/hub/models/grok-imagine-video-image-to-video/) | 63.7 credits /Run | 480p – 720p | 1 – 15s |
| [Grok Imagine Video Text-to-Video](https://comfy.org/hub/models/grok-imagine-video-text-to-video/) | 63.3 credits /Run | 480p – 720p | 1 – 15s |
| [Grok Imagine Video 1.5 Reference-to-Video](https://comfy.org/hub/models/grok-imagine-video-1-5-reference-to-video/) | 147.8 credits /Run | 480p – 1080p | 1 – 15s |
| [Grok Imagine Video 1.5 Image-to-Video](https://comfy.org/hub/models/grok-imagine-video-1-5-image-to-video/) | 147.8 credits /Run | 480p – 1080p | 1 – 15s |
