How to Use Grok Imagine Video 1.5 Reference to Video in VS Code
Use reference images to place a recognizable character or product into a new shot with generated sound, at up to 720p. Unlike Grok Imagine Video 1.5 Image to Video, the references do not fix the opening frame.
Prompts to try with Grok Imagine Video 1.5 Reference to Video in VS Code
Copy an example into VS Code, or ask in your own words.
Use this project's character and room reference images with Grok Imagine Video 1.5 Reference to Video. Make an eight-second 720p scene: the character stands beside the window and says, "Your next chapter starts here." Keep the camera still.
Estimate, then generate a 5-second 9:16 clip with Grok Imagine Video 1.5 Reference to Video: a paper boat drifting down a rainy street. Save the result in ./assets.
Make a 10-second product teaser with Grok Imagine Video 1.5 Reference to Video for a smartwatch, slow orbit shot, studio lighting.
Generate three 5-second b-roll clips of a busy coffee shop with Grok Imagine Video 1.5 Reference to Video and list what each cost.
Make a 6-second 16:9 drone shot over a misty pine forest at sunrise with Grok Imagine Video 1.5 Reference to Video.
How to set up Grok Imagine Video 1.5 Reference to Video in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Grok Imagine Video 1.5 Reference to Video
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "fal", "model": "xai/grok-imagine-video/v1.5/reference-to-video", "input": { "prompt": "The person from <IMAGE_0> walks through a rainy neon-lit street.", "reference_image_urls": [ "<reference_image_urls>" ] } }'
Then paste one of the prompts above: VS Code finds Grok Imagine Video 1.5 Reference to Video on Spiral, shows the price and runs it.
Grok Imagine Video 1.5 Reference to Video providers and prices
Spiral runs Grok Imagine Video 1.5 Reference to Video through fal. Open a card for today's price, with every fee included.
$0.104 per second at 480p ($0.182 at 720p). Each reference image: $0.013.
Settings you can ask for
Grok Imagine Video 1.5 Reference to Video works from your prompt and reference image URLs. Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Duration | 1 to 15 | 8 | Video duration in seconds. |
| Resolution | 480p or 720p | 480p | Resolution of the output video. |
| Aspect ratio | 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, or 9:16 | 16:9 | Aspect ratio of the generated video. |
Every API field of Grok Imagine Video 1.5 Reference to Video is on its tool page: open its card above.
What can you do with Grok Imagine Video 1.5 Reference to Video in VS Code?
Create short video assets and motion tests alongside the project that will use them. Have the coding agent turn a creative brief into focused shots with explicit action and sound.
Product ad concepts
Test an eight-second product shot with a slow camera move, a clear action, and matching sound before planning a shoot.
Short dialogue scenes
Build a brief character moment around one spoken line, a reaction, and room ambience. Review the speech and lip sync before using the clip.
Landscape footage
Create a short establishing shot with moving mist, rippling water, or drifting clouds and a matching ambient soundtrack.
Storyboard motion tests
Turn a planned scene into a six-second shot to compare camera direction, pacing, and character action before editing a longer sequence.
Food and drink close-ups
Try a compact shot of pouring coffee, rising steam, or a spoon lifting sauce, with sound tied to the action.
Existing artwork in motion
Supply an illustration and explore a short animated scene. Use it as the opening frame for a direct continuation or as a reference for a new composition.
Photo-based product placements
Use a product photo to test a tabletop, outdoor, or studio treatment. Choose a fixed opening composition or a reference-guided new shot.
More on Grok Imagine Video 1.5 Reference to Video and VS Code
Overview
Grok Imagine Video 1.5 Reference to Video in other agents
Questions about Grok Imagine Video 1.5 Reference to Video in VS Code
Can VS Code use Grok Imagine Video 1.5 Reference to Video?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Grok Imagine Video 1.5 Reference to Video like any built-in tool.
How much does Grok Imagine Video 1.5 Reference to Video cost in VS Code?
$0.104 per second at 480p ($0.182 at 720p). Each reference image: $0.013. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need a fal account to use Grok Imagine Video 1.5 Reference to Video in VS Code?
No. Spiral runs Grok Imagine Video 1.5 Reference to Video on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up Grok Imagine Video 1.5 Reference to Video in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while Grok Imagine Video 1.5 Reference to Video runs?
Grok Imagine Video 1.5 Reference to Video runs in the background. VS Code starts the run, checks on it and gives you the video when it's ready.
Does Grok Imagine Video 1.5 generate sound?
Yes. It can generate sound effects, ambience, music, and lip-synced dialogue alongside the picture. Describe the sounds you want as part of the shot.
How long can a Grok Imagine Video 1.5 clip be?
One generation lasts from 1 to 15 seconds. For a longer sequence, plan separate shots and assemble them in an editor.
Is 720p suitable for every Grok Imagine Video 1.5 workflow?
Yes. Use 720p when you want one resolution across a sequence; it is also the ceiling for reference-guided shots.
What should I put in the prompt?
Describe what moves, how the camera moves, and what the viewer hears. For example, ask for a slow push toward a cup as steam rises, with a quiet café murmur.
Can Grok Imagine Video 1.5 make a talking character?
Yes, it supports generated dialogue with lip sync. Keep the requested line short enough for the clip, and name the speaker and exact words.
Start using Grok Imagine Video 1.5 Reference to Video in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


