Anthropic integration

Upload file (Anthropic format)

POST/anthropic/v1/files

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

Header Parameters

x-model-provider?string

Provider to use (defaults to anthropic)

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "http://localhost:8080/anthropic/v1/files" \  -F file="string"
{
  "id": "string",
  "type": "file",
  "filename": "string",
  "mime_type": "string",
  "size_bytes": 0,
  "created_at": "2019-08-24T14:15:22Z",
  "downloadable": true
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string"
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string"
  }
}