Quickstart
Get started in 30 seconds
from openai import OpenAI
client = OpenAI(
api_key="lk_your_api_key_here",
base_url="https://lowkeyai.top/api/v1",
)
response = client.chat.completions.create(
model="gpt-6-luna",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)Base URL & Endpoints
Chat Completions
POST /chat/completionsList Models (public)
GET /modelsCreate Deposit (dashboard session)
POST /billing/depositUser Balance (dashboard session)
GET /user/balanceDeposit & balance endpoints are dashboard features — they use your logged-in browser session, not the public Bearer lk_ key.
Authentication
All API requests require an API key in the Authorization header:
- Keys are prefixed with
lk_ - Create and manage keys in your dashboard
- Set custom rate limits per key (RPM/TPM)
- Keys are hashed - we cannot recover lost keys
- Rotate keys regularly for security
OpenCode Integration
OpenCode supports LowKeyAI as a custom OpenAI-compatible provider. Add the config and start coding.
1. Install OpenCode: curl -fsSL https://opencode.ai/install | sh
2. Create the config at ~/.config/opencode/opencode.json
3. Put your API key in the environment: export LOWKEYAI_API_KEY="lk_..."
4. Run opencode and pick a LowKeyAI model with /models
Supported Model Families
GPT-6 Luna, GPT-6 Sol, GPT-5.6, GPT-5.5
Claude Opus/Sonnet/Haiku 5.5
Gemini 3.1 Flash/Lite, 3 Pro Image
V4.1 Pro/Flash
Grok 4.5-4.7
Kimi K3
GLM 5.3, 5.3 Flash
Qwen 3.8, Wan 2.7
Seedance 2.0/2.5
Kling 2.6/3.0
H3 Video
1.1 Video