Pay for actual API calls instead of a month of access.
Kimi K3 · API for AI coding
Kimi K3 API without another costly subscription
Connect the flagship Kimi K3 model to Claude Code, OpenCode, Cursor, or Roo Code. Pay only for the tokens your requests actually use.
- Pay as you go
- Two protocols
- No monthly charge
- Your own API key

OpenAI-compatible and Anthropic-compatible paths.
Set up Claude Code and OpenCode without guesswork.
See model, tokens, status, and charge in Workspace.
Where Kimi K3 fits
Use the model for real work, not as another idle subscription
Kimi K3 is built for long-horizon coding, codebase work, and automation. Start with a bounded task and judge quality alongside the actual token cost.
Repository analysis and refactoring
Inspect a module, find architectural issues, add tests, and explain a complex diff before merge.
Claude Code, OpenCode, Cursor, Roo Code
Use one BetterToken balance across Anthropic-compatible and OpenAI-compatible workflows.
Data, scripts, and automation
Bring Kimi K3 into data processing, documentation, code drafting, and tool-driven pipelines.
Ready to connect
Copy the config and run your first request
Claude Code uses the Anthropic Base URL without /v1. OpenCode uses the OpenAI-compatible Base URL with /v1. Verify the Model ID before setup.
- Create a dedicated test key
- Verify the current Model ID
{
"env": {
"ANTHROPIC_BASE_URL": "https://www.bettertoken.ai",
"ANTHROPIC_AUTH_TOKEN": "YOUR_BETTERTOKEN_API_KEY",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"API_TIMEOUT_MS": "3000000",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "YOUR_KIMI_MODEL_ID",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "YOUR_KIMI_MODEL_ID",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "YOUR_KIMI_MODEL_ID"
}
}{
"$schema": "https://opencode.ai/config.json",
"model": "bettertoken/YOUR_KIMI_MODEL_ID",
"provider": {
"bettertoken": {
"npm": "@ai-sdk/openai-compatible",
"name": "BetterToken",
"options": { "baseURL": "https://www.bettertoken.ai/v1" },
"models": {
"YOUR_KIMI_MODEL_ID": { "name": "YOUR_KIMI_MODEL_ID" }
}
}
}
}Never publish a real API key. Copy the current Model ID from Workspace or the live pricing catalog.
One API balance
Why BetterToken fits project-based AI coding
| Feature | Official Kimi platform | Kimi K3 through BetterToken |
|---|---|---|
| Billing | Kimi platform terms and payment methods | Metered API usage through BetterToken |
| Cost model | Kimi balance or product | Pay for tokens your requests consume |
| Tools | Setup through Kimi documentation | Verified paths for Claude Code and OpenCode |
| Protocols | Kimi platform interfaces | OpenAI-compatible and Anthropic-compatible setups |
| Usage records | Kimi account | Model, token counts, status, and charge in Workspace |
Transparent usage
Pay for completed work, not an unused month
Task cost depends on the current Kimi K3 rate and actual Input, Output, and Cache Tokens. Check pricing before a run and inspect the charge after each request.
- Live pricing
Use the current catalog instead of an old hard-coded rate.
- Request history
Inspect model, status, token counts, and the associated charge.
- Balance on demand
Fund the account for your current workload without a mandatory monthly plan.
Three steps
From registration to the first request
Create your key
Open Workspace, register, and create your own BetterToken API key.
Add balance
Fund the account for the workload you expect to run.
Paste the config
Set the correct Base URL and current Model ID, then send a short test request.
FAQ
Clear the last questions before your first request
Can I replace an official Kimi API key directly?
Does Kimi K3 work in Cursor and Roo Code?
Is a monthly subscription required?
Is there a first top-up offer?
Kimi K3 · BetterToken
Test Kimi K3 on one real task today
Create a key, connect your preferred tool, and evaluate output quality alongside the actual token cost.
