Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.
VariableRequiredDescription
FAL_KEYYesfal API key (sent as ‘Authorization: Key <FAL_KEY>’) Docs.

Setup

  1. Create a fal account: Sign up at https://fal.ai - new accounts get free credits to try models before adding billing.
  2. Create an API key: Open https://fal.ai/dashboard/keys, create a key, and copy it immediately - it is only shown once.
  3. Store the key: Add it to your .env file as FAL_KEY=… - requests authenticate with the header ‘Authorization: Key <FAL_KEY>’.
  4. Pick a model and verify: Browse https://fal.ai/models and copy a model endpoint ID (e.g. fal-ai/flux/schnell). Pass its segments as app_owner=fal-ai, app_id=flux, app_variant=schnell to the Run Model tool with a small input payload.
  • Each model has its own input schema - check the model’s API tab on fal.ai/models for required fields
  • Use the queue tools (submit → status → result) for slow models like video generation; synchronous fal.run requests can time out
  • Queue status/result/cancel URLs use the base app ID without the variant segment (fal returns ready-made status_url and response_url in the submit response)
  • Model runs are billed per inference - check the model page for pricing
Provider API reference: https://fal.ai/docs

Tools

ToolAccessDescription
Run ModelWriteRun a fal model synchronously and wait for the result (best for fast models; billed per run). The model endpoint ID is split into owner / app / variant segments, e.g. fal-ai/flux/schnell
Submit Queue RequestWriteSubmit a request to the fal queue and return immediately with a request_id (billed per run)
Get Queue StatusReadCheck the status of a queued request (IN_QUEUE, IN_PROGRESS, or COMPLETED). Use the base app ID without the variant segment, matching the status_url returned at submit time
Get Queue ResultReadFetch the result of a completed queue request. Use the base app ID without the variant segment, matching the response_url returned at submit time
Cancel Queue RequestWriteCancel a queued request that has not started running yet

Example prompts

  • Run the fal-ai/flux/schnell model on fal with a prompt I provide and show me the resulting image URL.
  • Submit a request to a fal model via the queue, then poll its status and fetch the result when it completes.