Help
Help Center
Start with the Quickstart for your first request. Use the links below for account help, client setup, and complete API examples.
| Task | Guide |
|---|---|
| Choose a model group or API format | Core concepts |
| Pay, redeem a code, or review charges | Billing |
| Create or protect a key | API keys |
| Connect an application | Tool connections |
| Send an API request | API overview and authentication |
| Fix a failed request | Errors and troubleshooting |
Account help
Add balance in the console and confirm the updated amount before making requests. API usage is deducted from your account balance. See billing and payment steps.
For a redemption code, remove surrounding whitespace and check its expiry and prior use. Follow the redemption steps and confirm the account balance is updated.
Open API Keys → Create key, select the intended model group and matching API format, and save the key privately. See key creation and security.
Groups and API formats
| Model access | Typical group | API format |
|---|---|---|
| GPT | GPT group | OpenAI-compatible Chat Completions or Responses |
| Claude | Claude group | Anthropic Messages |
| All-model | All-model group | Follow the current group instructions; an Anthropic-configured group may require Anthropic format even for a supported GPT model. |
The console's current group description is authoritative. Copy the exact, case-sensitive call name from Model Plaza or Channel Status. A mismatch can cause model_not_found, no upstream account, or a protocol error. See core concepts and the connection table.
The cURL examples below run in Bash, zsh, or Git Bash. Replace YOUR_API_KEY and the model placeholder with values for the matching key group. On Windows PowerShell, use the PowerShell example in Quickstart.
OpenAI-compatible requests
Use Chat Completions, Responses, or Images with an OpenAI-format key and the model enabled for its group.
curl https://relumen.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "YOUR_MODEL_ID",
"messages": [{"role": "user", "content": "Hello, Relumen."}]
}'curl https://relumen.ai/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "YOUR_MODEL_ID",
"input": "Reply with: Relumen connection succeeded."
}'curl https://relumen.ai/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "YOUR_IMAGE_MODEL_ID",
"prompt": "An orange cat beside a window in a cyberpunk city",
"size": "1024x1024",
"n": 1,
"response_format": "b64_json"
}'Use a Responses-compatible model for the Responses tab and an image model supporting the shown options for Image generation. A successful text request does not confirm image availability.
Anthropic-compatible requests
Use Messages with an Anthropic-format key. Its x-api-key header differs from OpenAI's Authorization: Bearer header.
curl https://relumen.ai/v1/messages \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "YOUR_MODEL_ID",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello, Relumen."}]
}'xAI / Grok
Supported Grok text models use Chat Completions. Supported image models use Images. Copy the exact model call name from the console and select the matching key group.
For a Grok text model, replace YOUR_MODEL_ID with its exact supported call name:
curl https://relumen.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "YOUR_MODEL_ID",
"messages": [{"role": "user", "content": "Please briefly introduce yourself."}]
}'After any test request, check Usage Records for its status, model, token usage, and cost. For request fields and troubleshooting, open the matching API reference above.
Client setup
- Claude Code: Anthropic-format connection for supported Claude models.
Codex: Responses-format connection for supported GPT models; follow any group-specific route instructions.
Cursor, Cherry Studio, and Claude Desktop: connection options supported by each installed client.
Troubleshooting
| Symptom | Check first |
|---|---|
| Authentication failure | The key is active, has no whitespace, and uses the correct header. |
model_not_found or no upstream account | Exact model name, group permissions, API format, account balance, and current availability. |
502 Bad Gateway | Service notices and the client connection; retry after checking service status or restart the client. Start a new session if its context is exhausted. |
| Wrong endpoint | Whether the field expects a Base URL or Full URL; avoid duplicated /v1 or endpoint paths. |
| Unexpected charge | Request time, token usage, model pricing, and group multiplier in Usage Records. |
| Redemption failure | Code completeness, expiry, prior use, and applicable product or account. |
Use the complete troubleshooting guide to isolate the request before contacting support.
Protect your API keys
Keep keys out of public repositories, screenshots, videos, and shared logs. Use separate keys for separate applications, review usage, and revoke any exposed key promptly. See key security.
Contact support
Email [email protected] with your account email, incident time and time zone, model, error text or redacted screenshot, client version, and relevant order details. Never include a complete API key.
For privacy requests, see Contact Us in the Privacy Policy.