Skip to main content
POST
Error

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