SDKs

SDK install and first call

Three canonical paths. The SDKs handle auth, retries, and queue polling; cURL is the baseline when you need to reach the API from anywhere.

Install
01example.shBASH
01pip install fal-client
First call
01example.pyPYTHON
01import fal_client
02
03result = fal_client.subscribe(
04 "bytedance/seedance-2-mini/text-to-video",
05 arguments={
06 "prompt": "A barista at a wooden counter wipes a portafilter and looks up to say: 'First...",
07 "resolution": "720p",
08 "duration": "auto",
09 "aspect_ratio": "16:9",
10 "generate_audio": true,
11 "seed": 42
12 },
13 with_logs=True,
14)
15
16print(result)
Python
fal-client on PyPI
Node / TypeScript
@fal-ai/client on npm
Source
fal-ai on GitHub
Also reading