Token savings

Cut 20% or more
from your AI bill.

Your agents send the model a lot of content it already has. Gate sits between them and the provider, sends the repeats once, answers identical requests from its own cache, and stops a runaway job at a spend cap you set. The model gets the same content and returns the same answer. You are billed for less of it.

On by default, with nothing to install in your code. Free to start, $20 per user a month on Pro.

BEFORE6,500 TOKAFTER GATE5,162 TOK−20.6%FEWER TOKENSSAME ANSWER
Fig. 1 — One request, before and after Gate Example request · POST /v1/messages
Before
6,500 tok
After Gate
5,162 tok
Saved
−1,338 tok · −20.6%
On a bill
At the 20% this page uses, $10,000 a month becomes $8,000. $2,000 saved a month, $24,000 a year.
  • Where it saves most

    Long agent sessions. A coding agent resends the whole conversation on every turn and re-reads the same files after every edit, so the repetition compounds as the session runs. The longer the job, the more Gate takes out of it. The three ways it saves

  • What Gate costs

    Compression and caching are free, so on the free plan the whole saving is yours. Pro is $20 per user a month and adds spend caps, per-team breakdown and the stronger compression modes. See pricing

  • What the model sees

    The same content. Gate keeps the first copy of anything intact and replaces only the later copies, so nothing is summarized away and nothing is guessed at. The exact edit, in JSON

01 / Where it saves

Three ways Gate lowers the bill.

Agent traffic is repetitive. The same file is read again after every edit, the same command is run around a loop, and the same tool schemas ride along on every message. Providers bill all of it at full rate. Gate removes the repetition on the way out, serves what it can from its own cache, and stops a job at the cap you set.

A · Repeated content

The file read three times

WITHOUT GATEWITH GATE5,000 TOK5,000 TOK15,000 TOK↑ SEE ABOVE−5,000 TOK25,000 TOK↑ SEE ABOVE−5,000 TOK3SAME FILE, THREE TURNS · −10,000 TOK

A coding agent reads the same file after each edit. Every re-read is billed again at full input rate. Gate keeps the first copy intact and replaces the later ones with a pointer back to it, so the model can still see the content and you pay for it once.

Saves the largest share of the total on coding traffic.

B · Repeat requests

The identical call

CACHESTOREGATEPROVIDERREQUEST 11,900 TOK BILLEDSTOREDREQUEST 2 — IDENTICALANSWERED FROM THE STORE0 TOK BILLEDA HIT COSTS NOTHING AT ALL

A retry, a refresh, or a loop sends a request Gate has already answered. When the request matches one it has stored, Gate returns the stored response and never contacts the provider. You choose how long an answer stays valid.

Saves 100% of the tokens on a hit.

C · Spend caps Pro

The overnight loop

22:0000:0002:0004:0006:00CAP $250$1,400 UNCAPPED03:12 — CAP ENFORCEDTHE LOOP EXITS$1,150 THAT NEVER GOT SPENT

A batch job hits a failing call and retries all night. At the cap you set, Gate returns a refusal the agent can handle, so the loop exits instead of compounding until someone wakes up and finds the bill.

Saves the spend you never intended to make.

02 / Your estimate

What that is worth on your bill.

Put your monthly model spend in and see the saving at the rate Gate measures on agent traffic. Long agent sessions save the most, because they repeat the most.

0 keeps you on the free plan, where the whole saving is yours.
You keep $1,900 a month, after what Gate costs
Saved on tokens, at 20%
$2,000
Gate Pro, 5 people
−$100
Billed by the provider
$8,000
Net over a year
$22,800

An estimate, not a quote. 20% is the reduction the Pro plan measures on a typical agent request, the request drawn in Fig. 1 above.

03 / In production

Rocket Resume took 23% off a $40,000 bill.

One of the web’s highest rated resume builders

“As we add AI-powered tools, we need to understand both what those systems contribute and what they cost. Gate AI gives our engineering team a clearer view of the workflows we’ve connected and helps us identify opportunities to operate more efficiently without compromising the experience we provide to job seekers all while saving money!”

Steve Zimmerman Steve ZimmermanFounder, Rocket Resume
Read the case study
23%
Lower cost on AI tokens, checked against their own provider bills
~$40K
Monthly AI spend now optimized
~150K
Monthly visits routed through AI
04 / What changes

See exactly what Gate removes.

Here is one real request, before and after. Your coding agent sent the same file on turn 1 and again on turn 7. Gate sends the first copy in full, and replaces the second with a line pointing back to it. Everything else goes upstream untouched.

What your client sent 5,214 tokens
{
  "role": "user",
  "content": [{
    "type": "tool_result",
    "tool_use_id": "toolu_014c",
    "content": "// src/app.ts
      import { createServer } from './server'
      import { loadConfig } from './config'
      ... 412 more lines ..."
  }]
}
What Gate forwards 214 tokens
{
  "role": "user",
  "content": [{
    "type": "tool_result",
    "tool_use_id": "toolu_014c",
    "content": "// src/app.ts
      [identical to the copy in
       message 4 of this conversation]"
  }]
}

The model already read this file earlier in the same conversation, so it does not need a second copy to answer. Everything Gate did not touch goes upstream byte for byte.

THE SAME FILE, SENT THREE TIMES IN ONE SESSIONsrc/app.ts, re-read after every editTURN 1SENT IN FULL5,000 TOKTURN 4SEE TURN 1−5,000 TOKNOT SENT AGAIN12 TOKTURN 7SEE TURN 1−5,000 TOKNOT SENT AGAIN12 TOK−10,000 TOKsaved on one file, in one session.The model still reads it in full, on turn 1.
Fig. 2 — One file, across a whole session Sent once · pointed at twice
The session
8 turns. The agent re-reads one 5,000-token file on turns 1, 4 and 7.
Without Gate
The file is sent and billed 3 times.
With Gate
Sent once · −10,000 tok
The model
Still sees the file in full, on turn 1.

