Quickstart

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 ​

  1. Open API Keys and select Create key.
  2. Enter a name identifying the project or client.
  3. Choose a group that supports your target model and API format.
  4. 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 typeBase URLRequest endpointAuthentication
Anthropic · yellowhttps://relumen.ai/v1/messagesx-api-key: YOUR_API_KEY
OpenAI-compatible · greenhttps://relumen.ai/v1/v1/chat/completions or /v1/responsesAuthorization: Bearer YOUR_API_KEY
Gemini · bluehttps://relumen.aiUse 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.

bash
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."}
    ]
  }'
powershell
$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 ​

ToolSettingsNext step
Claude Code · ClaudeAnthropic provider; https://relumen.ai; supported Claude modelClaude Code setup
Codex · GPTOpenAI Responses provider; normally https://relumen.ai/v1; supported GPT modelCodex 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:

SettingValue
Base URLhttps://relumen.ai/v1
Text endpoint/v1/chat/completions
Image endpoint/v1/images/generations
ModelExact supported text or image model name from Model Plaza.

If the first request fails ​

ErrorCheck firstThen try
502 Bad GatewayService 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_foundExact model name, key group, and API format.Copy the name from the console; then restart the client.
Authentication errorKey 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.

Need help? Visit the Help Center →Open console ↗