Getting started
Quick start
TokenArmy provides API access to all Claude models: native Anthropic Messages format, plus OpenAI-compatible format (so tools like Cursor and Cherry Studio that only support OpenAI format can call Claude). Your existing SDKs and clients need no code changes—just swap the Base URL and API Key for TokenArmy's.
Three steps to get started
- Sign up with an invite code and log in.Register.
- Top up your balance in the consoleBilling & top-up(card, PayPal, or stablecoin).
- Create an API Key inAPI Keys. The full key is shown once—save it now.
Base URL
| Format | Base URL | Endpoint |
|---|---|---|
| Anthropic (native) | https://tokenarmy.shop | POST /v1/messages |
| OpenAI-compatible | https://tokenarmy.shop/v1 | POST /v1/chat/completions |
The Anthropic SDK builds the URL itself by appending /v1/messages, so the Base URL doesn't include /v1. The OpenAI SDK appends /chat/completions, so the Base URL must include /v1. Both formats call the same Claude models—just put the Claude model ID in the model field.
Your first request
curl https://tokenarmy.shop/v1/messages \ -H "x-api-key: $TOKENARMY_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "claude-sonnet-5-5", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}] }'
Next steps
- Set upClaude Code,Cursor, and other tools
- Learn aboutbilling and balance queries
- Browseall models and pricing