Get started
Quickstart
Laminarity Relay is an OpenAI-compatible API for open-weight models. If your code already talks to OpenAI, you change two values: the base URL and the key.
1. Get an API key
- Open the dashboard and sign in with a Base wallet or the Telegram mini app.
- Add balance on the Billing page: USDC on Base, USDT on TON or a card.
- On the API keys page create a key. It is shown once — copy it somewhere safe.
2. Keep the key in the environment
export LAMINARITY_API_KEY=sk-or-...3. Send a request
from openai import OpenAI
client = OpenAI(
base_url="https://api.laminarity.uk/v1",
api_key="sk-or-...",
)
reply = client.chat.completions.create(
model="deepseek-ai/DeepSeek-V4-Flash-0731",
messages=[{"role": "user", "content": "Explain laminar flow in one line."}],
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.laminarity.uk/v1",
apiKey: process.env.LAMINARITY_API_KEY,
});
const reply = await client.chat.completions.create({
model: "deepseek-ai/DeepSeek-V4-Flash-0731",
messages: [{ role: "user", content: "Explain laminar flow in one line." }],
});
console.log(reply.choices[0].message.content);curl https://api.laminarity.uk/v1/chat/completions \
-H "Authorization: Bearer $LAMINARITY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-ai/DeepSeek-V4-Flash-0731",
"messages": [{"role": "user", "content": "Explain laminar flow in one line."}]
}'The essentials
| Base URL | https://api.laminarity.uk/v1 |
| Authentication | Authorization: Bearer sk-or-… |
| Models | deepseek-ai/DeepSeek-V4-Flash-0731, zai-org/GLM-5.3-Flash, MiniMaxAI/MiniMax-M2.7 |
| Price | $0.15 per million tokens, input and output |
| Cost of a call | response headers x-openrelay-charged-usd and x-openrelay-balance-usd |
Agents that cannot hold a key can pay for each request in USDC instead — see Pay per request (x402).