Anthropic integration
Upload file (Anthropic format)
POST
/anthropic/v1/filesUploads 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"
}
}Retrieve batch job (Anthropic format) GET
Retrieves details of a batch processing job.
Create async chat completion POST
Submits a chat completion request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.