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

Muse Code · Video

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.

Prompts to try with fal in Muse Code

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

Estimate, then generate a 5-second 9:16 clip with fal: a paper boat drifting down a rainy street. Save the result in ./assets.

falMuse Code
Try asking
  • 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
    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 fal

    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": "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.

fal tools you can run in Muse Code

3

Ready to run from Muse Code: today's price, with every fee included.

falVideo
Kling 3.0 Pro · Text to Video
fal-ai/kling-video/v3/pro/text-to-video
falImage
FLUX 3 Text to Image
blackforestlabs/flux-3/text-to-image
falImage
GPT Image 2.6 Flare · Edit
openai/gpt-image-2.6/flare/edit

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.

fal success rate and speed on Spiral

Success and speed over the last 24 hours, across every run of these tools on Spiral.

Success rate
100.0%
Fastest median run time
25.8s
Runs, last 24 hours
25
ToolSuccessMedian timeRuns
Kling 3.0 Pro · Text to VideoNot enough runs
FLUX 3 Text to Image100.0%25.8s23
GPT Image 2.6 Flare · EditNot enough runs

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.

Get started

Start using fal 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