For the complete documentation index, see llms.txt. This page is also available as Markdown.

Batches

List Batches

get

List batches for a provider.

Non-master keys only see batches they own in their own workspace (plus legacy batches without an ownership marker, or without a recorded workspace); the page is filtered after the provider call, so a page may contain fewer than limit items.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
providerstringRequired
afterstring · nullableOptional
limitinteger · nullableOptional
Responses
200

Successful Response

application/json
anyOptional
get/api/v1/batches
GET /api/v1/batches?provider=text HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*

No content

Create Batch

post

Create a batch of LLM requests for asynchronous processing.

Authentication modes:

  • Master key + user field: Use specified user (must exist)

  • API key + user field: Use specified user (must exist)

  • API key without user field: Use the shared "default" user

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body
completion_windowstringOptionalDefault: 24h
modelstringRequired
userstring · nullableOptional
Responses
200

Successful Response

application/json
anyOptional
post/api/v1/batches
POST /api/v1/batches HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 182

{
  "completion_window": "24h",
  "metadata": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "model": "text",
  "requests": [
    {
      "body": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "custom_id": "text"
    }
  ],
  "user": "text"
}

No content

Retrieve Batch

get

Retrieve the status of a batch.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
batch_idstringRequired
Query parameters
providerstringRequired
Responses
200

Successful Response

application/json
anyOptional
get/api/v1/batches/{batch_id}
GET /api/v1/batches/{batch_id}?provider=text HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*

No content

Cancel Batch

post

Cancel a batch.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
batch_idstringRequired
Query parameters
providerstringRequired
Responses
200

Successful Response

application/json
anyOptional
post/api/v1/batches/{batch_id}/cancel
POST /api/v1/batches/{batch_id}/cancel?provider=text HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*

No content

Retrieve Batch Results

get

Retrieve the results of a completed batch.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
batch_idstringRequired
Query parameters
providerstringRequired
Responses
200

Successful Response

application/json
anyOptional
get/api/v1/batches/{batch_id}/results
GET /api/v1/batches/{batch_id}/results?provider=text HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*

No content

Last updated

Was this helpful?