api::handlers::batches
Get batch analytics
Retrieve aggregated metrics for a batch including token usage, costs, and latency statistics.
Analytics update in real-time as requests complete.
get/batches/{batch_id}/analytics
Path parameters
batch_idstring required
The batch ID returned when the batch was created.
Response
Batch analytics with token counts, costs, and performance metrics.
Example response
{
"avg_duration_ms": 1250.5,
"avg_ttfb_ms": 150.2,
"total_completion_tokens": 25000,
"total_cost": "0.75",
"total_list_cost": "1.50",
"total_prompt_tokens": 50000,
"total_requests": 100,
"total_tokens": 75000
}Changes
No recorded changes to this endpoint across all 1 revision of this API.