[Integrations](https://spiral.ai/integrations) › [Windsurf](https://spiral.ai/integrations/windsurf) › [fal](https://spiral.ai/integrations/windsurf/fal)

# How to Use fal in Windsurf

To use fal in Windsurf, connect Spiral to Windsurf once, then ask for what you want in plain words. Windsurf 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 Windsurf

- 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 Windsurf

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

### Use Spiral's MCP server

1. **Add the server**: Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: `~/.config/devin/mcp_config.json` on macOS and Linux, `%APPDATA%\devin\mcp_config.json` on Windows. Add this:

```json
{
  "mcpServers": {
    "spiral": {
      "url": "https://api.spiral.ai/mcp"
    }
  }
}
```

2. **Sign in**: Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

```bash
devin mcp login spiral
```

3. **Check it**: Spiral is listed under This computer in Customize › MCPs. From the terminal:

```bash
devin mcp list
```

### Use the Spiral skill

1. **Send Windsurf 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: Windsurf finds fal on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/windsurf

## 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 Windsurf?

Windsurf 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 Windsurf guides](https://spiral.ai/integrations/windsurf)

## 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)
- [Muse Code](https://spiral.ai/integrations/muse-code/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)
- [Zapier](https://spiral.ai/integrations/zapier/fal)

## More Windsurf guides

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

## Questions about fal in Windsurf

**Can Windsurf use fal?**

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

**How much does fal cost in Windsurf?**

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 Windsurf?**

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 Windsurf?**

About two minutes: add the server, then sign in, then check it.

**Does Windsurf wait while fal runs?**

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

**Which fal tools can Windsurf use?**

Windsurf 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 Windsurf picks a fitting tool.

**Can Windsurf compare fal tools?**

Yes. Ask Windsurf 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 Windsurf?**

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. Windsurf 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 Windsurf from stopping when the balance runs low.

