Vidu Q3 और Q3 Pro मॉडल पर 50% छूट · केवल WaveSpeedAI | 20 मई – 2 जून
Home/Explore/xAI/Grok Imagine Video/Reference To Video

Grok Imagine Video Reference to Video

x-ai /

X-AI Grok Imagine Video Reference-to-Video generates videos from multiple reference images with preserved identity, style, and scene composition. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

image-to-video
Input

Drag & drop करें या upload के लिए click करें

preview

Drag & drop करें या upload के लिए click करें

preview

Idle

$0.05per run·~20 / $1

Next:

ExamplesView all

The model in Figure 1 is holding the beverage in Figure 2 and confidently walking down the runway.

Related Models

README

Grok Imagine Video Reference-to-Video

Grok Imagine Video Reference-to-Video is X-AI's multi-image reference model that generates videos from up to 7 reference images. Provide reference images and describe the desired motion — the model generates a video that preserves the identity, style, and composition from your references with smooth, natural movement.

Why Choose This?

  • Multi-image reference Use up to 7 reference images to guide video generation with rich visual context.

  • Identity preservation Characters, objects, and scenes maintain consistent appearance across generated frames.

  • Flexible duration Generate videos at 6 or 10 seconds to match your scene pacing.

  • Resolution options Output in 720p or 480p based on your quality and speed requirements.

Parameters

ParameterRequiredDescription
imagesYesArray of reference image URLs (1-7 images).
promptYesText description of the desired motion, camera movement, and scene.
durationNoVideo length in seconds. Options: 6, 10.
resolutionNoOutput resolution: 720p (default) or 480p.

How to Use

  1. Upload your reference images — provide 1 to 7 reference images via URL or drag-and-drop upload.
  2. Write your prompt — describe the motion, camera movement, and scene details. Reference the uploaded images in your prompt using @image1, @image2, etc.
  3. Set duration — choose 6 or 10 seconds based on your scene length.
  4. Select resolution — 720p for higher quality, 480p for faster processing.
  5. Run — submit and download your video.

Pricing

DurationCost
6s$0.30
10s$0.50

Billing Rules

  • Rate: $0.05 per second
  • Duration options: 6 or 10 seconds
  • Billing is based on the selected duration, not actual playback length

Best Use Cases

  • Character Consistency — Generate videos with consistent character appearance across multiple shots using reference images.
  • Product Showcases — Create dynamic product videos from multiple product photos.
  • Multi-angle References — Use different angles of the same subject to generate richer, more accurate video.
  • Social Media Content — Create engaging video clips from image collections for Reels, TikTok, and Shorts.
  • Creative Projects — Combine multiple visual references to create unique video compositions.

Pro Tips

  • Use high-quality, well-lit reference images for better identity preservation.
  • Reference uploaded images in your prompt using @image1, @image2, etc. for precise control.
  • Keep reference content and prompt aligned — if references show a character, describe that character's actions.
  • Start with fewer references and add more if needed for richer context.
  • Use 6-second generations to test your prompt before committing to 10 seconds.

Notes

  • Both images and prompt are required fields.
  • Up to 7 reference images are supported.
  • Ensure image URLs are publicly accessible.
  • Maximum duration is 10 seconds.

Related Models

Accessibility:This website uses AI models provided by third parties.

Grok Imagine Video Reference To Video API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/x-ai/grok-imagine-video/reference-to-video with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Grok Imagine Video Reference To Video below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/x-ai/grok-imagine-video/reference-to-video" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "duration": 6,
    "resolution": "720p"
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("x-ai/grok-imagine-video/reference-to-video", {
        "prompt": "A cinematic shot of a city at sunset, soft golden light",
        "duration": 6,
        "resolution": "720p"
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "x-ai/grok-imagine-video/reference-to-video",
    {
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "duration": 6,
    "resolution": "720p"
}
)

print(output["outputs"][0])  # → URL of the generated output

Grok Imagine Video Reference To Video API — Frequently asked questions

What is the Grok Imagine Video Reference To Video API?

Grok Imagine Video Reference To Video is a xAI model for video generation from images, exposed as a REST API on WaveSpeedAI. X-AI Grok Imagine Video Reference-to-Video generates videos from multiple reference images with preserved identity, style, and scene composition. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the Grok Imagine Video Reference To Video API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/x-ai/x-ai-grok-imagine-video-reference-to-video.

How much does Grok Imagine Video Reference To Video cost per run?

Grok Imagine Video Reference To Video starts at $0.050 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Grok Imagine Video Reference To Video accept?

Key inputs: `prompt`, `images`, `resolution`, `duration`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/x-ai/x-ai-grok-imagine-video-reference-to-video.

How do I get started with the Grok Imagine Video Reference To Video API?

Sign up for a free WaveSpeedAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.

Can I use Grok Imagine Video Reference To Video outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (xAI). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.