upload
Upload a file to fal.ai CDN and receive a URL to use as input for AI model generation requests.
Instructions
Upload a file to fal.ai CDN for use with models. Returns a URL that can be used as input to generation requests.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the file to upload | |
| content_type | No | Optional MIME type (auto-detected if not provided) |