AI API Guides & Tutorials
Everything you need to build with Claude, GPT, GLM, and DeepSeek through a single API gateway.
Token1.US is a unified AI API gateway that lets you call every major large language model with one API key. These guides cover setup, pricing, model selection, and best practices.
What Is an AI API Gateway?
The complete guide to unified AI API gateways: what they are, how they work, and how to choose one. Start here if you are new.
Claude API Access Guide
Call Claude Sonnet, Opus, and Haiku from Python, Node.js, Cursor, LangChain, and curl. Code examples and troubleshooting.
GLM API Pricing Explained
Understand GLM-5.2 token costs, peak/off-peak multipliers, and how to minimize your spending. Practical examples included.
DeepSeek API Integration
Set up DeepSeek-V3 and DeepSeek-R1 with step-by-step code examples. Best for cost-effective coding and reasoning tasks.
AI Model Comparison
Side-by-side comparison of Claude, GPT, GLM, and DeepSeek. Compare capabilities, pricing, speed, and best use cases.
AI API Cost Calculator
Interactive tool to estimate your monthly AI API spending across all models. Free and instant.
Quick Start
Ready to start building? Here is the fastest path:
- Create an account and top up your balance
- Generate an API key from the dashboard
- Set
base_url="https://discount-token.com/v1"in your OpenAI SDK - Call any model by changing the
modelparameter
For a detailed walkthrough, read the full setup tutorial.