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_client23result = fal_client.subscribe(4 "fal-ai/kling-video/v3/pro/text-to-video",5 arguments={6 "prompt": "Three-shot sequence. Shot one: wide establishing on a rain-soaked Tokyo alley...",7 "duration": 5,8 "aspect_ratio": "16:9",9 "resolution": "1080p",10 "cfg_scale": 0.5,11 "generate_audio": true12 },13 with_logs=True,14)1516print(result)
Python
fal-client on PyPI
Node / TypeScript
@fal-ai/client on npm
Source
fal-ai on GitHub