Problem Features How it Works Use Cases Pricing FAQ
AI Observability Platform

See every token.
Spend smarter.
Ship faster.

The observability and cost optimization layer for teams building with large language models. Measure exactly what your AI costs, find the prompts quietly draining your budget, and ship leaner systems without sacrificing quality.

Trusted by AI teams shipping production workloads at scale.

tokens.ms — live stream
gpt-4o  in:1,247 out:389 cost:$0.0214 lat:892ms
claude-3-5 in:843  out:201 cost:$0.0091 lat:641ms
gemini-pro in:2,104 out:521 cost:$0.0318 lat:1.2s
# ⚠ agent loop detected — 14 iterations in feature/summarize
mistral-7b in:412  out:98  cost:$0.0003 lat:211ms
# CACHE HIT — saved $0.0214  /  daily savings: $47.38
Real-time token observability Cost attribution by feature, team & customer Smart model routing Semantic cache Eval-linked optimization SOC 2 Type II & GDPR ready 11-day avg. time to first cost reduction OpenAI · Anthropic · Google · Mistral · Cohere One integration. Every model. Compliance-grade logging Real-time token observability Cost attribution by feature, team & customer Smart model routing Semantic cache Eval-linked optimization SOC 2 Type II & GDPR ready 11-day avg. time to first cost reduction OpenAI · Anthropic · Google · Mistral · Cohere One integration. Every model. Compliance-grade logging
0
Average cost reduction %
0
Days to first cost reduction
0
Model providers supported
0
Integration. Every model.

Your AI bill grew 10x.
Nobody can explain why.

Token consumption is the new compute spend — and most teams are flying blind.

Prompts bloat with every iteration

System messages quietly grow. Context windows fill with redundant data nobody ever audits.

Agents loop without anyone noticing

Recursive tool calls spiral for minutes before your on-call gets paged — after the bill has landed.

RAG pipelines over-fetch context

Half your cost in a typical RAG system is context the model never even reads.

No cost attribution across teams

Your CFO wants to know which product line is consuming AI spend. You have no answer.

Monthly LLM Invoice — No Attribution ⚠ UNTRACKED
OpenAI API$14,382.00
Anthropic API$8,741.00
Google AI$3,220.00
Attributed to teamUnknown
Attributed to featureUnknown
Attributed to customerUnknown
Waste / loops detectedUnknown
Total spend this month $26,343

Why teams switch to tokens.ms

Real-time visibility across every model, every endpoint, every team. The teams winning with AI know exactly where every token goes.

Real-time Observability

Stream every prompt, completion, and tool call into a single dashboard. Break down token spend by model, route, user, feature, and environment in real time.

Cost Attribution That Works

Tag every call by customer, team, feature, or experiment. Finally answer your CFO's questions: which product line is the AI spend going to, and which feature has the worst margin.

Optimization on Autopilot

The analysis engine continuously scans for waste: oversized prompts, redundant context, retrieval chunks never cited. Each recommendation comes with a projected dollar saving.

Quality Guardrails Alongside Cost

Every recommendation is paired with side-by-side evaluation runs. See exactly how a leaner prompt performs against the original before you ship it.

One Integration. Every Model.

OpenAI, Anthropic, Google, Mistral, Cohere, open-source models on Together, Groq, Replicate, or self-hosted — one source of truth no matter how your stack evolves.

Compliance-Grade Logging

Full audit trails, configurable PII redaction, and region-pinned storage. SOC 2 Type II, GDPR ready, and self-hostable for teams in regulated industries.

What you get inside tokens.ms

Every tool you need to measure, optimize, and govern your AI infrastructure — all in one platform.

Live Token Meter

A real-time stream of every call your stack is making, with token counts, latency, model, and cost displayed at a glance. Drill into any single call to see the full prompt, response, metadata, and routing decision.

Token counts, latency, and cost per call in real time
Full prompt and completion drill-down on any request
Immediate alerts on agent loops and runaway spend
Side-by-side model comparison for the same call
live.stream — tokens/sec
gpt-4o / chat
$0.0214
claude-3-5 / summ
$0.0091
gemini / embed
$0.0318
mistral-7b / class
$0.0003
llama3 / extract
$0.0005
gpt-4o / rag
$0.0187
⚠ LOOP DETECTED — feature/agent-summarize — 14 iterations — projected cost: $0.31

Spend Dashboards

Daily, weekly, and monthly token and cost views sliced by any dimension you care about. Compare environments, features, and models. Export anything to your data warehouse with one click.

