Costbrake vs Portkey
Costbrake vs Portkey: gateway budgets or billing brakes?
Portkey can cut off LLM spend inside its AI gateway: a budget limit expires the key once it reaches a USD or token limit, with a $1 minimum, but its docs list budget limits for Enterprise and select Pro customers only. Costbrake reads usage from OpenAI, Anthropic, OpenRouter and the rest of its 35 providers and lets an admin brake the key at the provider, on Pro at $12 a month.
Portkey is the better gateway. Costbrake is the cheaper way to stop a runaway bill, and it sees traffic that never touches Portkey.
Costbrake and Portkey side by side
| Compared on | Portkey | Costbrake |
|---|---|---|
| Where it sits | AI gateway in the request path | Outside the request path; reads provider APIs |
| What it sees | Requests through the gateway, with logs and cost | All usage the provider reports, from any key |
| How it stops spend | Budget limit expires the key at a USD or token limit | Admin-confirmed brake at the provider |
| Who gets it | Enterprise and select Pro customers | Pro and Team plans |
| Alerts | Email at budget thresholds | Email, Slack, Discord, webhook; PagerDuty on Team |
| Request logs | 10k a month free; 100k on Production | None |
| Price | Developer free; Production $49 a month; Enterprise custom | Free $0; Pro $12 a month; Team $39 a month |
Where Portkey is stronger
Portkey is a full AI gateway. It logs each request with its cost, tracks pricing for the providers and models it supports, and its open-source gateway can be hosted yourself. The Developer plan is free for 10k recorded logs a month, and Production is $49 a month for 100k, then $9 per additional 100k.
Its budget limits act per request. You set a cost or token limit on a provider integration, with email alerts at thresholds you choose and an optional weekly or monthly reset. Once the limit is reached, Portkey expires the key, so the next request through it fails. For a team that routes everything through Portkey, that is a tighter stop than any billing tool can offer.
The catch with Portkey budget limits
- Plan access. One line of Portkey's docs says budget limits are for Enterprise and select Pro customers, and another says Enterprise only. Its pricing page lists Developer, Production and Enterprise, with granular budgets under Enterprise. Ask Portkey before you count on them.
- They are fixed once set. Budget limits can't be edited by any organization member after you set them, and the minimum is $1.
- They only see Portkey traffic. A raw provider key used outside the gateway, in a script or after a leak, isn't counted or stopped.
Where Costbrake is stronger
Costbrake reads each provider's own usage and billing data, so it counts every key on the account, whether or not the call went through a gateway. There is nothing to put in your request path. Pro checks every 5 minutes and alerts on spikes, budgets and forecasts by email, Slack, Discord or webhook.
Brakes act at the provider, which also stops traffic that skips Portkey: freeze an OpenAI project by setting its hard limit to $0.01, disable an Anthropic key or a workspace's keys, or set an OpenRouter key's credit limit to $0. Each brake runs only after an admin clicks and confirms, and can be undone. Brakes are on every paid plan, from $12 a month; see pricing.
What Costbrake doesn't do: route requests, log prompts, cache, or cap a single request before it is sent. It is only as fast as the provider's usage feed, which is minutes, not milliseconds.
Using Portkey and Costbrake together
Keep Portkey as your gateway and use its budget limits if your plan has them. Connect the provider accounts behind it to Costbrake, so spend from any key reaches you in minutes and a brake at the provider is one click away. For the wider field, see LLM cost tracking tools and which tools can actually stop cloud and AI spend.
Questions and answers
Does Portkey have budget limits on the free plan?
No. Portkey's docs list budget limits for Enterprise and select Pro customers, and another line on the same page says Enterprise only. The free Developer plan includes 10k recorded logs a month, and Portkey's pricing page lists granular budget and rate limits under Enterprise.
Can Portkey stop a leaked OpenAI key?
Only if the leaked key is a Portkey key. If someone has your raw OpenAI key, they call OpenAI directly and Portkey never sees the traffic. OpenAI's own hard spend limit, or a brake that freezes the project at OpenAI, stops that spend.
Can I edit a Portkey budget limit after setting it?
No. Portkey's docs say that once set, budget limits can't be edited by any organization member. The minimum limit is $1, and you can choose no reset, a weekly reset or a monthly reset.
Does Costbrake replace Portkey?
No. Costbrake doesn't route, log or cache requests. It watches the bill across 35 providers, alerts in minutes and offers admin-confirmed brakes at the provider. If you need a gateway, keep Portkey; add Costbrake for the traffic and providers Portkey can't see.
How much do Portkey and Costbrake cost?
Portkey Developer is free, Production is $49 a month with 100k recorded logs, and Enterprise has custom pricing. Costbrake Free is $0 for 2 connections, Pro is $12 a month or $120 a year with brakes, and Team is $39 a month or $390 a year.
Sources
Updated