The repeated file is one transform. There are others on every request.

  • Tool and command output Over 150 formats are recognized: test runners, type checkers, linters, package managers, git, docker, kubectl. A passing test suite becomes its counts, and the failures keep their full error text.
  • Terminal control codes Color escapes, cursor moves and progress bars that redraw the same line hundreds of times. The model was never able to read any of it.
  • Duplicated log lines Repeating log entries and the timestamps in front of them, collapsed to one line that still says how many times it happened.
  • Harness scaffolding The envelopes coding tools wrap around your prompt on every turn, like Claude Code's system reminders and Cursor's workspace state.
  • Tool schemas The JSON Schema in tools[] is verbose prose with examples and warnings. Gate minifies it without changing which tools the model can call.
  • Overlapping reads Two reads of the same file that share most of their lines are sent as the difference between them, not as two full copies.
05 / What it buys

The same budget buys 25% more work.

Token prices keep falling and AI bills keep rising, because better models attract more work. An agent you trust does not answer one question and stop. It works through the whole task, and the teams that trust it run it far more often than they planned to. Cutting waste out of every request is what keeps that affordable.

At a 20% saving 25% more model capacity on the same budget

Pay 80 cents for what cost a dollar and the same budget runs 1.25 times the work. On $40,000 a month that is $10,000 of inference you were not going to get.

  • Keep the better model on hard work. Teams downgrade to a cheaper model to stay under budget, and pay for it in quality. A lower bill means the frontier model stays on the tasks that earn it.
  • Run the agent more. More coding sessions, more support conversations, more research runs, inside the budget that is already approved.
  • Stop rationing. Usage caps set to protect a budget are a tax on the work. Remove the waste and the cap stops binding.

And you can watch it happen.

From the first request, Gate reports what it removed and what its cache answered, priced against what you paid, and broken down by team, user and model across pay-as-you-go and your own provider keys.

06 / Trade-offs

Does it change the answer?

The content
The model receives the same content. What the default mode removes is material the model cannot use, or a second copy of something already in the conversation.
Provider caching
Keeps working. The prefix Gate forwards stays byte-identical across turns, which is the condition your provider's cache needs.
Latency
Rewriting happens in the gateway, in the request path, with no extra model call. A cache hit is faster than the provider, because the request never leaves Gate.
Where it saves most
Long agent sessions, where the same context is resent turn after turn and the same files are read again after every edit. Coding agents are the clearest case, and any workload that carries a growing conversation behaves the same way. The longer the job runs, the more there is to take out of it.
The audit record
When Gate rewrites a request it keeps both bodies: what your client sent and what was forwarded upstream. So there are not two partial logs to reconcile. There is one record holding both sides, and the forwarded body is the one the model received. The audit trail is hash-chained, so a deletion shows up as a deletion.
Your data
Your request passes through Gate, which is what makes the saving possible, and then goes to the model provider serving it. Gate does not send it anywhere else and does not train on it. Bring your own keys and the call runs under your existing provider agreement.

The questions we get.

What does Gate cost, and does the fee eat the saving?

Compression and caching are on the free plan, so if you stay on Free the saving costs you nothing. Pro is $20 per user per month and adds spend caps, per-team and per-model breakdown, and the advanced compression pipeline. Model usage is pay as you go through Gate, or bring your own provider keys and keep buying tokens directly. The estimator above subtracts the Pro seats you enter, so the figure it shows is net.

If Gate rewrites the request, which log is the system of record?

Both are, and they sit on the same record. Whenever compression actually changes a request, Gate stores the body your client sent alongside the body it forwarded upstream, so you can put them side by side rather than reconcile two systems. The forwarded body is what the model received, which is the one an auditor is asking about. Entries are hash-chained and anchored, so a gap in the chain is itself evidence.

Isn't this what our cloud cost tool already does?

Cost tools read the bill after it arrives. They report what you spent and who spent it, which is worth having. They cannot make the next request cheaper. Gate sits in the request path, so it removes tokens before they are billed and answers repeat calls without contacting the provider. The two compose: Gate lowers the bill, your cost tool still reports it.

Does this cover all our AI spend, or only what goes through Gate?

Only traffic that routes through Gate. Anything your teams send straight to a provider is invisible to it. In practice that is the argument for pointing every tool at one endpoint: Gate reports spend by team, user, and model across pay-as-you-go and your own provider keys, which is hard to assemble from several provider consoles.

Is the compression lossy? Will my agent behave differently?

The default mode is the safe one. It removes content the model cannot use: terminal color codes, repeated lines, editor scaffolding, pretty-print spacing, and copies of content already earlier in the same conversation. The model still has that content, in full, at its first appearance. Your own prose is never rewritten.

Does compression run before or after the security screening?

Before anything is removed. Gate evaluates the request your client sent for prompt injection and for leaked credentials or PII, and only then does a savings stage touch it. Turning compression off does not turn the scanner off, and turning the scanner off is a separate decision.

Does it break my provider's prompt caching?

No, and it is designed around that. A repeated block is only replaced once the model has already replied past it, so the prefix Gate forwards stays byte-identical on every later turn and your provider's cache keeps hitting. Gate also inserts Anthropic cache_control markers for clients that do not send their own.

Do I have to configure anything?

No. Savings are on by default and there is nothing to install in your code. Compression is a single toggle on the Token Savings page in the dashboard, and the cache lifetime is set next to it.

Point one tool at Gate and watch the first bill fall.

Free to start, no card. Savings are on by default, and the dashboard shows what they were worth on your own traffic.