Spiral gives your agent every tool with one account. Browse the tools →

Muse Code · VideoReleased 2026-06-16

How to Use Grok Imagine Video 1.5 in Muse Code

Grok Imagine Video 1.5 makes short scenes with synchronized sound, dialogue, and motion. Use native 1080p for text or image animation, or reference images at 720p to guide characters, products, and locations.

Prompts to try with Grok Imagine Video 1.5 in Muse Code

Copy an example into Muse Code, or ask in your own words.

Use Grok Imagine Video 1.5 to animate the product photo in this project's assets folder into an 8-second 1080p shot. Slowly push the camera toward the product, move a soft reflection across it, and add quiet room ambience.

Grok Imagine Video 1.5Muse Code
Try asking
  • Read the game's character brief and use Grok Imagine Video 1.5 to animate the matching concept art for 6 seconds at 1080p. Have the character glance toward the camera and wave, with rustling clothes and distant birds.

  • Read this project's trailer outline and use Grok Imagine Video 1.5 to generate its opening landscape shot: 10 seconds at 1080p, a slow aerial approach at dawn, low mist, and wind through trees.

  • Use Grok Imagine Video 1.5 with the project's character and workshop reference images to make an 8-second 720p scene. Keep the character behind the workbench and the tools stationary; have the character say, 'Let's make something useful.'

  • Read the creative brief and use Grok Imagine Video 1.5 to make three separate 6-second 1080p previews of its opening shot. Keep the action and lighting the same, changing only the camera move: locked shot, slow push-in, then sideways tracking.

How to set up Grok Imagine Video 1.5 in Muse Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Install Muse Code
    curl -fsSL https://dev.meta.ai/install.sh | bash
  2. Ask Muse to add the server

    Start muse and ask:

    Add the Spiral MCP server at https://api.spiral.ai/mcp
  3. Sign in

    In your terminal, run:

    muse mcp login spiral

Use the Spiral skill

  1. Send Muse Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run Grok Imagine Video 1.5

    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": "xai",
        "model": "grok-imagine-video-1.5",
        "input": {
          "image": {}
        }
      }'

Then paste one of the prompts above: Muse Code finds Grok Imagine Video 1.5 on Spiral, shows the price and runs it.

Grok Imagine Video 1.5 providers and prices

Spiral runs Grok Imagine Video 1.5 through xAI. Open a card for today's price, with every fee included.

xAIVideo

Settings you can ask for

Grok Imagine Video 1.5 works from your prompt. Ask Muse Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Duration1 to 158

Video duration in seconds. Range: [1, 15]. Default: 8.

Also accepts seconds for OpenAI API compatibility.

Accepts both number (8) and string ("8") values.

Resolution480p, 720p, or 1080p

Resolution of the generated video.

Aspect ratio1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9 and 1 more

Aspect ratio of the generated video. Ignored for image-to-video

(first-frame image input): the aspect ratio is always derived from

the input image.

Every API field of Grok Imagine Video 1.5 · Video Generation is on its tool page: open its card above.

What can you do with Grok Imagine Video 1.5 in Muse Code?

Turn project artwork and creative briefs into short video assets with motion and sound. A coding agent can read the project's files, write shot prompts, and organize generated clips for editing.

Animate a product photo

Turn a still product image into an 8-second shot with a slow camera move, moving reflections, and matching ambient sound.

Draft a dialogue scene

Create a short exchange between two characters, with their lines and background ambience specified in the prompt.

Plan a film shot

Test a 10-second establishing shot with a specific camera move, lighting direction, and soundscape before committing to production.

Place a product in a scene

Use separate product and location references to draft a 720p scene. Give each reference a clear role and keep the product stationary.

Animate an illustrated character

Start with an illustration and request a brief gesture, a camera move, and a short spoken line.

Create landscape footage

Animate a landscape still with drifting clouds or changing light for a short transition between edited scenes.

Explore recurring-character stories

Reuse character and location references across separate 720p shots, changing the action while keeping each reference's role clear.

Questions about Grok Imagine Video 1.5 in Muse Code

Can Muse Code use Grok Imagine Video 1.5?

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Grok Imagine Video 1.5 like any built-in tool.

How much does Grok Imagine Video 1.5 cost in Muse Code?

$0.104 per second at 480p ($0.182 at 720p, $0.325 at 1080p). Input image: $0.013. 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 Muse Code plan is separate.

Do I need a xAI account to use Grok Imagine Video 1.5 in Muse Code?

No. Spiral runs Grok Imagine Video 1.5 on its own xAI 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 in Muse Code?

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

Does Muse Code wait while Grok Imagine Video 1.5 runs?

Grok Imagine Video 1.5 runs in the background. Muse Code starts the run, checks on it and gives you the video when it's ready.

What is Grok Imagine Video 1.5 useful for?

Use it for short scenes that need motion and sound together: product shots, animated stills, dialogue scenes, and visual story drafts. Reference images help specify the people, products, or places in a shot.

How long can a video be?

A generated clip can last from 1 to 15 seconds. For a longer story, plan separate shots and edit them together.

Does Grok Imagine Video 1.5 generate sound?

Yes. It generates sound effects, ambience, and dialogue alongside the action, so describe the sound you want as part of the shot.

What should I put in a video prompt?

Describe the shot, camera movement, lighting, and sound. When animating a still, explain what should happen next, such as steam rising while the camera moves closer.

How should I handle several reference images?

Give each reference one clear role and a fixed place in the scene. Keep the cast small and props static, following xAI's guidance for scenes with many references.

Get started

Start using Grok Imagine Video 1.5 in Muse Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Muse Code:

Set up Muse Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options