[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Grok Imagine Image to Video](https://spiral.ai/integrations/muse-code/grok-imagine-image-to-video)

# How to Use Grok Imagine Image to Video in Muse Code

Animate a finished still into a short video with generated audio. Unlike Grok Imagine Reference to Video, it uses your image as the opening frame, making it useful when the starting composition matters.

|  |  |
| --- | --- |
| Model | Grok Imagine Image to Video |
| Available through | fal |
| Category | Video |
| Price | `resolution`: 480p $0.065, 720p (default) $0.091 per second. Billed on `duration`, default 6. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Grok Imagine Image to Video in Muse Code

- Use Grok Imagine Image to Video to animate the approved product still in this project's assets. Make a six-second, 720p clip that begins on that composition, slowly moves toward the product, and adds a soft mechanical hum.
- Use Grok Imagine Image to Video with the landscape illustration in this project's assets. Create an eight-second, 720p shot with drifting clouds, a slow camera push toward the mountains, and wind ambience.
- Animate the image I attach with Grok Imagine Image to Video: slow push-in, leaves moving in the wind. Save the result in ./assets.
- Turn this product photo into a 5-second rotating shot with Grok Imagine Image to Video.
- Bring this portrait to life with Grok Imagine Image to Video: a subtle smile and a blink.

## How to set up Grok Imagine Image to Video in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
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.

```bash
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 Image to Video**: One request; the result comes back by polling or a webhook.

```bash
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/image-to-video",
    "input": {
      "prompt": "Medieval knight in ornate armor walking through a mystical forest, bioluminescent plants pulsing with light, ancient stone ruins overgrown with glowing vines,…",
      "image_url": "https://v3b.fal.media/files/b/0a8b90e0/BFLE9VDlZqsryU-UA3BoD_image_004.png"
    }
  }'
