Get a file
Get the details of a file.
Example cURL request:
curl -s \
-H "Authorization: Token $REPLICATE_API_TOKEN" \
https://api.replicate.com/v1/files/cneqzikepnug6xezperrr4z55o
get/files/{file_id}
Path parameters
file_idstring required
The ID of the file to get
Response
Success
Example response
{
"checksums": {
"sha256": "f047f8e745f9996c6e386064e06cb2007b8e6bc0a968a334fc0d2b2d64012066"
},
"content_type": "application/zip",
"created_at": "2024-02-21T12:54:18.578761Z",
"expires_at": "2024-02-21T13:54:18.578761Z",
"id": "cneqzikepnug6xezperrr4z55o",
"metadata": {
"customer_reference_id": 123
},
"size": 69420,
"urls": {
"get": "https://api.replicate.com/v1/files/cneqzikepnug6xezperrr4z55o"
}
}