Get started
Quickstart
Create a key, choose its API format, and send your first request. For account help and detailed client settings, see the Help Center.
1. Add account balance
Sign in to the Relumen console and open the balance top-up page. Add funds, then confirm the updated balance before sending a request.
Relumen uses pay-as-you-go billing: API usage deducts from your account balance. Check the current model price, group multiplier, and usage limits in the console before making requests.
2. Create an API key
- Open API Keys and select Create key.
- Enter a name identifying the project or client.
- Choose a group that supports your target model and API format.
- Create the key, copy it, and store it securely.
API usage is charged to your account balance. A key's group controls its models, protocol, upstream sources, and pricing.
Keep your key private
The full key may be shown only once. Use separate keys for separate applications, and revoke any key that is exposed.
3. Choose the connection format
The color on the API Keys page identifies the key's protocol. Copy the exact model call name from the console; the examples below do not guarantee availability in every group.
| Key type | Base URL | Request endpoint | Authentication |
|---|---|---|---|
| Anthropic · yellow | https://relumen.ai | /v1/messages | x-api-key: YOUR_API_KEY |
| OpenAI-compatible · green | https://relumen.ai/v1 | /v1/chat/completions or /v1/responses | Authorization: Bearer YOUR_API_KEY |
| Gemini · blue | https://relumen.ai | Use the Gemini-compatible route for your model. | x-goog-api-key: YOUR_API_KEY |
Base URL or full URL?
Most clients append the endpoint automatically. Enter a complete request URL only when the client explicitly enables Full URL. Avoid duplicated paths such as /v1/v1.
4. Send a test request
Choose the example for your shell. Replace YOUR_API_KEY and YOUR_MODEL_ID with an OpenAI-compatible key and a model supported by its group.
export RELUMEN_API_KEY="YOUR_API_KEY"
curl https://relumen.ai/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $RELUMEN_API_KEY" \
-d '{
"model": "YOUR_MODEL_ID",
"messages": [
{"role": "user", "content": "Reply with: Relumen is connected."}
]
}'$env:RELUMEN_API_KEY = "YOUR_API_KEY"
@'
{
"model": "YOUR_MODEL_ID",
"messages": [
{"role": "user", "content": "Reply with: Relumen is connected."}
]
}
'@ | curl.exe https://relumen.ai/v1/responses `
-H "Content-Type: application/json" `
-H "Authorization: Bearer $env:RELUMEN_API_KEY" `
--data-binary "@-"The PowerShell example uses curl.exe and passes JSON through standard input, avoiding PowerShell's curl alias and command-line JSON quoting differences. Check Usage Records for request status, token usage, and cost.
For request fields and response examples, see Chat Completions or Messages.
Connect a tool
| Tool | Settings | Next step |
|---|---|---|
| Claude Code · Claude | Anthropic provider; https://relumen.ai; supported Claude model | Claude Code setup |
| Codex · GPT | OpenAI Responses provider; normally https://relumen.ai/v1; supported GPT model | Codex setup |
Agent clients can use tools, skills, MCP servers, and editor integrations. Choose a CLI if you prefer terminal workflows, or a desktop client for a graphical interface. Start with Claude Code for Claude and Codex for GPT. Official downloads: Claude Code · Codex.
xAI / Grok
Use an OpenAI-compatible group that supports the chosen Grok model:
| Setting | Value |
|---|---|
| Base URL | https://relumen.ai/v1 |
| Text endpoint | /v1/chat/completions |
| Image endpoint | /v1/images/generations |
| Model | Exact supported text or image model name from Model Plaza. |
If the first request fails
| Error | Check first | Then try |
|---|---|---|
502 Bad Gateway | Service notices and the client connection. | Retry after checking service status, restart the client, or start a new session if the context limit was reached. |
model_not_found | Exact model name, key group, and API format. | Copy the name from the console; then restart the client. |
| Authentication error | Key value and the header required by its protocol. | Remove accidental whitespace and replace an invalid or revoked key. |
Get help
Read the Help Center, API key guide, or billing guide. For further help, email [email protected] with the incident time, model, error text, and relevant order details. Never send a complete API key.