Try Bifrost Enterprise free for 14 days. Explore now
cURL
curl --request POST \ --url http://localhost:8080/anthropic/v1/files \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form 'filename=<string>' \ --form 'purpose=<string>'
{ "id": "<string>", "type": "file", "filename": "<string>", "mime_type": "<string>", "size_bytes": 123, "created_at": "2023-11-07T05:31:56Z", "downloadable": true }
Uploads a file. Use x-model-provider header to specify the provider.
Provider to use (defaults to anthropic)
File to upload (raw file content)
Original filename
Purpose of the file (e.g., "batch")
Successful response
MIME type of the file
Size of the file in bytes
Was this page helpful?