Anthropic integration
Create batch job (Anthropic format)
POST
/anthropic/v1/messages/batchesCreates a batch processing job using Anthropic format. Use x-model-provider header to specify the provider.
Header Parameters
x-model-provider?string
Provider to use (defaults to anthropic)
Request Body
application/json
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/messages/batches" \ -H "Content-Type: application/json" \ -d '{ "requests": [ { "custom_id": "string", "params": {} } ] }'{
"id": "string",
"type": "message_batch",
"processing_status": "in_progress",
"request_counts": {
"processing": 0,
"succeeded": 0,
"errored": 0,
"canceled": 0,
"expired": 0
},
"ended_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"archived_at": "2019-08-24T14:15:22Z",
"cancel_initiated_at": "2019-08-24T14:15:22Z",
"results_url": "string"
}{
"type": "error",
"error": {
"type": "string",
"message": "string"
}
}{
"type": "error",
"error": {
"type": "string",
"message": "string"
}
}