Skip to main content
GET
/
serverless
/
files
/
file
/
{file}
Download file
curl --request GET \
  --url https://api.fal.ai/v1/serverless/files/file/{file} \
  --header 'Authorization: <api-key>'
{
  "error": {
    "type": "authorization_error",
    "message": "Authentication required"
  }
}

Authorizations

Authorization
string
header
required

API key must be prefixed with "Key ", e.g. Authorization: Key YOUR_API_KEY

Path Parameters

file
string
required

Path of the file to download

Example:

"datasets/images/cat.jpg"

Response

File stream