API Keys
An API key (API Key) is your "pass" to the models on this site. This section covers everything from creating and managing keys to protecting them.
Basic Concepts
- Each key is bound to one group (service), and the group determines which models you can call
- The key format is usually
sk-xxxxxxxx - The key is shown only once at creation, so be sure to save it right away
Read These in Order
| Document | Contents |
|---|---|
| Create Your First API Key | First-time creation, required settings, save immediately |
| Manage Keys: Copy / Disable / Delete | Day-to-day management, limiting damage from leaks, best practices |
| Key Limits, Expiration, and IP Restrictions | Set boundaries for shared devices or temporary use |
Recommended Practices
- Split keys by purpose: one per device, one per client — don't share them
- Test right after creating: use the "First Call Check" to verify the group/model/balance/address
- Disable on leak: disable or delete and recreate immediately; don't wait
- Set limits for sharing: set quota caps and rate limits on keys you give to others
Running Into Problems?
- 401/403 → Authentication and Permission Errors
- Balance insufficient message → Troubleshooting Quota Issues
- Model 404 → Troubleshooting Models and Rate Limiting