```

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

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Grok Imagine Image to Video tools and prices

- [Grok Imagine Video · Image to Video](https://spiral.ai/tools/fal/xai/grok-imagine-video/image-to-video) (fal): `resolution`: 480p $0.065, 720p (default) $0.091 per second. Billed on `duration`, default 6.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| duration | 1 to 15 | 6 | Video duration in seconds. |
| resolution | 480p, 720p | 720p | Resolution of the output video. |
| aspect_ratio | auto, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16 | auto | Aspect ratio of the generated video. |

## What can you do with Grok Imagine Image to Video in Muse Code?

Create short video assets for a website, game prototype, or product presentation while working in your project. Have the coding agent turn the creative brief into a concrete shot description with camera movement and sound.

### Product shot concepts

Test a short product scene with a slow camera move, deliberate lighting, and a simple sound direction. Start from a written concept, a finished product still, or product reference images as appropriate.

### Storyboard motion studies

Turn a planned story beat into a six-second shot to assess framing and movement before production. Use text, an opening illustration, or character references according to the chosen model.

### Social video concepts

Explore a short scene composed for a phone screen, with one action and an explicit sound direction. Prepare portrait imagery when starting from a still or visual references.

### Camera movement comparisons

Generate separate versions of a scene with a slow zoom, pan, or dolly movement. Compare how each movement changes the emphasis before choosing a shot direction.

### Atmospheric cutaway footage

Create brief scene-setting shots such as curtains moving beside a window or rain falling on an empty street. Pair the visible movement with matching ambient sound.

### Animate an approved opening composition

Begin with a finished illustration or product still and direct how it moves. Use the supplied image as the opening frame when that exact starting composition matters.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Grok Imagine Image to Video in other agents

- [Amp](https://spiral.ai/integrations/amp/grok-imagine-image-to-video)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/grok-imagine-image-to-video)
- [Claude](https://spiral.ai/integrations/claude-desktop/grok-imagine-image-to-video)
- [Claude Code](https://spiral.ai/integrations/claude-code/grok-imagine-image-to-video)
- [Cline](https://spiral.ai/integrations/cline/grok-imagine-image-to-video)
- [Codex](https://spiral.ai/integrations/codex/grok-imagine-image-to-video)
- [Cursor](https://spiral.ai/integrations/cursor/grok-imagine-image-to-video)
- [Devin](https://spiral.ai/integrations/devin/grok-imagine-image-to-video)
- [dots](https://spiral.ai/integrations/dots/grok-imagine-image-to-video)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/grok-imagine-image-to-video)
- [Gemini](https://spiral.ai/integrations/gemini/grok-imagine-image-to-video)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/grok-imagine-image-to-video)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/grok-imagine-image-to-video)
- [goose](https://spiral.ai/integrations/goose/grok-imagine-image-to-video)
- [Grok](https://spiral.ai/integrations/grok/grok-imagine-image-to-video)
- [Grok Build](https://spiral.ai/integrations/grok-build/grok-imagine-image-to-video)
- [Hermes](https://spiral.ai/integrations/hermes/grok-imagine-image-to-video)
- [Instinct](https://spiral.ai/integrations/instinct/grok-imagine-image-to-video)
- [Manus](https://spiral.ai/integrations/manus/grok-imagine-image-to-video)
- [Muse](https://spiral.ai/integrations/muse/grok-imagine-image-to-video)
- [n8n](https://spiral.ai/integrations/n8n/grok-imagine-image-to-video)
- [Notion](https://spiral.ai/integrations/notion/grok-imagine-image-to-video)
- [OpenClaw](https://spiral.ai/integrations/openclaw/grok-imagine-image-to-video)
- [opencode](https://spiral.ai/integrations/opencode/grok-imagine-image-to-video)
- [Perplexity](https://spiral.ai/integrations/perplexity/grok-imagine-image-to-video)
- [Raycast](https://spiral.ai/integrations/raycast/grok-imagine-image-to-video)
- [VS Code](https://spiral.ai/integrations/vscode/grok-imagine-image-to-video)
- [Windsurf](https://spiral.ai/integrations/windsurf/grok-imagine-image-to-video)
- [Zapier](https://spiral.ai/integrations/zapier/grok-imagine-image-to-video)

## More Muse Code guides

- [Grok Imagine Extend Video](https://spiral.ai/integrations/muse-code/grok-imagine-extend-video)
- [Grok Imagine Reference to Video](https://spiral.ai/integrations/muse-code/grok-imagine-reference-to-video)
- [Grok Imagine 1.5 Lite Text to Video](https://spiral.ai/integrations/muse-code/grok-imagine-1-5-lite-text-to-video)
- [Grok Imagine Text to Video](https://spiral.ai/integrations/muse-code/grok-imagine-text-to-video)
- [Grok Imagine 1.5 Lite Image to Video](https://spiral.ai/integrations/muse-code/grok-imagine-1-5-lite-image-to-video)
- [Grok Imagine Video 1.5](https://spiral.ai/integrations/muse-code/grok-imagine-video-1-5)

## Questions about Grok Imagine Image to Video in Muse Code

**Can Muse Code use Grok Imagine Image to Video?**

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

**How much does Grok Imagine Image to Video cost in Muse Code?**

`resolution`: 480p $0.065, 720p (default) $0.091 per second. Billed on `duration`, default 6. 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 fal account to use Grok Imagine Image to Video in Muse Code?**

No. Spiral runs Grok Imagine Image 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 Image to Video 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 Image to Video runs?**

Grok Imagine Image to Video 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 useful for?**

Use it to explore short visual ideas such as product shots, story scenes, camera movements, and animated illustrations. Describe what moves and what the viewer should hear so the result has a clear purpose.

**Does Grok Imagine Video generate sound?**

Yes, Grok Imagine Video generates audio alongside the picture. Include the sounds you want in the scene description instead of leaving the sound direction unspecified.

**Can Grok Imagine Video produce 1080p or 4K?**

The original Grok Imagine Video models listed here stop at 720p. They are a poor fit when your deliverable requires native 1080p or 4K footage.

**How long can a Grok Imagine Video clip be?**

Text to Video and Image to Video support 1 to 15 seconds. Reference to Video supports 1 to 10 seconds, so plan longer sequences as separate shots.

**What should I put in a Grok Imagine Video prompt?**

Describe the subject, its action, the camera movement, lighting, and sound. Replace phrases such as 'make it cinematic' with visible directions such as 'the camera slowly moves toward the cup as steam rises.'

