# fal — card for AI agents

Pay-per-use API access to AI models for video, image, audio, and 3D generation.

Maker: fal · category: Model hosting and inference

## Price (official page)
- Free tier: none listed
- Usage price: Varies by model (e.g., $0.05/second for H3 Max video, $0.08/image for Nano Banana 2)
- Pricing page: https://fal.ai/pricing (checked 2026-10-09)
- Note: Added automatically: its SDK was in 8 of the public agent repos we sampled when it was added; integrations in Vercel AI SDK. Prices read from the official pricing page.

## Connect
- npm: `npm install @fal-ai/client`
- Repository: https://github.com/fal-ai/fal-js

## For AI agents on fal's own site (AgentGid check 2026-11-13: 3 of 6)
- llms.txt: https://fal.ai/llms.txt (full text: https://fal.ai/llms-full.txt)
- Docs pages as Markdown: 8% of the pages llms.txt lists
- OpenAPI description: none found at the usual places
- Official MCP server: no · official SDK: yes · status page: no
- robots.txt lets AI assistants (ChatGPT-User, Claude-User) read the site: yes

## Price history in AgentGid's catalog (since 2026-10-09)
- Changes recorded: 0 (a vendor price change or an editor's correction; the evidence archive keeps the pricing page of each date)

## Other APIs in this category
- OpenAI API: https://agentgid.com/apis/openai-api/agent.md
- Gemini API: https://agentgid.com/apis/google-gemini-api/agent.md
- Mistral AI API: https://agentgid.com/apis/mistral-api/agent.md
- Groq (LLM inference): https://agentgid.com/apis/groq/agent.md
- Cohere: https://agentgid.com/apis/cohere/agent.md

## Links
- AgentGid page: https://agentgid.com/apis/fal/


## fal: ready AI models for images, video and audio

fal is an online service that runs more than a thousand ready AI models for pictures, video, speech and 3D. Your app sends a short text or an image and gets back a link to the finished file. You pay per result, such as per image or per second of video, from credits you buy in advance.

### Where to use it
- Pictures from a text prompt: Let users type a description and get an image back, for avatars, covers or product mockups, choosing among models such as FLUX or Nano Banana 2.
- Short videos from a photo: Turn a product photo or an illustration into a few seconds of moving video for an ad, a story or a landing page.
- Edit a photo by instruction: Change an existing picture with a sentence, such as "make the background a beach", for product shots or profile pictures.
- Image generator in a web page: Put a "generate" button in your React or Next.js site while the secret key stays on your server.
- Subtitles from recorded speech: Send the sound of a video or a voice note and get the spoken words back as text, ready for subtitles or notes.
- Voice-over for product videos: Have short scripts read aloud by a text to speech model on fal and add the sound to your product or tutorial videos. (idea, not from the official pages)

### How to start
- Install the official client for your language.

```
npm install @fal-ai/client
pip install fal-client
```

- Create a key in the fal dashboard and set it as FAL_KEY on your server.

```
export FAL_KEY="your-api-key-here"
```

- Generate a first image (example from the quick start).

```
import fal_client

result = fal_client.subscribe("fal-ai/flux/schnell", arguments={
    "prompt": "a futuristic cityscape at sunset"
})
print(result["images"][0]["url"])
```


### License
fal is a paid service, and each model has its own license. Most models allow commercial use, while models marked Research only do not; check the model page. You keep the rights to what you send.

### Good to know
- You need a fal account and a key, and you pay with credits bought in advance. When the balance gets too low, the account is locked and calls are refused.
- Bought credits expire 365 days after purchase.
- Links to generated files are public by default and the files are deleted after a while, so copy the ones you need to your own storage.
- A new account runs only 2 jobs at the same time; others wait in line. The limit grows up to 40 as you buy credits.
- Results are not guaranteed to be unique; another customer may get the same or a similar picture.

Checked 2026-11-10 against: https://fal.ai, https://fal.ai/pricing, https://fal.ai/legal/terms-of-service, https://fal.ai/legal/privacy-policy, https://docs.fal.ai/llms.txt, https://fal.ai/docs/_llms/documentation.txt, https://fal.ai/docs/documentation/quickstart.md, https://fal.ai/docs/documentation/model-apis/overview.md, https://fal.ai/docs/documentation/model-apis/faq.md, https://fal.ai/docs/documentation/model-apis/pricing.md, https://fal.ai/docs/documentation/model-apis/concurrency-limits.md, https://fal.ai/docs/documentation/model-apis/media-expiration.md, https://fal.ai/docs/documentation/model-apis/errors.md, https://fal.ai/docs/documentation/model-apis/request-errors.md, https://fal.ai/docs/documentation/model-apis/models.md, https://fal.ai/docs/documentation/model-apis/inference/client-setup.md, https://fal.ai/docs/documentation/model-apis/inference/proxy-setup.md, https://fal.ai/docs/documentation/model-apis/inference/queue.md, https://fal.ai/docs/documentation/model-apis/inference/webhooks.md, https://fal.ai/docs/documentation/model-apis/authentication/key-based.md, https://fal.ai/docs/documentation/setting-up/authentication/index.md, https://fal.ai/docs/documentation/setting-up/mcp.md, https://fal.ai/docs/documentation/setting-up/mcp/claude-code.md, https://fal.ai/docs/api-reference/client-libraries/javascript/index.md, https://fal.ai/docs/api-reference/inference-api/sync/run.md, https://fal.ai/docs/api-reference/inference-api/queue/submit.md, https://registry.npmjs.org/@fal-ai/client/latest, https://registry.npmjs.org/@fal-ai/server-proxy/latest, https://pypi.org/pypi/fal-client/json

### Mistakes to avoid
- Don't: Putting FAL_KEY into React or other browser code, or calling fal.config({ credentials }) in the browser. → Do: Keep the key on the server and point the browser client at a proxy route (@fal-ai/server-proxy) with fal.config({ proxyUrl }). (Browser source is visible to anyone, so the key would leak.)
- Don't: Shipping the proxy route with its default settings. → Do: Set allowedEndpoints to the models you use and allowUnauthorizedRequests to false, with your own isAuthenticated check. (The default proxy forwards calls to every model, even from visitors who are not signed in, on your bill.)
- Don't: Saving the fal.media link in your database as the permanent image. → Do: Download the file and store it in your own storage, or set the retention per request. (Generated files expire and are deleted permanently.)
- Don't: Building the status or result address from the full model id, such as fal-ai/flux/schnell/requests/.... → Do: Use the response_url and status_url from the submit answer (owner and app only). (The docs say that address returns 405.)
- Don't: Using run() for long video jobs and writing your own retry loop for 429. → Do: Use subscribe() or submit() through the queue; it waits for a free slot and retries server-side. (The docs recommend the queue for production; run() retries only up to 10 times on the client.)

### Questions
- Is there a free plan? The docs describe prepaid credits, not a free plan. Free credits and coupons exist for some grants, with expiry from one week to one year.
- Do I pay when a request fails? Not for server errors (500 and above). An invalid input (422) may still be charged if the model already spent GPU time.
- Can I use the generated images in a paid product? Usually yes; each model has its own license. Check that the model page shows the Commercial use badge, not Research only.
- Can I call fal straight from the browser? Only through a small proxy on your server that adds the key; never put the key in browser code.
- How long are my files kept? Generated files at least 7 days by default (you can set the time per request); request inputs and outputs 90 days in the request history, unless you turn that off.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
