Download a file
Download a file by providing the file owner, access expiry, and a valid signature.
Example cURL request:
curl -X GET "https://api.replicate.com/v1/files/cneqzikepnug6xezperrr4z55o/download?expiry=1708515345&owner=mattt&signature=zuoghqlrcnw8YHywkpaXQlHsVhWen%2FDZ4aal76dLiOo%3D"
get/files/{file_id}/download
Path parameters
file_idstring required
The ID of the file to download
Query parameters
ownerstring required
The username of the user or organization that uploaded the file
expiryinteger required
A Unix timestamp with expiration date of this download URL
signaturestring required
A base64-encoded HMAC-SHA256 checksum of the string '{owner} {id} {expiry}' generated with the Files API signing secret
Response
Success