Skip to main content
GET
/
v1
/
batches
/
{batch_id}
/
results
Get batch results
curl --request GET \
  --url http://localhost:8080/v1/batches/{batch_id}/results
{
  "batch_id": "<string>",
  "results": [
    {
      "custom_id": "<string>",
      "response": {
        "status_code": 123,
        "request_id": "<string>",
        "body": {}
      },
      "result": {
        "type": "<string>",
        "message": {}
      },
      "error": {
        "code": "<string>",
        "message": "<string>"
      }
    }
  ],
  "has_more": true,
  "next_cursor": "<string>",
  "extra_fields": {
    "request_type": "<string>",
    "provider": "openai",
    "model_requested": "<string>",
    "model_deployment": "<string>",
    "latency": 123,
    "chunk_index": 123,
    "raw_request": {},
    "raw_response": {},
    "cache_debug": {
      "cache_hit": true,
      "cache_id": "<string>",
      "hit_type": "<string>",
      "provider_used": "<string>",
      "model_used": "<string>",
      "input_tokens": 123,
      "threshold": 123,
      "similarity": 123
    }
  }
}

Path Parameters

batch_id
string
required

The ID of the batch

Query Parameters

provider
enum<string>
required

The provider of the batch AI model provider identifier

Available options:
openai,
azure,
anthropic,
bedrock,
cohere,
vertex,
mistral,
ollama,
groq,
sgl,
parasail,
perplexity,
cerebras,
gemini,
openrouter,
elevenlabs,
huggingface,
nebius

Response

Successful response

batch_id
string
results
object[]
has_more
boolean
next_cursor
string
extra_fields
object

Additional fields included in responses