Create API Keys
API keys are bound to a group. The selected group controls which protocols, models, quotas, and media capabilities the key can use.
Create a Key
- Sign in to the website and open the API Key page.
- Select Create Key.
- Enter a recognizable name.
- Select a group that matches the platform and models you need.
- Optionally configure quota, rate limits, and expiration.
- Submit the form, then copy and store the generated key.
The full key is only needed by your client or server. Do not commit it to Git, paste it into support screenshots, or expose it in browser code.
Choose a Group
| Use case | Recommended group |
|---|---|
| Claude Code or Anthropic Messages | Anthropic, or another group whose Use Key dialog shows Claude Code |
| Codex, Responses, or Chat Completions | OpenAI group exposing the required models |
| OpenAI image generation or editing | OpenAI group with image generation enabled |
| Gemini native text, image, or multimodal generation | Gemini group |
| Model listing and usage queries | Any compatible active group |
Use the website's Use Key action as the source of truth for supported client configurations.
Verify the Key
List models with the new key:
bash
curl https://api.llmapi.site/v1/models \
-H 'Authorization: Bearer YOUR_API_KEY'A successful response confirms authentication and shows the model names available to that key. Endpoint access still depends on the selected group's platform and capabilities.
Common Issues
| Symptom | Cause and fix |
|---|---|
401 authentication error | The key is missing, incomplete, expired, disabled, or unknown. |
| The model is unavailable | Query GET /v1/models with the same key and use a returned model. |
An endpoint returns 404 or reports an unsupported platform | The selected group does not support that protocol. Create or select a key bound to the matching platform. |
| OpenAI image endpoints are unavailable | Use an OpenAI group with image generation enabled. |
| Claude Code is not shown in Use Key | The selected group does not expose a compatible Messages configuration. |