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
BASH
1pip install fal-client
First call
PYTHON
1import fal_client
2
3result = fal_client.subscribe(
4 "fal-ai/happyhorse/v1/text-to-video",
5 arguments={
6 "prompt": "Documentary style interview at night. A barista in a rain jacket leans agains...",
7 "duration": "5s",
8 "resolution": "720p",
9 "aspect_ratio": "16:9",
10 "generate_audio": true,
11 "language": "en"
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