---
title: "Docs: connect in two minutes"
canonical: https://uncensoredllm.ai/docs
generated: 2026-11-24T18:01:53.051Z
source: https://uncensoredllm.ai/docs
base_url: https://api.uncensoredllm.ai/v1
---

# Connect in two minutes.

Create a key in the [console](https://app.uncensoredllm.ai/console), set the base URL, pick a model id from the [Models page](https://uncensoredllm.ai/models). Three settings, any client.

- Base URL: https://api.uncensoredllm.ai/v1
- Key: sk-ullm-live-… Created in the console, shown once
- Model: glm-5.3-uncensored Any id from the Models page

## Send your first request with cURL

Replace the key placeholder below with your own key. This API request uses your prepaid balance; you can try a model without an account in the [free playground](https://uncensoredllm.ai/playground) first. A successful request returns JSON with the reply in `choices[0].message.content`.

```
export UNCENSOREDLLM_API_KEY="sk-ullm-live-…"

curl --fail-with-body "https://api.uncensoredllm.ai/v1/chat/completions" \
  -H "Authorization: Bearer $UNCENSOREDLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3-uncensored",
    "messages": [{"role": "user", "content": "Hello"}],
    "max_tokens": 128
  }'
```

A `401` means the key was not accepted; copy it again from your console. A `402` can mean insufficient credit or a key spending limit; read the error message and check your balance and key limits in the console. Check the [current prices](https://uncensoredllm.ai/pricing) before topping up, and keep your key in your terminal or server environment, out of browser code.

## OpenAI SDK, Python

In the same terminal, install the SDK with `python -m pip install openai`, save the example as `main.py`, then run `python main.py`.

```python
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.uncensoredllm.ai/v1", api_key=os.environ["UNCENSOREDLLM_API_KEY"])
reply = client.chat.completions.create(
    model="glm-5.3-uncensored",
    messages=[{"role": "user", "content": "Hello"}],
    stream=True,
)
for chunk in reply:
    if chunk.choices:
        print(chunk.choices[0].delta.content or "", end="", flush=True)
```

## OpenAI SDK, Node

Install the SDK with `npm install openai`, save the example as `main.mjs`, then run `node main.mjs` in the same terminal.

```javascript
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.uncensoredllm.ai/v1", apiKey: process.env.UNCENSOREDLLM_API_KEY });
const stream = await client.chat.completions.create({
  model: "glm-5.3-uncensored",
  messages: [{ role: "user", content: "Hello" }],
  stream: true,
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
```

## Anthropic SDK

Every model answers the Messages API at the same host, so Claude Code and anything built on the Anthropic SDK runs an uncensored build with `ANTHROPIC_BASE_URL` set to `https://api.uncensoredllm.ai` and your key.

```python
import anthropic

client = anthropic.Anthropic(base_url="https://api.uncensoredllm.ai", api_key="sk-ullm-live-…")
msg = client.messages.create(model="glm-5.3-uncensored", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}])
print(msg.content[0].text)
```

## MCP server

`https://api.uncensoredllm.ai/mcp` is an MCP server over the same key: every model becomes a tool in Claude Code, Cursor or any MCP client (chat, compare on several models at once, search, embed, rerank, transcribe, and image, video and speech generation), billed like any other request. The catalog, price estimate and daily check tools need no key.

## Pay per request with no account

A request with no key and an `X-PAYMENT: new` header answers `402` with an x402 quote and a crypto checkout link; pay it and send the request again with the payment id, and it runs with no account and no key. Chat, messages, responses, embeddings and search take it.

## SillyTavern

API: Chat Completion. Source: Custom (OpenAI-compatible). Custom endpoint: `https://api.uncensoredllm.ai/v1`. API key: your key. Then Connect and pick the model from the list it loads. Context Size and reply length for each build are on its [model page](https://uncensoredllm.ai/models); the [SillyTavern walkthrough](https://uncensoredllm.ai/guides/sillytavern) shows each screen.

## Janitor AI and other proxies

API: Proxy. URL: `https://api.uncensoredllm.ai/v1/chat/completions`. Key: your key. Model: the id from the Models page. Any client that takes a custom OpenAI URL works the same way. HammerAI, RisuAI, KoboldAI Lite, Agnai, Novelcrafter and Xoul have their own pages under [guides](https://uncensoredllm.ai/guides).

## OpenCode and Cline

Add an OpenAI-compatible provider with base URL `https://api.uncensoredllm.ai/v1` and your key, then name the model id. Coding builds such as the uncensored GLM flash code model are on the Models page.

## API reference

- [MCP servers](https://uncensoredllm.ai/docs/mcp-servers): register Streamable HTTP MCP servers on the organization, allowlist their tools and read recent calls.
- [Log export](https://uncensoredllm.ai/docs/exports): send finished requests to a webhook, Langfuse or an OTLP collector, and download the usage CSV.
- [Invoices](https://uncensoredllm.ai/docs/invoices): list credited top-ups and download each one as a PDF.
- [Billing details](https://uncensoredllm.ai/docs/billing-details): the company, address and tax id printed under Bill to on invoices.
- [Statement signing key](https://uncensoredllm.ai/docs/statements-public-key): the Ed25519 public key that verifies monthly statements and request receipts.
- [Keys](https://uncensoredllm.ai/docs/keys): create, list, change and revoke the organization’s API keys.
- [Requests and receipts](https://uncensoredllm.ai/docs/requests): look up what a finished request cost and fetch its signed receipt.
- [Balance and spend limits](https://uncensoredllm.ai/docs/budgets): read the organization balance and set per-key and per-user spend limits.
- [Batches](https://uncensoredllm.ai/docs/batches): submit, track and cancel an asynchronous batch of requests.
- [Files](https://uncensoredllm.ai/docs/files): upload, list, read and delete batch input and output files.
- [Count tokens](https://uncensoredllm.ai/docs/count-tokens): a free input-token estimate for a Messages-shaped body, counted on the gateway.
- [App usage stats](https://uncensoredllm.ai/docs/stats-apps): the public, no-key rollup of requests and tokens per client app over 7 and 30 days.
- [Auth keys](https://uncensoredllm.ai/docs/auth-keys): finish an OAuth PKCE sign-in and mint a key owned by the user’s organization.
- [Webhook deliveries](https://uncensoredllm.ai/docs/webhooks-deliveries): the last 50 webhook deliveries with event, attempts, status and the endpoint’s reply.

## Headers on every answer

`x-uplink-request-id` identifies the request for support, `x-uplink-charge` carries the settled charge, and streaming answers end with the usage block. A request that fails before the model answers is not charged.
