[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [fal](https://spiral.ai/integrations/muse-code/fal)

# How to Use fal in Muse Code

To use fal in Muse Code, connect Spiral to Muse Code once, then ask for what you want in plain words. Muse Code can then reach all 876 fal tools on Spiral, priced per run from one balance.

|  |  |
| --- | --- |
| Tools | 876 |
| Categories | Image, Video, 3D, Audio, Data |
| Served by | fal |
| Pricing | Pay per run, no subscription |
| Setup | About 2 minutes, no API key |

## Prompts to try with fal in Muse Code

- Estimate, then generate a 5-second 9:16 clip with fal: a paper boat drifting down a rainy street. Save the result in ./assets.
- Make a 10-second product teaser with fal for a smartwatch, slow orbit shot, studio lighting.
- Generate three 5-second b-roll clips of a busy coffee shop with fal and list what each cost.
- Make a 6-second 16:9 drone shot over a misty pine forest at sunrise with fal.
- Write three video ideas for our launch, then make the best one with fal and show me the cost first.

## How to set up fal 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 fal**: 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": "fal-ai/kling-video/v3/pro/text-to-video",
    "input": {
      "prompt": "Close-up of glowing fireflies dancing in a dark forest at twilight. Soft bioluminescent particles float through the air. Shallow depth of field, bokeh lights in…"
    }
  }'
```

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

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

## fal tools and prices

- [Kling 3.0 Pro · Text to Video](https://spiral.ai/tools/fal/fal-ai/kling-video/v3/pro/text-to-video) (fal): $0.218 per second with audio ($0.146 without).
- [FLUX 3 Text to Image](https://spiral.ai/tools/fal/blackforestlabs/flux-3/text-to-image) (fal): $0.0624 per megapixel of the output image, as fal measures it.
- [GPT Image 2.6 Flare · Edit](https://spiral.ai/tools/fal/openai/gpt-image-2.6/flare/edit) (fal): $0.0475 per 4:3 image at high quality ($0.0225 low, $0.0393 medium, $0.084 xhigh, $0.188 max). At high: $0.0605 square, $0.069 square HD, $0.0342 16:9. Auto quality or size: the price of the one chosen for the request. Prompt: $6.50 per 1M tokens. Input images: $0.0106 each at 1024×1024.

## What can you do with fal in Muse Code?

Muse Code can generate video from text with fal right in your repository and save the results where you need them: as files in your project, in a script or in your build. One sign-in covers every tool, so your code stays free of provider SDKs and keys.

### Ads and social clips

Short vertical or square clips from a written brief.

### B-roll

Fill gaps in an edit with generated shots that match the scene.

### Storyboards that move

Turn a script's scenes into rough cuts to review.

### Product teasers

Short launch clips without a shoot.

### Explainer scenes

Visualize a concept in a few seconds of video.

### Concept testing

Try several directions before paying for production.

## Overview

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

## fal in other agents

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

## More Muse Code guides

- [WaveSpeed AI](https://spiral.ai/integrations/muse-code/wavespeed)
- [60.tools WoW Forever best-in-slot gear](https://spiral.ai/integrations/muse-code/60-tools-wow-forever-best-in-slot-gear)
- [Replicate](https://spiral.ai/integrations/muse-code/replicate)
- [60.tools WoW Forever gear lists](https://spiral.ai/integrations/muse-code/60-tools-wow-forever-gear-lists)
- [OpenRouter](https://spiral.ai/integrations/muse-code/openrouter)
- [60.tools WoW Forever item details](https://spiral.ai/integrations/muse-code/60-tools-wow-forever-item-details)

## Questions about fal in Muse Code

**Can Muse Code use fal?**

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

**How much does fal cost in Muse Code?**

Each tool has its own price, for example Kling 3.0 Pro Text to Video: $0.218 per second with audio ($0.146 without); FLUX 3 Text to Image: `resolution`: otherwise $0.0624, 1k (default) $0.1248, 1.5k $0.1872, 2k $0.312, 4k $1.0608 per megapixel; GPT Image 2.6 Flare Edit: $0.0475 per 4:3 image at high quality ($0.0225 low, $0.0393 medium, $0.084 xhigh, $0.188 max). At high: $0.0605 square, $0.069 square HD, $0.0342 16:9. Auto quality or size: the price of the one chosen for the request. Prompt: $6.50 per 1M tokens. Input images: $0.0106 each at 1024×1024. You pay per run from one Spiral balance, and failed runs are free.

**Do I need a fal account to use fal in Muse Code?**

No. Spiral runs fal on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up fal in Muse Code?**

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

**Does Muse Code wait while fal runs?**

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

**Which fal tools can Muse Code use?**

Muse Code can reach all 876 fal tools on Spiral, covering image, video, 3D, audio, and data. Popular ones include Kling 3.0 Pro · Text to Video, FLUX 3 Text to Image, and GPT Image 2.6 Flare · Edit. Ask for one by name, or describe the task and Muse Code picks a fitting tool.

**Can Muse Code compare fal tools?**

Yes. Ask Muse Code to run the same request on two fal tools and show both results with what each cost. Each run is priced and billed on its own.

**What happens if a fal run fails in Muse Code?**

It is not charged. Spiral holds the estimated price when the run starts and returns it to your balance if the run fails on Spiral's side or the provider's. Muse Code gets the error and can retry or try another tool.

**Is there a fal subscription or plan?**

No. Spiral is pay as you go from one prepaid balance, with no plans or minimums, and credits never expire. Auto top-up keeps Muse Code from stopping when the balance runs low.

