Quickstart

This guide will have you making your first API call in under 5 minutes.

1. Create an Account

Visit llmrelai.com/app/signupto create a free account. You'll receive $5 in free credits to get started.

2. Create an API Key

After logging in:

  1. Navigate to Keys in the sidebar
  2. Click Create Key
  3. Give your key a name and set an optional rate limit
  4. Choose a scope:
    • Regional (default) — locked to your home region. Format: relai_sk_eu_live_… or relai_sk_us_live_…. Use this for strict data residency.
    • Global — usable on any region; billing stays in your home region. Format: relai_sk_gbl_eu_live_…. See Regions & Key Scopes.
  5. Copy the key immediately—it won't be shown again!

3. Make Your First Request

Using cURL

export RELAI_API_KEY="relai_sk_eu_live_your-key-here"

curl https://api.eu.llmrelai.com/v1/chat/completions \
  -H "Authorization: Bearer $RELAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "smart",
    "messages": [
      {"role": "user", "content": "Write a haiku about programming"}
    ]
  }'

Using the OpenAI SDK (TypeScript)

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.RELAI_API_KEY,
  baseURL: "https://api.eu.llmrelai.com/v1",
});

const response = await client.chat.completions.create({
  model: "smart",
  messages: [{ role: "user", content: "Write a haiku about programming" }],
});

console.log(response.choices[0].message.content);

Using the OpenAI SDK (Python)

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["RELAI_API_KEY"],
    base_url="https://api.eu.llmrelai.com/v1",
)

response = client.chat.completions.create(
    model="smart",
    messages=[{"role": "user", "content": "Write a haiku about programming"}]
)

print(response.choices[0].message.content)

Using a global key? Point your baseURL at whichever region you want this particular request to run in (api.eu.llmrelai.com or api.us.llmrelai.com). Billing always settles in the key's home region.

4. Check Your Usage

Visit your dashboard at llmrelai.com/app to view:

  • Balance: Your remaining credits
  • Usage: Cost breakdown by model and time
  • Keys: Manage API keys and rate limits

Next Steps