Point the OpenAI SDK at uncensored models with one base URL

Export OPENAI_API_KEY and OPENAI_BASE_URL; your code stays as it is. Python and TypeScript, curl, the Vercel AI SDK, streaming, JSON output, errors, live cost.

Steps checked October 26, 2026 · prices as of November 16, 2026

Each model in this catalog speaks the OpenAI wire format; the official OpenAI SDKs therefore reach it after two environment variables and nothing else changes. Below: Python and TypeScript, curl, the Vercel AI SDK, the error codes, and the cost of one request at today’s price. Without writing any code, /chat runs the same models in the browser, three free turns a day without an account.

Set two variables

Any SDK that speaks the OpenAI API reads these two variables. Export them once and the snippets below carry no URL and no key. Its base URL ends in /v1, and its key is made in the console; the key begins with sk-unr-, appears a single time, and draws on a prepaid balance that opens at $10.

shell
1export OPENAI_BASE_URL="https://api.unrestrictable.ai/v1"
2export OPENAI_API_KEY="sk-unr-live-…"
OPENAI_BASE_URL
https://api.unrestrictable.ai/v1
nothing may follow the /v1
OPENAI_API_KEY
sk-unr-live-…
made in the console
model
glm-5.3-uncensored
any id on the models page

Python, with the official package

The official openai package as installed, nothing patched. Replies have the OpenAI shape, so code that reads OpenAI replies reads these the same way.

chat.py
1from openai import OpenAI
2
3client = OpenAI() # picks up OPENAI_BASE_URL and OPENAI_API_KEY from the environment
4
5response = client.chat.completions.create(
6 model="glm-5.3-uncensored",
7 messages=[{"role": "user", "content": "Explain how a lock pick works, step by step."}],
8 max_tokens=600,
9)
10print(response.choices[0].message.content)

Streaming uses the flag you already know from OpenAI; chunks arrive as the model produces them.

stream.py
1with client.chat.completions.create(
2 model="glm-5.3-uncensored",
3 messages=[{"role": "user", "content": "Write a villain's monologue."}],
4 stream=True,
5) as events:
6 for chunk in events:
7 piece = chunk.choices[0].delta.content
8 if piece:
9 print(piece, end="", flush=True)

TypeScript and Node

The openai npm package accepts baseURL and apiKey in its constructor, and the two variables above supply them.

chat.ts
1import OpenAI from 'openai';
2
3const client = new OpenAI({
4 baseURL: process.env.OPENAI_BASE_URL,
5 apiKey: process.env.OPENAI_API_KEY,
6});
7
8const response = await client.chat.completions.create({
9 model: 'glm-5.3-uncensored',
10 messages: [{ role: 'user', content: 'Explain how a lock pick works, step by step.' }],
11 max_tokens: 600,
12});
13console.log(response.choices[0]?.message.content);

The Vercel AI SDK

Use @ai-sdk/openai and give it this base URL. provider.chat(id) targets the Chat Completions path, which every listed model speaks; generateText, generateObject and streamText all work.

route.ts
1import { createOpenAI } from '@ai-sdk/openai';
2import { streamText } from 'ai';
3
4const provider = createOpenAI({
5 baseURL: process.env.OPENAI_BASE_URL,
6 apiKey: process.env.OPENAI_API_KEY,
7});
8
9const result = streamText({
10 model: provider.chat('glm-5.3-uncensored'),
11 prompt: 'Explain how a lock pick works, step by step.',
12});
13for await (const piece of result.textStream) process.stdout.write(piece);

Two curl calls

The list call costs nothing and confirms the key and the base URL; the chat call is a single billed request.

shell
1curl https://api.unrestrictable.ai/v1/models -H "Authorization: Bearer sk-unr-live-…"
shell
1curl https://api.unrestrictable.ai/v1/chat/completions \
2 -H "Authorization: Bearer sk-unr-live-…" \
3 -H "Content-Type: application/json" \
4 -d '{"model": "glm-5.3-uncensored", "messages": [{"role": "user", "content": "Hello"}]}'

Each reply carries a request id header, and a non-streamed reply carries the charge in USD as well. Both show on the console’s usage page.

Cost of one request

A request of 600 tokens in and 250 out, across four builds, at catalog prices from 2026-11-16:

ModelPer requestPer 1,000
GLM-5.3 Uncensored$0.00038$0.38
DeepSeek V4.1 Flash Abliterated$0.00093$0.93
GLM-5.3 Flash Uncensored$0.00016$0.16
Kimi K3 Uncensored$0.01$10.62
Uncensored models and their prices per million tokens
GLM-5.3 Uncensoredglm-5.3-uncensoredUncensored$0.282$0.846
DeepSeek V4.1 Flash Abliterateddeepseek-v4.1-flash-abliteratedAbliterated$0.8488$1.6975
GLM-5.3 Flash Uncensoredglm-5.3-flash-uncensoredUncensored$0.1053$0.3685
Kimi K3 Uncensoredkimi-k3-uncensoredUncensored$5.745$28.68

Prices per million tokens, read from the live catalog on 2026-11-16.

Structured output, streaming, tools

Pass response_format with json_object to request a JSON body; a reply that misses the requested format is refunded, and the receipt’s refund field records that. stream: true runs on every model. Tool calling runs on the builds whose base model has it; the model page says so.

json.py
1response = client.chat.completions.create(
2 model="glm-5.3-uncensored",
3 messages=[{"role": "user", "content": "Give three plot hooks as JSON with keys title and premise."}],
4 response_format={"type": "json_object"},
5)

Error codes

  • 401 invalid_api_key: a wrong or revoked key. Copy it afresh from the console.
  • 402 insufficient_balance: your balance does not stretch to this request. 402 monthly_limit_reached: the key reached the spend cap you set on it.
  • 404 model_not_found: no such id on the models page. Compare the spelling.
  • 429 rate_limited: the key reached its rate limit; wait the time given in retry-after.
  • Nothing is charged for a request that fails before the model replies.

Questions

Not for these models. Each listed build speaks only the OpenAI wire format, which the OpenAI SDK, LiteLLM, plain HTTP and the Vercel AI SDK’s OpenAI provider all reach.

Yes. Build a second client with baseURL https://api.unrestrictable.ai/v1 and this key, and leave the first one as it is.

One limit per key, configured in the console; a 429 reply includes retry-after. Beyond the balance there is no account-wide cap.

On the models page, or by calling GET /v1/models with your key, which returns exactly the ids that key can use. See the models page.

Every model above is on the uncensored model list with its live price per million tokens. Per-token pricing sets the whole catalog side by side, and the family directory groups the builds by base model.

Get a keyPrepaid from $10, no subscription.

New models and price changes, once a month.

New uncensored builds with their prices, price moves, and what the daily model check found.

Join on Telegram