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
Take 01 / example.shBASH
1pip install fal-client
First call
Take 01 / example.pyPYTHON
1import fal_client
2
3result = fal_client.subscribe(
4 "bytedance/seedance-2.0/text-to-video",
5 arguments={
6 "prompt": "A chef in a professional kitchen at dusk ties an apron in front of a pass win...",
7 "duration": "5",
8 "resolution": "720p",
9 "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