Skip to content
laminarity

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

  1. Open the dashboard and sign in with a Base wallet or the Telegram mini app.
  2. Add balance on the Billing page: USDC on Base, USDT on TON or a card.
  3. 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)

The essentials

Base URLhttps://api.laminarity.uk/v1
AuthenticationAuthorization: Bearer sk-or-…
Modelsdeepseek-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 callresponse 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).