Slice by customer, team, feature, or experiment tag
Identify top 10 prompts driving the bottom of your bill
One-click export to BigQuery, Snowflake, or S3
Accurate chargeback to business units and customers
spend.dashboard — this month
search-feature
$8,412
agent-pipeline
$6,893
customer-support
$5,172
summarization
$3,061
classification
$956
Total tracked this month $24,494

Smart Router

Route requests to the right model automatically based on task complexity, latency target, and cost ceiling. Send simple work to small fast models, escalate complex reasoning to frontier models — without touching your application code.

Policy-based routing: cost ceiling, latency target, task type
Learned routing recommends cheapest model passing your evals
Semantic cache intercepts near-duplicate queries instantly
Average cost per request drops without code changes
smart.router — routing rules
Incoming Request → tokens.ms router
classification task mistral-7b $0.0003
summarization task claude-haiku $0.0008
complex reasoning gpt-4o $0.0214
Avg cost saved ↓ 67% per request

Budget Alerts & Hard Limits

Set spend ceilings per project, customer, or feature. Get notified before you cross a threshold. Apply hard cutoffs on runaway agents that decide to spend your monthly budget in an hour.

Granular budget limits per project, customer, or feature tag
Slack, PagerDuty, and email alerts at configurable thresholds
Hard cutoffs kill runaway agents before damage compounds
Eval-linked A/B testing promotes winners only when quality holds
budget.monitor — live
search / monthly
$8.2k / $10k
agents / monthly
$9.5k / $10k
support / monthly
$3.4k / $10k
embeds / monthly
$1.2k / $10k
⚠ ALERT — agents budget at 95% — hard limit in 3h at current burn rate

Three steps to full visibility

From zero to real-time AI observability in minutes, not months.

1

Connect

Drop in our SDK or point your existing OpenAI-compatible client at the tokens.ms proxy. No code changes beyond a base URL update. Supports Python, Node, Go, Ruby, and REST.

2

Tag & Route

Add lightweight tags for the things you care about: customer, feature, experiment, environment. Define routing rules if you want them. Data streams into your dashboards within minutes.

3

Optimise

Watch the recommendations roll in. Implement easy wins. Connect your evals. Let the platform keep working in the background while you build the rest of the product.

# Step 1: One-line setup — just change the base_url from openai import OpenAI client = OpenAI( base_url="https://proxy.tokens.ms/openai", api_key="your-openai-key" ) # Step 2: Tag your calls — that's it response = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": user_message}], extra_headers={ "x-tms-customer": customer_id, "x-tms-feature": "search", "x-tms-env": "production" } ) # Dashboard populates instantly. Recommendations start within the hour.
// Node.js — same pattern, same simplicity import OpenAI from 'openai'; const client = new OpenAI({ baseURL: 'https://proxy.tokens.ms/openai', apiKey: process.env.OPENAI_API_KEY }); const response = await client.chat.completions.create({ model: 'gpt-4o', messages: [{ role: 'user', content: userMessage }], headers: { 'x-tms-customer': customerId, 'x-tms-feature': 'search' } }); // Full token trace available in dashboard within seconds
# cURL — works with any stack curl https://proxy.tokens.ms/openai/v1/chat/completions \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ -H "x-tms-customer: acme-corp" \ -H "x-tms-feature: search" \ -d '{ "model": "gpt-4o", "messages": [{"role": "user", "content": "Hello"}] }' # Response proxied transparently. Full trace logged.

What changes when you can
see everything

Full token visibility transforms how your engineering, product, and finance teams operate.

Predictable AI economics

Set per-customer, per-feature, and per-environment budgets. Know your AI margin before the invoice arrives — not after.

Engineering velocity stays high

Optimization recommendations arrive ready to implement. No manual prompt auditing. No guesswork. Ship the saving, move on.

Cross-team accountability

Platform teams get one control plane. Product teams get clear ownership. Finance gets accurate chargeback — automatically.

Quality never regresses

Every cost-saving recommendation is validated against your evals before it ships. Savings that break quality never reach production.

// savings.projection
Prompt optimization-28%
Smart routing-19%
Semantic cache-14%
RAG optimization-12%
Loop detection-8%
43%

average total cost reduction
across customer base in Q1

Built for the way modern AI teams actually work

AI Startups

Scaling beyond the prototype

Your demo worked. Your usage is climbing. Your unit economics are now an open question. tokens.ms gives you the per-customer cost visibility you need to set the right prices and find the margin leaks before your investors do.

$0 surprises at month-end
when budgets are set correctly
Enterprise Platforms

Running mixed workloads at scale

You have a dozen teams shipping AI features inside the same organisation. Some are careful. Some are not. tokens.ms gives the platform team a single place to see every workload, enforce policies, and chargeback accurately.

1 control plane for all
AI spend across teams
Agentic Systems

