“Token” has two meanings in Anyone — don’t mix them up:
API token (your key)
An API token is the credential you use to call the Anyone API. It typically looks like sk-xxxxx.
- Created in the dashboard
- Included in the
Authorization: Bearer header of your requests
- Each token has its own usage tracking and quota
- You can create new ones and delete old ones at any time
See Manage your API tokens for details.
Model tokens (billing unit)
Model tokens are the basic units AI models use to process text. Roughly:
- 1 English word ≈ 1–2 tokens
- 1 Chinese character ≈ 1–3 tokens
- 1,000 tokens ≈ 750 English words
The cost of each API call = input tokens × input price + output tokens × output price
The usage field in the API response tells you how many tokens each request consumed:
{
"usage": {
"prompt_tokens": 25, // 25 tokens for input
"completion_tokens": 100, // 100 tokens for output
"total_tokens": 125 // 125 tokens total
}
}
Want to save money? Use shorter system prompts, reduce context length, and choose cheaper models (e.g., gpt-4o-mini instead of gpt-4o).