Documentation
pip install tokevenfrom anthropic import Anthropic
from tokeven import wrap
tracked = wrap(
Anthropic(),
ingest_token="tkv_ing_...",
base_url="https://api.tokeven.com",
)response = tracked.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}]
)
# Cost, tokens, and model tracked automaticallyInstall, configure, and make your first tracked call
Python wrapper API, configuration options, and advanced usage
Spend, Save, and Proof - three real-time views of cost, models, tokens, and verified savings
Connect Tokeven to your existing tools and workflows
REST API for ingest, analytics, and export
Best practices for cost optimization and team rollout
How teams apply Tokeven to production pipelines, chatbots, and internal AI tools