Skip to content

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

DocumentContents
Create Your First API KeyFirst-time creation, required settings, save immediately
Manage Keys: Copy / Disable / DeleteDay-to-day management, limiting damage from leaks, best practices
Key Limits, Expiration, and IP RestrictionsSet boundaries for shared devices or temporary use
  1. Split keys by purpose: one per device, one per client — don't share them
  2. Test right after creating: use the "First Call Check" to verify the group/model/balance/address
  3. Disable on leak: disable or delete and recreate immediately; don't wait
  4. Set limits for sharing: set quota caps and rate limits on keys you give to others

Running Into Problems?

Ready to get started?

Sign up and get $0.30 in trial credit; usage is billed per token in real time, so you pay only for what you use.

Sign up freeSee model pricing

For lawful and compliant use only. Please follow our Terms of Service and your local laws and regulations.