Make a tracked call
Once you've installed and configured the wrapper, every call through it is automatically tracked:
response = tracked.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{"role": "user", "content": "What is 2+2?"}]
)What gets captured
The wrapper reads the response's usage field and sends metadata to Tokeven:
- •Model ID — which model handled the call
- •Token counts — input, output, cache-read, cache-write
- •Latency — time from request to response
- •Cost — computed server-side using current pricing
What Tokeven never receives
- •Prompt content
- •Completion content
- •Your API keys
- •File contents referenced in prompts
View in dashboard
Open the Cost Overview dashboard to see your call. Data appears in real time.