{
 "kind": "api",
 "slug": "fal",
 "path": "apis/fal/",
 "name": "fal",
 "logo": "https://agentgid.com/media/avatars/fal-ai.png",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "Model hosting and inference",
   "apis/inference/"
  ]
 ],
 "lead": "Ready AI models for images, video and audio.",
 "chips": [
  {
   "label": "Model hosting and inference",
   "path": "apis/inference/"
  }
 ],
 "primary": {
  "label": "Copy prompt for your agent",
  "copy": "Add fal image generation to my app with @fal-ai/client at a fixed version: call fal.subscribe on the server with FAL_KEY from .env (or through the @fal-ai/server-proxy route with allowedEndpoints), save the returned image to my own storage, and never put the key in browser code."
 },
 "links": [
  {
   "label": "Website",
   "href": "https://fal.ai"
  },
  {
   "label": "Pricing",
   "href": "https://fal.ai/pricing"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/fal-ai/fal-js"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Paid",
   "status": "info",
   "sub": "from $0.05/second",
   "quote": null,
   "note": "No free tier on the pricing page. As reported on the official pricing page, checked Oct 9, 2026.",
   "src": "https://fal.ai/pricing"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": null,
   "quote": "Each model has its own license.",
   "note": "Allowed for models marked Commercial use on their model page; models marked Research only are non-commercial.",
   "src": "https://fal.ai/docs/documentation/model-apis/faq.md"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "API key, server only",
   "status": "info",
   "sub": "Env var FAL_KEY",
   "quote": "The fal client libraries read your key automatically from the FAL_KEY environment variable, so once it is set, every SDK call and CLI command authenticates without extra configuration.",
   "note": "API key in the header Authorization: Key <FAL_KEY>; keys are created in the dashboard with a permission preset (API for calling models)",
   "src": "https://fal.ai/docs/documentation/setting-up/authentication/index.md"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "info",
   "sub": "llms.txt · SDK",
   "quote": "This adds the connection across your projects.",
   "note": " Our agent check: 3 of 6 (Nov 13, 2026).",
   "src": "https://fal.ai/docs/documentation/setting-up/mcp/claude-code.md"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Oct 9, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What fal does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "list",
     "items": [
      "fal is one of 42 APIs in the Model hosting and inference category on AgentGid.",
      "It is not among the 13 that can be started for free.",
      "6 of them ship an official MCP server; fal does not.",
      "Its official SDK is the 6th most downloaded in the category (2.4M a week)."
     ],
     "muted": true
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Pictures from a text prompt",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Short videos from a photo",
       "text": "Turn a product photo or an illustration into a few seconds of moving video for an ad, a story or a landing page.",
       "idea": false
      },
      {
       "title": "Edit a photo by instruction",
       "text": "Change an existing picture with a sentence, such as \"make the background a beach\", for product shots or profile pictures.",
       "idea": false
      },
      {
       "title": "Image generator in a web page",
       "text": "Put a \"generate\" button in your React or Next.js site while the secret key stays on your server.",
       "idea": false
      },
      {
       "title": "Subtitles from recorded speech",
       "text": "Send the sound of a video or a voice note and get the spoken words back as text, ready for subtitles or notes.",
       "idea": false
      },
      {
       "title": "Voice-over for product videos",
       "text": "Have short scripts read aloud by a text to speech model on fal and add the sound to your product or tutorial videos.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "fal popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "2.3M",
       "l": "SDK downloads a week",
       "d": "+25.6% on the 4-week average",
       "up": true
      },
      {
       "n": "25",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "190",
       "l": "GitHub stars, fal-ai/fal-js"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "None"
      },
      {
       "l": "Cheapest plan",
       "v": "No monthly plan"
      },
      {
       "l": "Usage price",
       "v": "Varies by model (e.g., $0.05/second for H3 Max video, $0.08/image for Nano Banana 2)"
      },
      {
       "l": "Plans",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "What one action costs"
    },
    {
     "t": "table",
     "head": [
      "Action",
      "Price"
     ],
     "num": true,
     "rows": [
      [
       "1 image, FLUX.1 [schnell] (per megapixel)",
       "$0.003"
      ],
      [
       "1 image, Nano Banana 2",
       "$0.08"
      ],
      [
       "1 second of video, Kling Video v3 Pro image to video",
       "$0.14"
      ],
      [
       "1 second of video, MiniMax H3 Max reference to video",
       "$0.05"
      ],
      [
       "1,000 characters of speech, ElevenLabs Turbo v2.5 on fal",
       "$0.05"
      ]
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Oct 9, 2026. Prices change: confirm before you buy.",
     "link": "fal.ai/pricing",
     "href": "https://fal.ai/pricing"
    }
   ]
  },
  {
   "id": "limits",
   "nav": null,
   "spy_as": "pricing",
   "h2": "Limits",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "New accounts",
       "v": "2 requests processed at the same time; extra requests wait in the queue",
       "src": "https://fal.ai/docs/documentation/model-apis/faq.md"
      },
      {
       "l": "Self-serve (after buying credits)",
       "v": "Up to 40 requests at the same time, raised automatically by credit purchases in the last four weeks",
       "src": "https://fal.ai/docs/documentation/model-apis/concurrency-limits.md"
      },
      {
       "l": "All plans",
       "v": "Generated files stay on the fal file host for at least 7 days by default",
       "src": "https://fal.ai/docs/documentation/model-apis/faq.md"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official docs.",
     "link": "fal.ai/docs/documentation/model-apis/faq.md",
     "href": "https://fal.ai/docs/documentation/model-apis/faq.md"
    }
   ]
  },
  {
   "id": "access",
   "nav": "Access and terms",
   "h2": "Key and access",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "How it signs in",
       "v": "API key in the header Authorization: Key <FAL_KEY>; keys are created in the dashboard with a permission preset (API for calling models)"
      },
      {
       "l": "Environment variable",
       "v": "FAL_KEY",
       "code": true
      },
      {
       "l": "Safe in browser code",
       "v": "No, keep it on your server",
       "status": "no"
      },
      {
       "l": "Card at sign-up",
       "v": "Not stated on the pages we read"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Steps only a person can do"
    },
    {
     "t": "list",
     "items": [
      "Sign up for fal, buy credits, and create a key with the API preset in the dashboard. Put it in .env as FAL_KEY (kept out of git); the client reads it automatically.",
      "Pick the models to use and check each model page for the Commercial use badge and its price. Hard-code those model ids and list them in the proxy's allowedEndpoints.",
      "For zero data retention, ask fal sales to confirm coverage for your models. Send X-Fal-Store-IO 0 and a short file lifetime on each request."
     ]
    }
   ]
  },
  {
   "id": "terms",
   "nav": null,
   "spy_as": "access",
   "h2": "Commercial use and your data",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "With conditions",
       "status": "cond",
       "sub": "Allowed for models marked Commercial use on their model page; models marked Research only are non-commercial.",
       "quote": "Each model has its own license.",
       "src": "https://fal.ai/docs/documentation/model-apis/faq.md"
      },
      {
       "l": "To train your own AI",
       "v": "With conditions",
       "status": "cond",
       "sub": "You may not use third-party models or their outputs to build, fine-tune or train AI models that compete with those models.",
       "quote": "use or access any Third-Party Materials or any outputs derived from such materials to develop, modify, fine-tune, or improve any products or services that compete with those Third Party Materials, including to develop, fine-tune, or train any artificial intelligence or machine learning algorithms or models;",
       "src": "https://fal.ai/legal/terms-of-service"
      },
      {
       "l": "client-work",
       "v": "With conditions",
       "status": "cond",
       "sub": "Your team members must accept the privacy policy and terms; the per-model license applies to the client's use too.",
       "quote": "You further agree that: (i) You are responsible for ensuring that each of your team members accepts Company's Privacy Policy and agrees to comply with these Terms of Service, including but not limited to the Acceptable Use Policy incorporated into these Terms of Service.",
       "src": "https://fal.ai/legal/terms-of-service"
      },
      {
       "l": "In monetized videos",
       "v": "With conditions",
       "status": "cond",
       "sub": "The docs do not name YouTube; a monetized video is commercial use, so use models marked Commercial use, and results may not be unique to you.",
       "quote": "Most models on fal are available for commercial use and are marked with a Commercial use badge on the model page.",
       "src": "https://fal.ai/docs/documentation/model-apis/faq.md"
      }
     ]
    }
   ]
  },
  {
   "id": "errors",
   "nav": null,
   "spy_as": "access",
   "h2": "Errors to handle",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": 401,
       "v": "The key is not valid, or the model needs authentication.",
       "sub": "Check FAL_KEY on the server; create a new key if it expired or was revoked."
      },
      {
       "l": 403,
       "v": "The key may not use this model, or the account is locked (credits below the lock threshold) or hit a spending limit.",
       "sub": "Top up credits in the billing dashboard or use a key with the right permissions; do not retry."
      },
      {
       "l": "422 content_policy_violation",
       "v": "The input was flagged by the content filter of the model.",
       "sub": "Change the prompt or image; do not retry the same input."
      },
      {
       "l": "429 concurrent_requests_limit",
       "v": "The direct (synchronous) call hit your limit of requests at the same time; the queue never returns it.",
       "sub": "Retry with backoff after one of your requests completes, or use subscribe/submit through the queue."
      },
      {
       "l": "503 / 504 (runner and timeout errors)",
       "v": "No runner was free, the runner disconnected, or the job took too long.",
       "sub": "Retry with backoff; the queue already retries such failures up to 10 times. Server errors are not charged."
      }
     ]
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "3 of 6: llms.txt yes, OpenAPI no, SDK yes, MCP no, status page no, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "fal MCP server (remote, OAuth sign-in)",
       "sub": "claude mcp add --transport http --scope user fal https://mcp.fal.ai/mcp-relay"
      },
      {
       "l": "npm",
       "v": "npm install @fal-ai/client",
       "code": true
      }
     ]
    },
    {
     "t": "h3",
     "text": "Instructions in its docs to check first"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "The docs say",
       "v": "“curl -fsSL https://fal.ai/mcp/install.sh | bash”",
       "sub": "Ask the person first. It runs a remote script that adds fal to every coding agent it finds on the computer."
      },
      {
       "l": "The docs say",
       "v": "“The agent then uses its own MCP command, which it can run without approval for an install script”",
       "sub": "A message written for agents to paste and run; still ask the person before adding a server that signs in to their paid account."
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "fal",
       "me": true,
       "facts": [
        "from $0.05/second",
        "No free tier"
       ]
      },
      {
       "name": "Replicate",
       "why": "Pick Replicate when you also want to run or deploy community models with the same pay-per-use model; it is another hosted catalog of image, video and audio models.",
       "path": "apis/replicate/",
       "facts": [
        "See its page",
        "No free tier"
       ]
      },
      {
       "name": "Gemini API",
       "why": "Pick the Gemini API when you mainly need Google's models for text and images from one provider, with a free tier to start.",
       "path": "apis/google-gemini-api/",
       "facts": [
        "Free plan",
        "Free tier"
       ]
      },
      {
       "name": "OpenAI API",
       "why": "Pick the OpenAI API when you want GPT text models and OpenAI's own image model from one account.",
       "path": "apis/openai-api/",
       "facts": [
        "from $0.1",
        "No free tier"
       ]
      }
     ],
     "more": "All model hosting and inference APIs",
     "more_path": "apis/inference/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Add fal image generation to my app with @fal-ai/client at a fixed version: call fal.subscribe on the server with FAL_KEY from .env (or through the @fal-ai/server-proxy route with allowedEndpoints), save the returned image to my own storage, and never put the key in browser code."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install the official client for your language.",
       "code": "npm install @fal-ai/client\npip install fal-client",
       "src": "https://fal.ai/docs/documentation/quickstart.md"
      },
      {
       "text": "Create a key in the fal dashboard and set it as FAL_KEY on your server.",
       "code": "export FAL_KEY=\"your-api-key-here\"",
       "src": "https://fal.ai/docs/documentation/quickstart.md"
      },
      {
       "text": "Generate a first image (example from the quick start).",
       "code": "import fal_client\n\nresult = fal_client.subscribe(\"fal-ai/flux/schnell\", arguments={\n    \"prompt\": \"a futuristic cityscape at sunset\"\n})\nprint(result[\"images\"][0][\"url\"])",
       "src": "https://fal.ai/docs/documentation/model-apis/overview.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "First request"
    },
    {
     "t": "tabs",
     "label": "First request",
     "items": [
      {
       "tab": "Request",
       "code": "curl -X POST https://queue.fal.run/fal-ai/flux/schnell \\\n  -H \"Authorization: Key $FAL_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"prompt\": \"a sunset over mountains\"}'",
       "intro": "The queue answers at once with a request id; fetch the result from response_url when the status is COMPLETED. The result holds the image link."
      },
      {
       "tab": "Response",
       "code": "{\n  \"request_id\": \"764cabcf-b745-4b3e-ae38-1200304cf45b\",\n  \"response_url\": \"https://queue.fal.run/fal-ai/flux/requests/764cabcf...\",\n  \"status_url\": \"https://queue.fal.run/fal-ai/flux/requests/764cabcf.../status\",\n  \"cancel_url\": \"https://queue.fal.run/fal-ai/flux/requests/764cabcf.../cancel\",\n  \"queue_position\": 0\n}"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Putting FAL_KEY into React or other browser code, or calling fal.config({ credentials }) in the browser.",
       "fix": "Keep the key on the server and point the browser client at a proxy route (@fal-ai/server-proxy) with fal.config({ proxyUrl }).",
       "why": "Browser source is visible to anyone, so the key would leak."
      },
      {
       "dont": "Shipping the proxy route with its default settings.",
       "fix": "Set allowedEndpoints to the models you use and allowUnauthorizedRequests to false, with your own isAuthenticated check.",
       "why": "The default proxy forwards calls to every model, even from visitors who are not signed in, on your bill."
      },
      {
       "dont": "Saving the fal.media link in your database as the permanent image.",
       "fix": "Download the file and store it in your own storage, or set the retention per request.",
       "why": "Generated files expire and are deleted permanently."
      },
      {
       "dont": "Building the status or result address from the full model id, such as fal-ai/flux/schnell/requests/....",
       "fix": "Use the response_url and status_url from the submit answer (owner and app only).",
       "why": "The docs say that address returns 405."
      },
      {
       "dont": "Using run() for long video jobs and writing your own retry loop for 429.",
       "fix": "Use subscribe() or submit() through the queue; it waits for a free slot and retries server-side.",
       "why": "The docs recommend the queue for production; run() retries only up to 10 times on the client."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Is there a free plan?",
       "a": "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.",
       "evidence": {
        "url": "https://fal.ai/docs/documentation/model-apis/faq.md",
        "quote": "Free credits and coupons have variable expiration depending on the specific grant, ranging from 1 week to 1 year."
       }
      },
      {
       "q": "Do I pay when a request fails?",
       "a": "Not for server errors (500 and above). An invalid input (422) may still be charged if the model already spent GPU time.",
       "evidence": {
        "url": "https://fal.ai/docs/documentation/model-apis/faq.md",
        "quote": "Client-side errors like invalid inputs (HTTP 422) may still be charged if a runner spent GPU time processing the request before the error was detected."
       }
      },
      {
       "q": "Can I use the generated images in a paid product?",
       "a": "Usually yes; each model has its own license. Check that the model page shows the Commercial use badge, not Research only.",
       "evidence": {
        "url": "https://fal.ai/docs/documentation/model-apis/faq.md",
        "quote": "Check the model's page for its specific license."
       }
      },
      {
       "q": "Can I call fal straight from the browser?",
       "a": "Only through a small proxy on your server that adds the key; never put the key in browser code.",
       "evidence": {
        "url": "https://fal.ai/docs/documentation/model-apis/faq.md",
        "quote": "Set up a server-side proxy that forwards requests to fal from your backend, keeping your key secure."
       }
      },
      {
       "q": "How long are my files kept?",
       "a": "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.",
       "evidence": {
        "url": "https://fal.ai/docs/documentation/model-apis/media-expiration.md",
        "quote": "Request inputs and outputs are stored in the platform for 90 days by default."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "fal"
  ],
  [
   "Category",
   "Model hosting and inference"
  ],
  [
   "Price",
   "from $0.05/second"
  ],
  [
   "Official SDK",
   "npm @fal-ai/client"
  ],
  [
   "Latest SDK",
   "1.10.1 on npm"
  ],
  [
   "Agent check",
   "3 of 6"
  ],
  [
   "Pricing checked",
   "Oct 9, 2026"
  ]
 ],
 "good": [
  "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."
 ],
 "checked_line": "Read by AgentGid from 29 official pages, card checked Nov 10, 2026; usage numbers update daily."
}