Skip to content
Open-source AI cost optimization

Less AI waste.
More to build.

For teams building AI-powered text workflows.

Cache repeated requests. Route simpler prompts to lower-cost models. Trim unnecessary text. See how each request was handled.

Bring your own provider key. Provider usage charges apply.

4 providers Inspectable source JSON API
TS Request explorerILLUSTRATIVE DEMO
INPUT

When is the support desk open?

Example policy: support is open Monday–Friday, 09:00–17:00 UTC.
CACHE MISS
New question. Choose a model.A short factual question illustrates the lower-cost path.
OUTPUT

Monday–Friday, 09:00–17:00 UTC.

Served by the selected AI provider

Scripted example using fictional business data. No API request or measured savings.

Explore with your own prompt

WORKS WITH YOUR AI PROVIDERS

AnthropicOpenAIGoogle GeminiGroq

LESS WASTE. MORE VISIBILITY.

Three ways to reduce
wasted AI spend.

Reuse what you can. Choose the right model. Send only what you need.

Your applicationSend a JSON request
TSTokenSaveCache · Route · Compress
Your AI providerGenerate when needed
01

Response caching

Reuse an answer

Return a stored response for a matching request instead of making another provider call.

02

Cost-aware routing

Match the model to the task

Use prompt complexity rules to select a cheaper or more capable model. Test the results on your own workload.

03

Prompt compression

Send less unnecessary text

Trim filler and redundant whitespace before a request. Review output quality for formatting-sensitive tasks.

04

Quality modes

Choose your tradeoff

Choose auto, max_savings, or max_quality to adjust how TokenSave prioritizes cost and model capability.

05

Provider fallback

Plan for rate limits

Configure a backup provider and its credentials so eligible rate-limited requests can take another path.

06

Context tools

Keep conversations manageable

Use separate context endpoints to summarize older turns or trim a conversation to a token budget.

YOUR WORKLOAD IS THE BENCHMARK

Measure what matters.

Lower cost only matters when the output still works for your application. Compare representative prompts before expanding your usage.

Try your own prompts
  1. 01

    Start with your baseline

    Use the provider and model you actually run today.

  2. 02

    Compare cost and output

    Review responses, selected models, cache behavior, and latency.

  3. 03

    Validate the benefit

    Check real provider bills against estimates and include your subscription cost.

BUILT FOR YOUR WORKFLOW

Your provider.
Your key.
One place to optimize.

Send a request from your server using TokenSave's JSON API. Inspect the response metadata to understand how it was handled.

This is a custom API, not a drop-in SDK replacement. Streaming and tool calling are not supported yet.

Read the integration guide
server.ts / JavaScript
// Run on your server. Keep API keys private.
const response = await fetch(
  "https://www.tokensave.in/api/proxy",
  {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      provider: "anthropic",
      apiKey: process.env.ANTHROPIC_API_KEY,
      tsKey: process.env.TOKENSAVE_KEY,
      messages: [{
        role: "user",
        content: "What is the capital of Japan?"
      }]
    })
  }
);
if (!response.ok) throw new Error("Request failed");
const data = await response.json();
console.log(data.tokensave_meta);

EVALUATE WITH EVIDENCE

A clear view before
you connect your app.

Start with synthetic data. Inspect the implementation. Decide against your own quality and cost requirements.

AVAILABLE TO INSPECT

Open implementation

MIT-licensed source, public development history, automated checks and a visible roadmap.

Inspect source
MEASUREMENT STATUS

Results need your workload

No public reproducible savings benchmark is published yet. Dashboard cost estimates are not a substitute for provider invoices.

Follow benchmark work
BEFORE PRODUCTION

Review the data flow

The hosted proxy processes prompts and provider credentials. Review caching, retention and current assurance limits first.

Read security details
Planning a team evaluation?

Tell us your workflow, monthly request volume and data requirements. Ask for written confirmation of support scope, commercial terms and any required security controls.

Discuss your requirements

OPEN BY DESIGN

Read the code behind the promise.

Explore the implementation, current limitations, and public roadmap before you connect your app.

PRICING

Evaluate first. Choose with evidence.

Listed monthly plans in USD. AI-provider usage is billed separately.

Listed plan · activation by agreement

Starter

For a focused text workflow.

$99 / month

50,000 requests / month

$1.980 per 1,000 requests at full stated volume. Subscription equivalent, not an overage rate.

Enquire about Starter →
  • Caching, routing and prompt compression
  • Dashboard visibility with estimate labels
  • Email support scope agreed before purchase
Review commercial details
Custom scope

Enterprise

For a tailored deployment conversation.

Custom

Volume and requirements agreed together

Discuss requirements →
  • Review security and data requirements
  • Agree capacity, billing and service terms
  • Confirm custom work before committing
Review commercial details

Plan activation and commercial terms require confirmation. Account creation does not start a subscription or confirm a trial. Compare plans, calculate break-even and review commercial details →

YOUR NUMBERS. YOUR DECISION.

Does the subscription
pay for itself?

Explore a scenario before committing. Enter a reduction you have measured, or test a hypothetical assumption. This calculator does not predict TokenSave performance.

Net benefit = provider spend × reduction − subscription. Excludes taxes, overages, integration and operating costs. Confirm that your request volume fits the plan.

HYPOTHETICAL MONTHLY RESULT-$99.00

Additional cost after subscription

$0.00 provider savings − $99.00 subscription

A FEW THINGS TO KNOW

Clear answers.
Before you start.

Have a question about your setup?

Talk to us
What does TokenSave actually do?

TokenSave sits between your application and an AI provider. It can reuse cached responses, select models using complexity rules, and reduce prompt text. The response includes metadata so you can inspect the path taken.

How much will I save?

There is no fixed savings rate. Results depend on repeated requests, your starting model, prompt length, and quality requirements. Current cost figures are estimates; compare your provider bills and representative outputs before deciding whether TokenSave is a fit.

Can I use my existing provider SDK?

The proxy currently uses its own JSON request format. Changing only the base URL in an OpenAI or Anthropic SDK is not sufficient. Use the API example and reference; compatible endpoints are on the roadmap.

Does it support streaming and tool calling?

Not yet. The current proxy is intended for non-streaming text requests. Check the public roadmap before choosing TokenSave for an agent or a workflow that depends on tools.

Do I need my own API key?

Yes. Bring a key for your selected provider. Real requests may incur provider charges, billed separately from TokenSave. Keep integration keys on your server and review the security documentation before connecting an application.

Is TokenSave open source?

Yes. The source is available on GitHub under the MIT license. You can inspect the implementation, follow the roadmap, and contribute. The hosted product is still in early development.

START WITH ONE REQUEST

Your next request.
A better place to start.

Bring a prompt. Explore the response. Decide what works for your app.

Open playground

Your provider key is required.