Documentation
pip install "tokeven[anthropic]"from 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
Guides to ingest, export and webhooks. A full endpoint-by-endpoint API reference is not published yet.
Best practices for cost optimization and team rollout
How teams apply Tokeven to production pipelines, chatbots, and internal AI tools