Start now

Quickstart: Uncensored API

Drop this uncensored model into your existing OpenAI-compatible stack and start generating text immediately. We provide a direct API endpoint with transparent token math, so you know exactly what you pay for.

Authentication and Base URL

Start by pointing your client to our specific base URL and using your unique API key. We operate on a simple authentication model where your key grants access to the uncensored endpoint. You can generate this key instantly via Google sign-in or email on our key page. The base URL is https://api.pricingopenrouter.com/v1. This structure ensures compatibility with standard OpenAI SDKs without requiring custom wrappers. You do not need to manage multiple vendor keys or handle complex routing logic. Just set your environment variable and proceed to making requests. The system validates your credentials before processing any tokens. If your key is invalid, the API returns a 401 error immediately. This direct approach removes the proxy markup layers that often complicate standard aggregators.

Sending Your First Chat Completion

Send a standard chat completion request to receive a text response from the uncensored model. The model id is simply uncensored. This open-weight model runs on our servers and does not refuse lawful adult or controversial topics. You can send a single prompt or a conversation history. The API accepts standard JSON payloads with the messages array. Ensure you include the model field set to uncensored. The system processes your input and returns the generated text. This direct interaction allows for precise control over the generation process. You can test this with a simple curl command to verify connectivity. The response will include token usage statistics for transparency.

cURL

curl https://api.pricingopenrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Set the budget limit to five dollars for this week."}]
  }'

Python

from openai import OpenAI

client = OpenAI(base_url="https://api.pricingopenrouter.com/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)

Node.js

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.pricingopenrouter.com/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);

Streaming

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Tell the story in second person."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Generate your API key

Sign up, copy the key, update your base URL. That is the entire configuration.

Start now