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. Copy the key immediately—it won't be shown again!

3. Make Your First Request

Using cURL

export RELAI_API_KEY="rk-eu-your-key-here"

curl https://eu.api.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://eu.api.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://eu.api.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)

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