Skip to main content
POST
/
anthropic
/
v1
/
files
Error
A valid request URL is required to generate request examples
{
  "id": "<string>",
  "type": "file",
  "filename": "<string>",
  "mime_type": "<string>",
  "size_bytes": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "downloadable": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.getbifrost.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your provider API key or Bifrost authentication token. Virtual keys (prefixed with sk-bf-) can also be passed here.

Headers

x-model-provider
string

Provider to use (defaults to anthropic)

Body

multipart/form-data
file
file
required

File to upload (raw file content)

filename
string

Original filename

purpose
string

Purpose of the file (e.g., "batch")

Response

Successful response

id
string
type
string
default:file
filename
string
mime_type
string

MIME type of the file

size_bytes
integer

Size of the file in bytes

created_at
string<date-time>
downloadable
boolean