Claudech API documentation
Claudech gives you a family of fast, capable language models behind a single API that speaks the two formats your tools already understand, with transparent per-token billing and no surprise invoices.
What you get#
- One key, every model.
POST /v1/chat/completions(OpenAI format) andPOST /v1/messages(Anthropic format) both work with every Claudech model, with streaming, tool calling, JSON output and reasoning controls. - Drop-in compatibility. Use the OpenAI or Anthropic SDKs, Cursor, Claude Code, Continue, Open WebUI and any other tool that lets you set a base URL and an
sk-key. See SDKs & libraries and Integrations. - Predictable billing. Requests are paid for in Claudech tokens, a prepaid balance you top up with a subscription or one-off token packages. Every response tells you exactly what it cost. See Tokens & billing.
- Pay your way. Sign up with an email address and pay with PayPal, a credit or debit card, or crypto (BTC, ETH, USDT, USDC and more). Crypto needs no identity checks, there is no minimum commitment, and purchased tokens never expire.
- Usage visibility. Query your own usage, request history and balance over the API, or browse them in the dashboard.
How a request flows#
your app ──▶ https://api.claudech.com/v1/chat/completions
│ 1. authenticate the API key and check plan limits
│ 2. reserve tokens from your balance
│ 3. route to the model (with automatic fallback if needed)
│ 4. stream the response back to you
└▶ 5. meter the real usage and settle the reservationRequests that fail before the model produces output are never billed. If a model is temporarily unavailable, Claudech can transparently route to a fallback model of equal or greater capability; when it does, the response says so (fallback_used).
Base URL#
Use the host that matches your client’s wire format (same API key for both):
| Format | Base URL | Used by |
|---|---|---|
| OpenAI Chat Completions | https://api.claudech.com/v1 | OpenAI SDK, Cursor, LangChain, curl to /v1/chat/completions |
| Anthropic Messages | https://api.claudech.com | Anthropic SDK, Claude Code (ANTHROPIC_BASE_URL), curl to /v1/messages |
Anthropic clients append /v1/messages themselves — do not set Claude Code to /v1/chat/completions. Requests must use HTTPS; plain HTTP is rejected. Step-by-step tool setup: integrations.
Models at a glance#
| Model | Best for | Context | Reasoning |
|---|---|---|---|
claude-opus-5-5 | Everyday chat, coding and analysis | 1M | Yes |
claude-fable-5-1 | Complex multi-step work where quality matters most | 1M | Yes |
claude-opus-5 | Mathematics, research synthesis, hard debugging | 1M | Extended |
claude-opus-5-5 | High-volume classification, extraction and summaries | 1M | No |
Details, capabilities and current prices are on the Models page and are always available from GET /v1/models.
Next steps#
- Create an account and generate an API key.
- Follow the Quickstart to make your first request.
- Read Streaming and Tool calling when you are ready to build.
The Playground lets you experiment with prompts and parameters, then copies out the equivalent curl, JavaScript or Python code.