Skip to main content
1

Create an account and claim your trial credit

Visit the BetterToken registration page to create an account.You’ll automatically receive a ¥7 trial credit on signup — no credit card required, pay-as-you-go, refundable.
2

Get your API Key

Log in to the dashboard and create your API Key.
Keep your API Key safe. Store it as an environment variable rather than hardcoding it into your config files or source code.
Export it as an environment variable:
export BETTERTOKEN_API_KEY="your-api-key-here"
3

Test the API (optional)

BetterToken is compatible with the Anthropic SDK. Use the following to verify your connection:
pip install anthropic
import anthropic

client = anthropic.Anthropic(
    base_url="https://www.bettertoken.com/v1",
    api_key="your-api-key-here",
)

message = client.messages.create(
    model="claude-sonnet-4-5",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Hello, introduce yourself."}
    ]
)

print(message.content[0].text)

Next steps

Connect Claude Code

No model name needed — BetterToken routes automatically.

Connect Codex CLI

No model name needed — BetterToken routes automatically.