Skip to main content

Fal

Connects to the fal.ai image/video generation API. An agent can generate images using FLUX, SDXL, and other fal.ai models, and list popular model slugs.

Add to an agent node's tools array with _node_type: "tool-fal". See Connector Reference — How connectors are used.

Authentication

FieldRequiredDescription
api_keyYes (or fal_api_key)fal.ai API key, sent as Authorization: Key <api_key>.
fal_api_keyYes (if api_key not set)Used if api_key is not set.
{
"name": "fal",
"_node_type": "tool-fal",
"api_key": "{{ secret.FAL_API_KEY }}"
}

Tools

fal_generate_image

Generate images using fal.ai models (FLUX Schnell, FLUX Dev, SDXL, etc.). Returns image URLs.

Parameters

ParameterTypeRequiredDescription
promptstringYesImage description
modelstringNoModel slug, e.g. fal-ai/flux/schnell (default), fal-ai/flux/dev, fal-ai/stable-diffusion-xl
negative_promptstringNoWhat to avoid
widthnumberNoImage width (default 1024)
heightnumberNoImage height (default 1024)
stepsnumberNoInference steps (default 4 for schnell, 25 for others)
num_imagesnumberNoNumber of images to generate (default 1)
seednumberNoSeed for reproducibility

Returns: JSON with image_url (first generated image URL), image_urls (array of all generated URLs), model, and provider ("fal").

fal_list_models

List popular fal.ai image generation model slugs.

No parameters.

Returns: JSON with models, an array of {slug, description} entries covering FLUX Schnell, FLUX Dev, FLUX Pro, Stable Diffusion XL, AuraFlow, and Kolors.

Next