Docs

Ten minutes to integrate.

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.

Integration path
1Create an API key
API keys page, shown in plaintext only once
2Report usage
POST /v1/events, or wrap the SDK
3Attribution
Unit economics computed per account / feature / model
EndpointsPOST /v1/events

1 · Create an API key

After 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.

2 · Report usage

Just forward the usage your provider already returns

Option A: HTTP endpoint

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.

Option B: SDK

The repository ships zero-dependency implementations under sdk/node and sdk/python.wrap your provider client and usage is reported automatically.

3 · Field reference

status is the required field people most often forget
FieldRequiredNotes
idYesIdempotency key, unique within the account
occurredAtYesRFC3339 timestamp. Cost is priced with the price book and FX rate in effect at that moment
tenantIdYesYour end customer / tenant identifier
featureNoFeature or scenario, used to drill down by feature
taskIdNoGroups the calls an agent fans out into one business action
provider/modelYesMatched against the price book; aliases and prefix matching supported
usageYesToken usage — forward the provider's usage object as-is
statusYesok / error / timeout / cancelled.Failed calls are billed too, and counted separately as wasted cost

4 · Two rules you must know

✓Cost is priced with the price book and FX rate in effect when the call happened
Not today's. So a later price change never rewrites stored history — every report stays reproducible.
△If we can't compute it, we don't give you a number
Models missing from the price book are not dropped. They are stored as "cost unknown"and listed explicitly in the dashboard's data-confidence panel.