Skip to content

fal API and MCP

fal runs image, video and audio generation models through hosted inference APIs. An agent can submit image and video generation requests for content production. Add your fal key once in Longwave settings; calls run on your vendor account.

Add to Longwave

Add fal to your agent

Paste this into Claude Code or a terminal. Then run /mcp to sign in.

functions
11
lowest price
$0.35/call
access
Your key
tasks
5

Use fal on Longwave

  1. Download Longwave or open app.longwave.run.
  2. Add your fal API key once in Longwave settings. Calls run on your fal account at fal's price.
  3. Ask for the result in any thread, for example: “Generate an image from a content brief”. The agent picks the fal function and calls it.

Use fal in Claude Code, Codex, Cursor or ChatGPT

Add the Longwave MCP server once. It carries 2,593 functions across 103 tools, including fal, and asks you to sign in on first use.

Why call fal through Longwave

  • Your fal key is stored once, encrypted, and used by every harness and device you use.
  • One MCP server for 103 tools, so your agent setup does not grow a key and a server per vendor.
  • Spending limits per key and per account, checked before a paid call is made.
  • Each call is recorded with the provider, the cost and the result, and can be read again from another device.

fal functions

Image generation 6

Function Price
Generate an image from text (FLUX Pro) Accepts a text prompt and returns a queue receipt for image generation. fal.image.flux-pro-v1-1
$0.04 per image Price for 1 megapixel of output with FLUX1.1 pro; the charge depends on output megapixels.
Generate an image from text (FLUX 2) Accepts a text prompt and returns a queue receipt for image generation. fal.image.flux-2
$0.012 per image Price for 1 megapixel of output with FLUX 2; the charge depends on output megapixels.
Edit an image with FLUX Kontext Accepts a text prompt and an image URL and returns a queue receipt for image editing. fal.image.kontext
$0.04 per image FLUX Kontext: one edited image.
Edit an image with Nano Banana Accepts a text prompt and image URLs and returns a queue receipt for image editing. fal.image.nano-banana-edit
$0.04 per image Nano Banana: one edited image.
Generate an image from text (Flux schnell) Accepts a text prompt and returns the generated image or its generation receipt. fal.image.flux-schnell
$0.003 per image Price for a 1-megapixel image. The vendor bills each image by its output megapixels, rounded up; larger images cost more.
Generate an image from text (Flux dev) Accepts a text prompt and returns the generated image or its generation receipt. fal.image.flux-dev
$0.025 per image Price for a 1-megapixel image. The vendor bills each image by its output megapixels, rounded up; larger images cost more.

Video generation 4

Function Price
Generate a video from text (Kling) Accepts a text prompt and returns a queue receipt for video generation. fal.video.kling-2-5-text
$0.35 per call Kling 2.5 Turbo Pro: one five-second video from text. Each additional second costs $0.07.
Animate an image with Kling Accepts a text prompt and an image URL and returns a queue receipt for video generation. fal.video.kling-2-5-image
$0.35 per call Kling 2.5 Turbo Pro: one five-second video from an image. Each additional second costs $0.07.
Generate a video from text (Veo 3) Accepts a text prompt and returns a queue receipt for video generation. fal.video.veo-3
$0.40 per second Veo 3 with audio: $0.40 per second, or $1.60 for four seconds. Without audio, $0.20 per second.
Generate a video from text Generate a video from text with the fal queue. fal.video.wan-2-2
$0.08 per second 720p output. 580p costs $0.06/second and 480p $0.04/second. Billed duration is calculated at 16 frames/second.

Audio generation 1

Function Price
Generate speech from text (Kokoro) Accepts text to convert to speech and returns a queue receipt for speech generation. fal.speech.kokoro
$0.02 per 1k characters Kokoro American English: $0.02 per 1,000 input characters.

Prices are fal's published rates. Source: fal pricing.

Use cases

Questions people ask

How do I get a fal API key?

Sign in to fal and create a key at fal.ai/dashboard/keys. Add it once in Longwave settings and your agents' fal calls run on your own account. fal API keys

How is FLUX Schnell priced on fal?

The published rate is $0.003 for a 1-megapixel image. The vendor bills output megapixels with rounding, so larger images can cost more. fal documentation

Do I need a fal account?

Yes. Create a key at https://fal.ai/dashboard/keys and add it in Longwave settings. Longwave stores it encrypted and uses it only for your calls.

What does a fal API call cost through Longwave?

The same as calling fal directly. For example, “Generate an image from text (FLUX Pro)” costs $0.04 per image. Longwave adds no markup. fal pricing

How do I use fal in Claude Code?

Add the Longwave MCP server once with claude mcp add --transport http longwave https://api.longwave.run/v1/mcp/tasks, sign in, and ask for what you need. Claude finds the right fal function and calls it.

Use fal in Longwave

Ask any Longwave thread for the result, or add Longwave to Claude Code, Codex, Cursor or ChatGPT.

Add to Longwave