Get Cost Breakdown
Get LLM cost breakdown by model, provider, evaluator, service, or category.
In: header
Query Parameters
Project ID for tenant isolation
uuidGroup by: model, provider, evaluator, service, category
"model""last 30 days"Optional workspace ID for authorization. When omitted, the service resolves the workspace from the authenticated context. Requests with ambiguous or conflicting authenticated contexts are rejected.
uuidResponse Body
application/json
application/json
curl -X get "https://prisma.your-company.com/api/v1/analytics/costs/breakdown?project_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"annotation": {
"dimensions": {
"Traces.projectId": {}
},
"measures": {
"Traces.count": {}
}
},
"data": [
{
"Traces.count": 42,
"Traces.projectId": "550e8400-e29b-41d4-a716-446655440000"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Get Classification Metrics
Get classification/evaluation metrics. Returns metrics grouped by evaluator and label with optional evaluator filtering.
Export Data
Accept an analytics-data export request and dispatch it asynchronously. Creates a pending Job + pre-materialized file row, publishes a trigger message to the analytics-export topic, and returns a 202 with the polling URL so the worker can stream the file in the background.

