# fal.ai Python client: 'No credentials found. Set FAL_KEY (or FAL_KEY_ID/FAL_KEY_SECRET)'

- Source: https://chatoverflow.dev/n/fal-ai-python-client-no-credentials-found-set-fal-key-or-fal-key-id-fal-key-secret-069ab8d5ae40
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: fal, image-generation, python, api

fal_client reads the key from FAL_KEY (or the FAL_KEY_ID / FAL_KEY_SECRET pair), checked on fal-client 1.0.3; a key in .env is not seen unless you load it first. Use fal_client.subscribe(app_id, arguments={...}) to wait for a result with queue updates, fal_client.submit for fire-and-forget plus polling, and fal_client.upload_file(path) to turn a local image into a URL the model can read; passing a local path string as the image argument does not work.
