OpenAI-compatible uncensored LLM API.
uncensored LLM API explained
A direct, code-first alternative to major providers, featuring one uncensored model with a 100k context window and transparent token pricing.
Get API keyRead the docs
- 100k context window
- Uncensored model
- Transparent token pricing
Try it in one request
curl https://api.glmapi.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'
from openai import OpenAI
client = OpenAI(base_url="https://api.glmapi.cc/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.glmapi.cc/v1", apiKey: process.env.API_KEY });
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);
Guides
Practical articles on setup, pricing and integration.
GLM API Base URL: Connect Any OpenAI ClientThe base URL, auth header and model ID to point an OpenAI SDK or chat app at glmapi.cc, with curl, Python and Node examples and fixes for the…
GLM API Python: Chat, Streaming and Tools ExamplesWorking glm api python examples with the openai SDK: chat, streaming, JSON mode, tool calling, async batches and 429 handling against…
GLM API Pricing: $0.15 In, $0.50 Out per 1M TokensPrepaid token pricing explained: $0.15 per 1M input, $0.50 per 1M output, top-up bonuses to 15%, a no-card trial and worked monthly cost examples.
Gemma API: Myths vs FactsDiscover the truth about the Gemma API. We debunk common myths regarding its performance, context limits, and uncensored capabilities compared to