Anthropic Integration

Upload file (Anthropic format)

Uploads a file. Use x-model-provider header to specify the provider.

post/anthropic/v1/files

Request

Headers

x-model-providerstring

Provider to use (defaults to anthropic)

Request body multipart/form-data

filestring binary required

File to upload (raw file content)

filenamestring

Original filename

purposestring

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

Response

Successful response

idstring
typestring
filenamestring
mime_typestring

MIME type of the file

size_bytesinteger

Size of the file in bytes

created_atstring date-time
downloadableboolean

Changes

No recorded changes to this operation across all 1 revision of this API.