Model keys and costs
Two kinds of model calls happen when you use Zhanla: Zhanla's own, and your agent's. Zhanla pays for its own. Your agent's run on your keys, exactly as they do in production.
Zhanla's calls: no key, paid by Zhanla
Everything Zhanla does with a model goes through Zhanla's hosted proxy, on Zhanla's account. You don't need a key for any of it:
- the chat in the terminal
- reading your agent, the interview about your users, and drafting the rubric, eval and dataset
- the simulated users and the simulated-user check
- the judge
- reports, root causes and suggestions
- the code changes a refinement proposes
- production reports and watching production
Your own provider keys are never used for these calls, and Zhanla's key is never handed to your code.
Your agent's calls: your keys, your bill
Whenever Zhanla runs your agent, the agent calls its model with your keys, and your provider bills you as usual. That happens on:
- the set-up's test request, and any requests you record
- every trial run and eval run
- every iteration of a refinement, which reruns the eval on the changed code
Zhanla runs your agent with a bare environment: PATH, LANG, TMPDIR and only the variables named on the set-up card you approved. If the agent needs OPENAI_API_KEY, the card lists it. A variable that isn't listed never reaches the agent. A setup's start and stop commands, such as a local server, run in your own shell.
In production, your app calls its model as it always does. The SDK only sends traces to Zhanla, and adds no model calls.
What you see
The only model calls you pay for are your agent's own, and they show on your provider's bill. Zhanla's calls cost you nothing.
Tuning the judge re-judges recorded runs without running your agent, so it costs you nothing.
Updated Nov 24, 2026. Checked against release candidate b60cdc94. For AI agents: llms.txt.