Unpredictable loops, now predictable

Agents that loop, branch, and call tools recursively are the easiest way to burn money in 2026. Our agent-aware tracing follows the full call tree, surfaces loops going off the rails, and lets you set hard caps before things spiral.

14x loops caught automatically
before cost compounds
RAG Pipelines

Stop retrieving what you never use

Half the cost in a typical RAG system comes from over-fetching context the model never actually uses. tokens.ms shows which chunks are getting cited, which are not, and where you can safely cut retrieval budget without hurting quality.

50% of RAG cost is wasted
context — we help you cut it

One integration. Every model.

tokens.ms sits between your application and every provider, giving you one source of truth no matter how your stack evolves.

Frontier
Frontier
Frontier
Frontier
Frontier
Inference
Inference
Inference
Inference
Self-hosted

Plus any OpenAI-compatible endpoint. New providers added regularly based on customer demand.

Enterprise-grade security built in from day one

🔒
SOC 2 Type II
Audited annually
🇪🇺
GDPR
EU data residency
🏥
HIPAA Ready
Configurable
🔑
CMEK
Bring your own key
🌐
Data Residency
EU & US regions
🏗️
Self-Hosted
Full isolation

Trusted in regulated industries

Whether you're a fintech with strict data residency requirements, a healthcare platform managing HIPAA compliance, or an enterprise that cannot send data to any external service — tokens.ms has a deployment model for you.

Full audit trails with immutable call logs
Configurable PII redaction before storage
Region-pinned storage, EU and US
Customer-managed encryption keys (CMEK)
SSO, SCIM provisioning, and RBAC
Self-hosted deployment for full data isolation
Security Feature Free Team Enterprise
Audit logs
PII redaction
SOC 2 Type II report
HIPAA BAA
CMEK / BYO key
Self-hosted deployment
SSO / SCIM

Real results from real AI teams

We cut our monthly LLM bill by forty-three percent in the first six weeks of using tokens.ms, without a single regression in our evals. The cost attribution alone was worth the integration.

H
Head of AI
Fintech platform, Series B

We were shipping agent features completely blind. Now I know exactly which agent run cost what, and where the loops are happening. It paid for itself the day we turned it on.

S
Staff Engineer
B2B SaaS, enterprise tier

The smart router alone saved us more than the whole tool costs. Every request now goes to the cheapest model that can handle it, automatically. We didn't touch a line of application code.

C
CTO
Customer-support AI startup

Pricing that scales with your savings

Every plan comes with a money-back guarantee tied to verified savings.

Free
$0
forever
1M tokens / month
Full real-time dashboard
Prompt explorer
Basic spend analytics
Community support
Python & Node SDK
Enterprise
Custom
volume pricing
Unlimited tokens
Everything in Team
Self-hosted or region-pinned
SSO, SCIM, HIPAA BAA
CMEK / bring your own key
Custom retention & audit logs
Dedicated solutions architect
Procurement-friendly contracts

Money-back guarantee: Every plan comes with a savings guarantee. If tokens.ms does not pay for itself in your first quarter through verified cost reductions, we refund the difference. No questions asked.

Questions teams ask before signing up

Will tokens.ms slow down my application?
No. The proxy adds single-digit milliseconds of overhead and is deployed across multiple regions for low-latency routing. For teams that cannot tolerate any added hop, our SDK mode logs asynchronously without sitting in the request path at all.
Do you store our prompts and completions?
Only if you choose to. Logging is fully configurable, with options to store full payloads, redact PII automatically, store metadata only, or store nothing at all. Self-hosted deployments keep every byte inside your own infrastructure.
Which model providers do you support?
All major commercial providers including OpenAI, Anthropic, Google, Mistral, and Cohere, plus open-source models via Together, Groq, Replicate, Fireworks, vLLM, Ollama, and any OpenAI-compatible endpoint. New providers are added regularly based on customer demand.
How does the smart router decide where to send requests?
You define the policy. Routes can be based on task type, prompt length, latency target, cost ceiling, or any tag your application sets. The platform also offers learned routing, where it recommends the cheapest model that consistently passes your evals for each prompt class.
Is tokens.ms suitable for regulated industries?
Yes. We support SOC 2 Type II, GDPR, HIPAA-ready configurations, EU and US data residency, customer-managed encryption keys, and full self-hosted deployment for teams that cannot send data to any external service.
How long does it take to get value from the platform?
Most teams see actionable recommendations within the first week of integration. Average time to first cost reduction across our customer base is eleven days from initial setup.
Get Started Today

Stop guessing what your AI costs.

Every day without observability is a day your token spend grows without explanation. tokens.ms takes minutes to set up and starts paying for itself almost immediately.