Skip to content

Quickstart

Keln is OpenAI-compatible: change the base URL and keep everything else.

Send your first request in less than 2 minutes.

1. Create an account and key

Sign up at app.keln.ai. Open Keys → Create key and copy the key. Keln shows it once, so save it.

2. Add credit

Keln is prepaid, so add credit first: Billing → Add credit. Payments are secured by Stripe (Billing & credits).

3. Make a request

Paste one of these into your project, with your key in place of sk-keln-…. Python and TypeScript need the OpenAI SDK (pip install openai or npm install openai).

from openai import OpenAI

client = OpenAI(base_url="https://api.keln.ai/v1", api_key="sk-keln-…")

stream = client.chat.completions.create(
    model="deepseek-ai/deepseek-v4-flash",
    messages=[{"role": "user", "content": "Hello Keln"}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="")
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.keln.ai/v1", apiKey: "sk-keln-…" });

const stream = await client.chat.completions.create({
  model: "deepseek-ai/deepseek-v4-flash",
  messages: [{ role: "user", content: "Hello Keln" }],
  stream: true,
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
curl https://api.keln.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-keln-…" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-ai/deepseek-v4-flash",
    "messages": [{"role": "user", "content": "Hello Keln"}],
    "stream": true
  }'

No code? Try any model in the portal Playground.

4. Check your usage and spend

Open Usage in the portal to see each request's tokens, cost, and latency (Usage & analytics).

Connect your tools

Where to go next