claude-sonnet-4.5
Use claude-sonnet-4.5 through KeepBal. POST /v1/messages. Input: $3.75 / Output: $18.75 / Cache read: $0.38 / Cache write: $7.5 per 1M tokens.
curl
curl https://keepbal.com/v1/messages -H 'Authorization: Bearer YOUR_KEEPBAL_KEY' -H 'Content-Type: application/json' -d '{"model":"claude-sonnet-4.5","messages":[{"role":"user","content":"Summarize this research."}],"max_tokens":256}'OpenAI SDK
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ["KEEPBAL_API_KEY"], base_url="https://keepbal.com/v1")
# Messages uses its native request format through the SDK HTTP client.
response = client.post("/messages", body={"model":"claude-sonnet-4.5","messages":[{"role":"user","content":"Summarize this research."}],"max_tokens":256}, cast_to=dict)
print(response)Pair with tools
Search for source material, inspect and run a tool, then pass the results to a model for summarization or analysis. Browse tools
| Tool | What it returns | Price |
|---|---|---|
| Chatgpt Ask | Get ChatGPT's consumer-app answer to a prompt, with cited sources, in a chosen country. | Variable: provider price plus 35% |
| Copilot Ask | Get Copilot's consumer-app answer to a prompt, with cited sources, in a chosen country. | Variable: provider price plus 35% |
| Gemini Ask | Get Gemini's consumer-app answer to a prompt, with cited sources, in a chosen country. | Variable: provider price plus 35% |
FAQ
Which endpoint should I use?
POST /v1/messages with the exact model ID claude-sonnet-4.5.
How is usage priced?
Input: $3.75 / Output: $18.75 / Cache read: $0.38 / Cache write: $7.5 per 1M tokens. Charges add the applicable input, output, cache read, and cache write token amounts at their respective rates. Cached input is charged at its cache rate instead of the regular input rate. Embeddings are billed for input tokens only. Billing uses returned token usage.