One API key, one POST endpoint — or wrap it with a zero-dependency SDK.Cost is priced with the price book in effect when each call happened, so historical bills stay reproducible forever.
POST /v1/eventsAfter signing up, open the API Key page and create one. Keys look like vc_live_xxxxxxxx….The plaintext is shown once; the server stores only its sha256.
The fields match OpenAI / Anthropic's usage shape, so you can forward it as-is.
curl -X POST https://your-host/v1/events \
-H "Authorization: Bearer vc_live_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"events": [{
"id": "req_abc123",
"occurredAt": "2026-10-02T09:12:00Z",
"tenantId": "acme-corp",
"feature": "report-gen",
"taskId": "task-8841",
"provider": "anthropic",
"model": "claude-opus-4.6",
"usage": { "inputTokens": 12000, "cachedInputTokens": 9000, "outputTokens": 4000 },
"status": "ok",
"latencyMs": 18400
}]
}'id is the idempotency key: reporting the same id twice for one account is not billed twice. Reusing your own request ID is the easiest way.
The repository ships zero-dependency implementations under sdk/node and sdk/python.wrap your provider client and usage is reported automatically.
| Field | Required | Notes |
|---|---|---|
id | Yes | Idempotency key, unique within the account |
occurredAt | Yes | RFC3339 timestamp. Cost is priced with the price book and FX rate in effect at that moment |
tenantId | Yes | Your end customer / tenant identifier |
feature | No | Feature or scenario, used to drill down by feature |
taskId | No | Groups the calls an agent fans out into one business action |
provider/model | Yes | Matched against the price book; aliases and prefix matching supported |
usage | Yes | Token usage — forward the provider's usage object as-is |
status | Yes | ok / error / timeout / cancelled.Failed calls are billed too, and counted separately as wasted cost |