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
$cat example.sh
BASH
1pip install fal-client
First call
$cat example.py
PYTHON
1import fal_client23result = fal_client.subscribe(4 "xai/grok-imagine-video/text-to-video",5 arguments={6 "prompt": "Dusk on a Brooklyn rooftop, string lights flickering. A woman in a denim jack...",7 "duration": 6,8 "resolution": "720p",9 "aspect_ratio": "16:9"10 },11 with_logs=True,12)1314print(result)
Python
fal-client on PyPI
Node / TypeScript
@fal-ai/client on npm
Source
fal-ai on GitHub