/api/orgs/{org_id}/trace-tags/projectionProject a check's monthly AI checks
Before you save an AI check, how many AI checks it would make in a month at your current traffic (the last 7 days, scaled to 30), against your plan's included checks and what is left this month, and a sample rate that fits when it does not. Counts come from hourly rollups. Rule checks are free and need no projection. Org admins and the organization's own key call it.
Authentication: Bearer API key in the Authorization header
Path parameters
org_idstringrequiredYour organization id (uuid).
GET /api/whoamireturns it.
Request body
scopeenumrequiredfiltersobjectThe same filters a check takes,
sample_rateincluded.filters
api_key_idsarray<string>modelsarray<string>request_tagsarray<string>sample_ratenumber
Responses
200The projection.
Response
window_daysintegerThe recent traffic the projection reads, scaled to a 30-day month.
judgments_in_windowintegerMatching requests (or sessions, for a session check) in the window.
lower_boundbooleanThe count stopped at a cap, so the projection is at least this.
projected_per_month_at_full_rateintegerprojected_per_monthintegerAt the check's sample rate.
sample_ratenumberplan_billingbooleanincluded_per_monthinteger | nullused_this_monthintegerremaining_this_monthinteger | nullIncluded checks left this month.
nullwithout an allowance.suggested_sample_ratenumber | nullA sample rate whose projection fits the included checks left.
nullwhen it already fits.
401Missing, unknown or revoked API key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
403The key is valid but may not perform this action (for example an inference key on a provisioning-key route, or a feature outside your plan).
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
404The resource does not exist or belongs to another organization.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
422The body or query failed validation.
Response
detailarray<object>requireddetail
typestringlocarray<string | integer>msgstring
503This deployment has no score store (
tags_unavailable).Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
Request
curl -X POST 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/trace-tags/projection' \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"scope": "llm_call",
"filters": {
"models": [
"gpt-6-luna"
],
"sample_rate": 1
}
}'Response
{
"window_days": 7,
"judgments_in_window": 9334,
"lower_bound": false,
"projected_per_month_at_full_rate": 40003,
"projected_per_month": 40003,
"sample_rate": 1,
"plan_billing": true,
"included_per_month": 6500,
"used_this_month": 2400,
"remaining_this_month": 4100,
"suggested_sample_rate": 0.1
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/trace-tags/projection