Skip to main content
POST
/
anthropic
/
v1
/
messages
/
batches
Create batch job (Anthropic format)
curl --request POST \
  --url http://localhost:8080/anthropic/v1/messages/batches \
  --header 'Content-Type: application/json' \
  --data '
{
  "requests": [
    {
      "custom_id": "<string>",
      "params": {}
    }
  ]
}
'
{
  "id": "<string>",
  "type": "message_batch",
  "processing_status": "in_progress",
  "request_counts": {
    "processing": 123,
    "succeeded": 123,
    "errored": 123,
    "canceled": 123,
    "expired": 123
  },
  "ended_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "archived_at": "2023-11-07T05:31:56Z",
  "cancel_initiated_at": "2023-11-07T05:31:56Z",
  "results_url": "<string>"
}

Headers

x-model-provider
string

Provider to use (defaults to anthropic)

Body

application/json
requests
object[]
required

Array of batch request items

Response

Successful response

id
string
type
string
default:message_batch
processing_status
enum<string>
Available options:
in_progress,
ended,
canceling
request_counts
object
ended_at
string<date-time> | null
created_at
string<date-time>
expires_at
string<date-time>
archived_at
string<date-time> | null
cancel_initiated_at
string<date-time> | null
results_url
string | null