KeepBal quickstart
One key and one prepaid wallet for the tools your agent calls.
- Create an account, then create a key in API keys and save it.
- Give your agent the prompt below, install the Skill for your client, or try the three HTTP examples.
- See each call and its cost in Usage after the call is recorded.
Agent prompt
Paste this into your agent's chat:
set up https://keepbal.com/SKILL.md
Create your account · API keys · Connect with MCP
Install the Skill for your client
For a project-local install, run the shell commands for your client from your project root. Each downloads the hosted Skill and saves it as keepbal/SKILL.md in that client's skill directory.
Claude Code:
mkdir -p .claude/skills/keepbal
curl -fsSL https://keepbal.com/SKILL.md -o .claude/skills/keepbal/SKILL.md
Claude Code Skill documentation
Cursor:
mkdir -p .cursor/skills/keepbal
curl -fsSL https://keepbal.com/SKILL.md -o .cursor/skills/keepbal/SKILL.md
Codex:
mkdir -p .agents/skills/keepbal
curl -fsSL https://keepbal.com/SKILL.md -o .agents/skills/keepbal/SKILL.md
Tool search: Live. Models: Live.
Catalog tools
2543 tools and 7 models are live. Call a catalog tool with POST /apis/v1/<path> and its JSON body. Fixed tools show a price per successful call; variable tools show the provider price plus 35%.
Browse live tools · Live model prices
1. Find a tool
Set KEEPBAL_API_KEY to your key, then search for a tool. Searching is free.
curl https://keepbal.com/apis/v1/discover \
-H "Authorization: Bearer $KEEPBAL_API_KEY" \
-H "Content-Type: application/json" \
--data '{"query":"exa"}'
Example discovery result (excerpt). Carry publicId unchanged through inspect and run:
{
"data": [
{
"publicId": "exa/contents",
"path": "exa/contents"
}
]
}
2. Check its price
Use the publicId from discovery. Inspecting its inputs and pricing metadata is free. Fixed tools show the per-call price; variable tools are billed at provider price + 35%. Inspect does not calculate an input-specific quote.
curl https://keepbal.com/apis/v1/inspect \
-H "Authorization: Bearer $KEEPBAL_API_KEY" \
-H "Content-Type: application/json" \
--data '{"publicId":"exa/contents"}'
3. Run it
Fill input.body, input.queryParams, and input.pathParams as required by the tool. This page-contents example uses body parameters; the other buckets are empty.
curl https://keepbal.com/apis/v1/run \
-H "Authorization: Bearer $KEEPBAL_API_KEY" \
-H "Content-Type: application/json" \
--data '{"publicId":"exa/contents","input":{"body":{"urls":["https://example.com"],"text":true},"queryParams":{},"pathParams":{}},"max_cost_usd":"0.10"}'
Catalog tool spend caps: REST top-level max_cost_usd, MCP input.max_cost_usd, or the X-KeepBal-Max-Cost-USD header. Caps must cover the estimate and fit your available balance; they persist through async completion. Costs above the cap fail without charge. Some variable tools require a cap or quantity.
Fixed tools charge the published per-call price. Variable tools charge the provider's reported actual cost plus the disclosed markup (currently 35%). Missing actual cost on variable tools charges $0. Quotes are estimates, labelled estimated_price; completed price is the settlement debit. Failed, blocked, or timed-out runs cost $0.
First public tool call
curl https://keepbal.com/apis/v1/exa/contents \
-H "Authorization: Bearer $KEEPBAL_API_KEY" \
-H "Content-Type: application/json" \
--data '{"urls":["https://example.com"],"text":true}'
First model call
Select a live chat model ID from Models and replace MODEL_ID. Signup grants $1 credit once; tools and models share this wallet.
curl https://keepbal.com/v1/chat/completions -H "Authorization: Bearer $KEEPBAL_API_KEY" -H "Content-Type: application/json" --data '{"model":"MODEL_ID","messages":[{"role":"user","content":"Hello"}]}'