Locus product guide · Updated
Split AI API costs per client and pass them on with a fee
To split API costs per client, give each client its own key or a client tag on every call, cap each client's spend so a runaway workflow stops at a limit, and bill the recorded cost plus your fee. Locus Pro (paywithlocus.com) is one option: each client gets its own prepaid balance and agent keys with per-call, per-run and monthly limits, every paid call is recorded against that client, and calls are charged at the base price plus the markup you set. For model calls alone, LiteLLM's Customer Management and OpenAI project spend limits also split and cap cost by client.
Setup, step by step
Step 1
Open a Locus Pro Enterprise workspace
Sign up at paywithlocus.com, then choose Enterprise under Billing, then Plans.
Locus Pro vs. EnterpriseStep 2
Set your markup
Open Agent tools, then Pricing, and set a workspace default markup. Override it for any provider or endpoint that needs a different price.
Credits and pricingStep 3
Give each client a key and a policy
Create an end-user agent key for each client's workflow with a per-call limit, a per-run budget and a monthly budget. Add a client policy for a budget per period and the providers that client may use.
Step 4
Fund each client's balance
Send the client a checkout link to buy credits, or invoice them yourself and allocate credits from your pool under Billing, then Credits.
Customer balances
How do I split API costs per client?
Every paid call needs to carry the client it ran for. There are three common ways to do that: a separate provider project and key per client, a gateway that reads a client header on each request, or a platform that keeps a separate balance for each client.
OpenAI projects are the simplest when every workflow uses OpenAI models: one project per client, with usage broken down by project. LiteLLM's Customer Management, in a self-hosted LiteLLM Gateway from v1.111, reads the client from request headers and tracks spend by customer organization, team and member. Without LiteLLM Enterprise it allows 5 customer organizations, 5 teams per organization and 5 members per team.
Locus Pro covers paid third-party APIs, such as search, scraping and enrichment, plus model inference, from one balance. Each client can have its own balance, or you tag each call with the X-Locus-Attribution header and see spend per client by name on the Customers page. The table follows each vendor's docs, checked November 30, 2026.
| Approach | How cost is split | How a runaway workflow stops | How you add your fee |
|---|---|---|---|
| OpenAI projects | One project and key per client; usage is broken down by project | A monthly project spend limit, which stops requests only when Enforce a hard limit is on | Not built in; you invoice from the usage report |
| LiteLLM Customer Management | Headers name the customer organization and member on each request | Budgets per organization, team and member with a reset period, plus optional budget webhooks | A percentage surcharge on customer requests, from v1.112 |
| Locus Pro Enterprise | A balance per client, or a client tag on each call | The client's balance and policy, per-call and per-run limits on each key, and a workspace hard limit, all checked before the call runs | A percentage markup, a flat amount per call, or both, set by you |
How do I catch a workflow that's quietly burning money?
Alerts tell you after the money is spent; limits checked before each call stop it. OpenAI says spend alerts don't stop requests, and that even an enforced project limit isn't instantaneous, so recorded spend can slightly exceed it. LiteLLM enforces customer budgets against billed spend and can call a webhook when a customer crosses a threshold.
A quiet leak is usually a loop: an automation that retries, re-searches or re-scrapes the same input all night. The control that catches it is a budget per run, not per month.
- Per-run budget: a Locus Pro agent key can carry a per-loop budget, and a client policy can cap calls per loop, so one stuck run stops on its own.
- Per-call ceiling: each call can name the most it may cost, and a call priced above it is refused with nothing charged.
- Client budget: a client policy sets a budget per hour, day, week or month, a maximum charge per call, a call limit per period, and the providers that client may use.
- Workspace ceiling: a monthly hard limit for the whole workspace, with a monthly spend email alert and a low-balance email alert.
- Approval: optionally, a person approves any agent call above an amount you choose before it runs.
How do I pass API costs on to clients with a fee?
Pick how the client pays first. Cost-plus invoicing bills last month's usage with your fee added. Prepaid credits have the client pay before the work runs, so a client who stops paying also stops spending. A retainer with an included allowance bills a fixed fee and charges for usage above it.
On Locus Pro, a client's calls are charged at the base price plus your markup: a percentage, a flat amount per call, or both, with a workspace default you can override for one provider or endpoint. A client can buy credits by card through Locus-hosted checkout, and your markup accrues as earnings Locus pays out to you. Or you invoice the client your own way and allocate credits to their balance, so your margin returns to your pool as they use them.
Client balances, markup and the Customers page are Locus Pro Enterprise features, and Enterprise plans are self-serve. A personal Locus Pro account pays the listed tool price and doesn't set resale prices.
Which setup fits an AI automation agency?
Choose by what your workflows call and who should collect the money.
- Only OpenAI models, a few clients: one OpenAI project per client with an enforced hard limit, and an invoice from the usage report.
- Many model providers behind your own gateway: LiteLLM Customer Management with customer budgets and a surcharge, and your own invoicing.
- Search, scraping, enrichment and model calls in the same workflows: Locus Pro Enterprise, with a balance, keys and limits per client and your markup on every call.
Frequently asked questions
How do I track API costs per client?
Make every paid call carry the client it ran for: a separate OpenAI project per client, LiteLLM customer headers on each request, or with Locus Pro a balance per client or an attribution tag on each call. Locus Pro then shows each client's spend and top providers on its Customers page.
How do I stop one client's workflow from running up a big bill?
Use limits that are checked before each call. With Locus Pro, give the workflow's key a per-run budget and a per-call limit, and set a budget for the client, so a looping automation stops at the limit with nothing charged for the refused call. An alert alone only tells you afterwards.
Can I add a fee on top of the API costs I pass to clients?
Yes. LiteLLM adds a percentage surcharge to customer requests. Locus Pro Enterprise charges each client's calls at the base price plus your markup, as a percentage, a flat amount per call, or both, and you can set a different markup for a provider or a single endpoint.
Do OpenAI project spend limits stop requests?
Only when Enforce a hard limit is turned on for the project. OpenAI says enforcement isn't instantaneous, so recorded spend can slightly exceed the limit, and spend alerts notify you without stopping requests.
Implementation references
Use these first-party references for current request contracts and account requirements. Tool availability, prices, and negotiated terms can change.
Sources
Third-party details were checked on November 30, 2026. Vendors change pricing and features often, so confirm on their site before you decide.