# 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](https://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](platform/billing.md)).
## 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`).
=== "Python (openai)"
```python
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="")
```
=== "TypeScript (openai)"
```typescript
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"
```bash
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](platform/playground.md).
## 4. Check your usage and spend
Open **Usage** in the portal to see each request's tokens, cost, and latency
([Usage & analytics](platform/usage.md)).
## Connect your tools
<div class="grid cards" markdown>
- :brands-claude:{ .kd-card-icon }
[Claude Desktop ↗](claude-desktop.md)
Open models in Claude Desktop app. No code.
- :brands-codex:{ .kd-card-icon }
[Codex ↗](codex.md)
Open models in Codex, desktop and terminal.
- :brands-anthropic:{ .kd-card-icon }
[Anthropic-compatible API ↗](api/anthropic.md)
Anthropic Messages format, every Keln open model.
- :brands-openai:{ .kd-card-icon }
[OpenAI SDK and compatible clients ↗](api/index.md)
Your own app in Python, TypeScript, LangChain, Vercel AI SDK, or plain curl.
</div>
## Where to go next
<div class="grid cards" markdown>
- [Migrate from OpenAI / OpenRouter ↗](migrate.md)
Two lines change
- [What is Keln ↗](what-is-keln.md#what-keln-does-for-you)
What's on by default, with nothing to configure
</div>
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).