Documentation Index
Fetch the complete documentation index at: https://docs.clearmaas.com/llms.txt
Use this file to discover all available pages before exploring further.
What you pay
ClearMaas charges you the upstream provider’s published per-token price, with no per-token markup. Revenue comes from optional paid subscription plans, not from inflating your token cost.The usage object
Every chat/responses response includes a usage field:
completion_tokens_details.reasoning_tokens for
the hidden reasoning pass.
Built-in tool charges
When the response uses a built-in / server-side tool, the call is counted and billed on top of token usage. ClearMaas passes the upstream provider’s per-call rate through with no markup; refer to each provider’s pricing page for current rates. Tools that trigger per-call charges across providers:- OpenAI —
web_search,web_search_preview,image_generation(Responses API built-in tools) - Anthropic —
web_search(server tool) - Google Gemini —
googleSearchgrounding (per grounded prompt on Gemini 2.x family; per query on Gemini 3.x family) - xAI Grok —
web_search,x_search,code_interpreter(Agent Tools API on/v1/responses)
| Tool | Per-call rate |
|---|---|
web_search | $10 per 1,000 calls (unified across models) |
web_search_preview | 25 / 1k for non-reasoning models (gpt-4o*, gpt-4.1*, etc.) |
ClearMaas response headers
| Header | When set |
|---|---|
X-Clear-Fallback-Level | Index of the fallback model that served the response |
X-Clear-Fallback-Model | Name of the fallback model |
X-Clear-Router | Name of the clearmaas/{name} router used |
X-Clear-Resolved-Model | Concrete model a named router resolved to |