Install an SDK
Python, TypeScript and Rust packages, and when to use plain cURL.
Each SDK gives you typed results, automatic retries with idempotency keys, resumable uploads, safe downloads and clear errors. The API address is built in: you only supply your key.
Install
# Python 3.10 or newer
pip install falcore
# optional extras: WebSocket chat, bundled ffmpeg for mixing
pip install "falcore[ws]" "falcore[mix]"Create a client
from falcore import Catalyst
catalyst = Catalyst("fal_live_...") # or Catalyst() with FALCORE_API_KEY set| Setting | Default | Notes |
|---|---|---|
| API key | FALCORE_API_KEY | Pass it to the constructor, or set the variable. A missing key fails at construction, before any request. |
| Base URL | https://api.falcorelabs.com | Only for staging or self-hosting. A trailing /v1 is accepted. |
| Timeout | 30 s for reads, 10 min for generation and streams | Overridable per client and per call. |
| Retries | 2 | Connection errors, 429 and 5xx; never out-of-PLUMES. |
Note
You never configure the API address. Every SDK already points at the Falcore API, and FALCORE_BASE_URL (or base_url) exists only for staging and self-hosting. Leave it unset. The only setting you need is your key.
Only need one product?
Wave and Composer are small clients for just sound or just music. In Rust they are WaveClient and ComposerClient.
from falcore import Wave, Composer
wave = Wave("fal_live_...")
composer = Composer("fal_live_...")Note
Use a fal_test_ key while you build. It never spends your balance.