Base URL and authentication
| Base URL | https://chainless.one/v1 |
| Auth header | Authorization: Bearer cl-… (or x-api-key: cl-…) |
| Keys | create and limit them at dashboard/keys |
| Endpoints | GET /v1/models, POST /v1/chat/completions |
Requests need an active plan on the account (pricing). Each key can carry its own spending limit and expiry date.
List models
curl https://chainless.one/v1/modelsReturns {"object": "list", "data": [...]} where each item has id, name, context_length and a pricing object. No key is needed. Current models:
| Model | id | Context | Max output | Capabilities | Speed |
|---|---|---|---|---|---|
| GLM 5.3 Uncensored | glm-5.3-uncensored | 1M | 128K | reasoning, tools | Standard |
| GLM 5.3 Fast Uncensored | glm-5.3-fast-uncensored | 1M | 128K | reasoning, tools, images | Fast (low-latency route) |
| DeepSeek V4.1 Uncensored | deepseek-v4.1-uncensored | 1M | 128K | reasoning, tools, images | Standard |
| DeepSeek V4.1 Fast Uncensored | deepseek-v4.1-fast-uncensored | 1M | 128K | reasoning, tools, images | Fast (low-latency route) |
| Kimi K3.1 Pro Uncensored | kimi-k3.1-pro-uncensored | 1M | 128K | reasoning, tools, images | Standard |
Model ids are case-insensitive and also accepted with a chainless/ prefix (chainless/glm-5.3-fast-uncensored).
Chat completions
curl https://chainless.one/v1/chat/completions \
-H "Authorization: Bearer $CHAINLESS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3-fast-uncensored",
"messages": [
{"role": "system", "content": "You are a concise security engineer."},
{"role": "user", "content": "List the HTTP response headers that matter for clickjacking protection."}
],
"max_tokens": 800
}'from openai import OpenAI
client = OpenAI(base_url="https://chainless.one/v1", api_key="cl-...")
resp = client.chat.completions.create(
model="glm-5.3-fast-uncensored",
messages=[{"role": "user", "content": "Summarise RFC 9116 (security.txt) in five bullets."}],
)
print(resp.choices[0].message.content)
print(resp.usage)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://chainless.one/v1", apiKey: process.env.CHAINLESS_API_KEY });
const res = await client.chat.completions.create({
model: "glm-5.3-fast-uncensored",
messages: [{ role: "user", content: "Explain SameSite=Lax vs Strict in two sentences." }],
});
console.log(res.choices[0].message.content);Standard OpenAI request fields are passed through to the model: model, messages (non-empty), stream, stream_options, max_tokens or max_completion_tokens, temperature, top_p, stop, tools, tool_choice, response_format, reasoning_effort. Fields that identify your end users (user, safety_identifier, metadata) and storage hints (store) are dropped before the request reaches the model.
The response is a standard chat.completion object. usage has prompt_tokens, completion_tokens, total_tokens, prompt_tokens_details.cached_tokens and completion_tokens_details.reasoning_tokens.
Output limits
max_tokens defaults to the model's maximum output and is capped so that one request never costs more than the account (or the key's limit) can pay. If the remaining balance is too small for a useful answer, the API returns 402 before calling the model.
Streaming
Set "stream": true to receive Server-Sent Events in the OpenAI format, ending with data: [DONE]:
data: {"choices":[{"index":0,"delta":{"reasoning":"The user wants…"}}]}
data: {"choices":[{"index":0,"delta":{"content":"Use "}}]}
data: {"choices":[{"index":0,"delta":{"content":"X-Frame-Options"}}]}
data: [DONE]- Answer text arrives in
choices[0].delta.content. - Reasoning text, when the model sends it, arrives in
delta.reasoning(on some routesdelta.reasoning_content). Most OpenAI clients ignore unknown fields, so it is safe to leave it. - Add
"stream_options": {"include_usage": true}to get a final chunk withusage. - If the client disconnects mid-stream, the request is billed for what was generated up to that point.
Reasoning effort
All current models reason before answering. reasoning_effort takes minimal, low, medium, high, xhigh, max, or none/off, and is mapped to the closest level each model supports. Lower effort means fewer reasoning tokens (billed as output) and a faster first token.
Tool calling
Models with tool support accept tools and tool_choice in the OpenAI format and return message.tool_calls. Run the function yourself, append a {"role": "tool", "tool_call_id": "...", "content": "..."} message and call the API again. GLM, DeepSeek and Kimi models all support tools; see /models.
Images
Every model except GLM 5.3 Uncensored accepts image_url content parts in user messages (https URLs or data:image/...;base64, URLs):
{"role": "user", "content": [
{"type": "text", "text": "What does this login page leak?"},
{"type": "image_url", "image_url": {"url": "data:image/png;base64,iVBOR..."}}
]}Errors
Errors use the OpenAI shape: {"error": {"message": "...", "type": "...", "code": "..."}}.
| Status | type / code | When |
|---|---|---|
| 400 | invalid_request_error | body is not JSON, or messages is missing or empty |
| 401 | authentication_error / invalid_api_key | missing, wrong or revoked key |
| 401 | authentication_error / key_expired | the key passed its expiry date |
| 402 | insufficient_quota / plan_required | no active plan on the account |
| 402 | insufficient_quota / insufficient_quota | plan credit and balance are used up |
| 402 | insufficient_quota / key_limit_reached | the key reached its spending limit |
| 404 | invalid_request_error / model_not_found | unknown model id, or the model is temporarily unavailable |
| 404 | invalid_request_error / not_found | an endpoint other than the two above |
| 429 | rate_limit_error | more than 600 requests per minute on one key |
| 502 | upstream_error | the model is busy everywhere; retry with backoff |
Retry 429 and 502 with exponential backoff. Do not retry 400, 401 or 402 without changing something.
CORS
/v1/* answers CORS preflight requests from any origin, so browser tools and local web UIs can call it directly. Keep keys out of public front-end code.
Clients and tools
Setup notes for Cursor, Cline, OpenCode, Kilo Code, Continue, Open WebUI, LiteLLM, LangChain, the Vercel AI SDK and pi are on /integrations. For agent work under an authorized scope, see the ready-made brief on /guides.