cURL
curl --request GET \ --url https://api.fal.ai/v1/serverless/files/file/{file} \ --header 'Authorization: <api-key>'
{ "error": { "type": "authorization_error", "message": "Authentication required" } }
Downloads a file by its path. Proxies the underlying storage response.
API key must be prefixed with "Key ", e.g. Authorization: Key YOUR_API_KEY
Path of the file to download
"datasets/images/cat.jpg"
File stream
Was this page helpful?