Quickstart — API key
The Tokligence API is drop-in compatible with the OpenAI Chat Completions format. Point any OpenAI client at our base URL and use your key.
Base URL: https://llm-api.tokligence.ai/v1
Auth: Authorization: Bearer <your-api-key>
- Create an account and get an API key from the dashboard.
- Set the base URL and key in your OpenAI client — nothing else changes.
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="tk-...",
base_url="https://llm-api.tokligence.ai/v1",
)
resp = client.chat.completions.create(
model="deepseek-v4-flash", # see /models for the full list
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
cURL
curl https://llm-api.tokligence.ai/v1/chat/completions \
-H "Authorization: Bearer tk-..." \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Discovering models
GET https://llm-api.tokligence.ai/v1/models
Or browse them with live prices at llm.tokligence.ai/models.
No account? Pay per request
Autonomous agents can skip signup and pay per call in USDC via x402.