Documentation

Get started in two minutes

Install Tokeven, make a call, and see your first cost data. Your prompt content never reaches Tokeven - only metadata.

Quickstart

1Install the wrapper
pip install tokeven
2Wrap your client
from anthropic import Anthropic
from tokeven import wrap

tracked = wrap(
    Anthropic(),
    ingest_token="tkv_ing_...",
    base_url="https://api.tokeven.com",
)
3Use it exactly as before
response = tracked.messages.create(
    model="claude-sonnet-4-6",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}]
)
# Cost, tokens, and model tracked automatically

Browse the docs

Getting Started

Install, configure, and make your first tracked call

SDK Reference

Python wrapper API, configuration options, and advanced usage

Dashboards

Spend, Save, and Proof - three real-time views of cost, models, tokens, and verified savings

Integrations

Connect Tokeven to your existing tools and workflows

API Reference

REST API for ingest, analytics, and export

Guides

Best practices for cost optimization and team rollout

Use Cases

How teams apply Tokeven to production pipelines, chatbots, and internal AI tools