AI product buildersUpdated
Give your AI agent a spending budget for paid APIs
Based on a real paid run of its steps,
Agents that call paid APIs need a limit that doesn't depend on the agent. With Orthogonal you can set monthly, daily and per-call limits on your account, quote calls for free, and use a saved flow (beta) that checks a budget before each step. The prompt on this page asks the agent to keep to a budget; on its own it doesn't enforce one.
Before you start: set up Orthogonal
Connect Orthogonal once, in the app you use. Eligible new accounts get a one-time $1 starter credit (phone check needed). If the prompt names a CSV and you use Claude chat, attach the file to the chat.
New to Orthogonal? Create an account.
On claude.ai or Claude Desktop, go to Plugins (or Customize → Connectors) → Add → Add custom connector. Enter the name Orthogonal and this URL:
Click Continue twice, choose Sign in now, then click Add. In a chat, turn it on from + → Plugins (or Connectors).
On Team or Enterprise, an owner adds it once under Organization settings → Connectors, then you click Connect. Free plans allow one custom connector.
An agent with a terminal can also set itself up from llms.txt. Other clients (ChatGPT, Codex): MCP setup docs.
Copy the flow
Why this prompt works
- Give a budget in dollars
- “My budget is $0.10” is a number the agent can check every call against.
- Ask for a quote before every call
- Quotes are free, and all 13 charged calls in our tests matched their quotes.
- Say what happens at the limit
- “Stop before any call that would go over” is an instruction the agent follows. Account limits and saved flows are what enforce it.
- Ask for quoted vs actual
- A table at the end shows any gap between what was quoted and what was charged.
Save it as a reusable flow (beta)
Paste this into your agent and ask it to save_flow it. Then run it on each row with run_flow: the same steps, checks and spend cap every time.
Saved flows are in beta for Orthogonal staff and beta teams.
How it works
- You connect Orthogonal once: a custom connector in Claude chat, or one command and a sign-in in Claude Code.
- Before each call, the agent asks Orthogonal for a free quote of that exact request.
- It compares the quote with what's left of the budget and skips any call that would go over.
- It runs the calls that fit and records each actual charge.
- It reports quoted vs actual. In this prompt the agent does the checking; a saved flow (beta) does it for you, and account limits refuse calls over them.
The real runs (Nov 27 and 30, 2026)
We ran the prompt above once on Nov 30, 2026: 4 calls, $0.0127, each matching its quote. It never reached its budget, so that run doesn't test the stop. The table shows the same research job as a saved flow (staff and beta teams only), with a budget per run.
All 13 charged calls matched their quotes in our tests (Nov 27 and 30, 2026). The company news price rose between the two dates, from $0.0078 to $0.0085.
What controls you get
- Account limits: monthly, daily and per-call, set under spend limits. A call over the per-call limit is refused. The account's per-call limit also covers MCP clients signed in with OAuth, which is how the setup on this page connects.
- API key limits: daily and per-call limits, plus allowed APIs and endpoints. They apply only to calls made with that key, not to an OAuth connection.
maxSpendon/v1/run: refuses a call priced above it (API only).- Saved flows (beta): a budget per run, checked before every step.
- Free tools:
quotebefore a call, andaccountandusagewhen you're signed in with OAuth.
What to know. Details are in the limits docs. Prices that depend on the response are quoted at their maximum, so a check against the quote can be conservative.
Why use this flow
- Costs you set, not costs you discover. Calls can be priced before they run.
- Quotes you can check. All 13 charged calls matched their quotes in our tests (Nov 27 and 30, 2026). Some prices are quotes of a maximum, and the charge can be lower.
- A stop that isn't up to the agent. A saved flow (beta) skips any step whose quote is over what's left, as it did in our tight-budget saved-flow run, and account limits refuse calls over them.
- One prepaid balance. Calls stop when credits run out, unless auto top-up is on.
Cost comparison
Our numbers come from the real runs above, on November 27 and 30, 2026.
FAQ
How do I stop an AI agent from overspending on paid APIs? Set monthly, daily and per-call limits on your Orthogonal account: a call over the per-call limit is refused, including from MCP clients signed in with OAuth. Saved flows (beta) also skip any step whose quote is over what's left of a run's budget. In a saved-flow run with a $0.005 budget, the third step was skipped because its $0.0085 quote was over the $0.001 left (Nov 30, 2026 test).
How can an AI agent pay for API calls?
Through Orthogonal, an agent pays per call from one prepaid balance across every provider in the catalog, or with a wallet over x402, MPP or Nanopayments. The free quote tool shows a price, and account and usage show the balance and charges when you're signed in.
Can an agent overspend its budget in a saved flow? A saved flow quotes each step before it runs and skips, at $0, any step whose quote is over what's left. In our two tight-budget saved-flow runs (Nov 27 and 30, 2026) it skipped the company news step. The prompt on its own hasn't been tested against its limit.
How does the agent know a price before it calls?
Orthogonal's quote tool returns the price of an exact request for free. All 13 charged calls matched their quotes in our tests (Nov 27 and 30, 2026).
What if I'm not using saved flows?
Set account limits, which apply to every call. The prompt on this page also asks the agent to quote each call and stop at your budget, but that depends on the agent. With the API, maxSpend on /v1/run refuses a call priced above it.
Why is a quote sometimes higher than the charge? Prices that depend on the response size are quoted at their maximum, so the check can be conservative. You're charged what the response actually used.
Who can use saved flows? Saved flows are in beta for Orthogonal staff and beta teams. Quotes and account limits work for everyone today.
Which flow should we build next?
Tell us the job you want your agent to do. We're picking the next flows with customers. Share your idea
The form asks for your email and subscribes you to the Orthogonal newsletter.