Graphrt

fal.ai

Run any fal model through the queue (waits, saves media), check, fetch or cancel requests, search models and prices (paid per run)

Beta v0.1.0 Node.js 7 actions
Use in Graphrt Desktop

About

A Graphrt plugin for fal.ai: run any fal model (FLUX, Recraft, Kling, Veo, Whisper, ...) through the Queue API, wait for the result and save the media files, check, fetch or cancel queued requests, and search models and their prices with the Platform API. Built with the declarative REST layer.

What it can do

  • run_model: submit to queue.fal.run/<model_id> (sub-paths such as fal-ai/flux-pro/v1.1-ultra work), poll status_url until COMPLETED, fetch response_url, and download the media URLs. wait: false returns the request_id and URLs at once.
  • get_request_status, get_request_result, cancel_request: follow up on a request by owner, app and request_id (the model id without its sub-path: fal-ai + flux for fal-ai/flux/dev).
  • search_models: free-text, category or endpoint-id lookup, optionally with each model's OpenAPI input schema.
  • get_pricing, estimate_cost: unit prices and cost estimates for your account (free).

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Run model fal-ai.run_model
  • Get request status fal-ai.get_request_status
  • Get request result fal-ai.get_request_result
  • Cancel request fal-ai.cancel_request
  • Search models fal-ai.search_models
  • Get pricing fal-ai.get_pricing
  • Estimate cost fal-ai.estimate_cost

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • FAL_KEY Required
    API key from <https://fal.ai/dashboard/keys> with the API preset (sent as Authorization: Key <key>)
  • FAL_AI_OUTPUT_DIR For files
    Absolute directory where result media are saved. Unset: nothing is downloaded and the result keeps fal's URLs, which expire
  • FAL_AI_EXTRA_DOWNLOAD_HOSTS Optional
    Comma-separated extra hosts media may be downloaded from (exact host names), for models that return files outside fal's CDN

How to use it

In Graphrt Desktop

  1. Open Plugins and search for fal.ai.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install fal-ai
workflow.yaml
- id: image
  type: fal-ai.run_model
  model_id: fal-ai/flux/schnell
  input: { prompt: "a watercolor fox in the snow", image_size: landscape_4_3, num_images: 1 }
- id: answer
  type: answer
  answer: "Saved {{#image.data.saved_files.0.path#}}"
Plugins in the docs