EN ▾
Get API key

Qwen Abliterated Online: Use It via API, No Setup

You can use an uncensored model online through an OpenAI-compatible API in a few minutes, with no download and no GPU. This page walks through the key, the first request, streaming, tools and the limits.

Updated

Terminal sending a stream of glowing tokens to a cloud node, showing an online API request without local setup

Key points

  • Three steps: create an account, claim the free trial, change your client's base URL.
  • Base URL is https://api.qwenabliterated.cc/v1 and the model ID is uncensored.
  • Streaming, tool calling and JSON mode work through the normal OpenAI parameters.
  • Handle HTTP 429 with a short retry; a stream keeps its concurrency slot until it ends.

The short route

If you searched for qwen abliterated online, you probably want to skip installing weights on your own machine. The practical route is a hosted endpoint that speaks the OpenAI protocol. You do not download a file or size a GPU. You get a key, point a client at a URL, and send chat requests.

  1. Sign up with Google, or with email and password.
  2. Open the API key page and claim the trial credit with one click.
  3. Set your client's base URL to https://api.qwenabliterated.cc/v1, the key as the bearer token and the model to uncensored.

One caveat before you start. This is a hosted open-weight model run by an independent provider and tuned to answer without content refusals for lawful adult use. It is not an official Alibaba or Qwen service, and you cannot swap in a different checkpoint. If you need one particular community build, you will have to run that locally.

Get a key and the trial credit

Go to the API key page and sign in. After sign-up there is a button that claims $0.50 of trial credit. It needs no card, it is valid for 7 days, and each person gets one. Trial keys are limited to 2 concurrent requests and 60 requests per minute, which is enough for testing a script or a front end by hand.

Half a dollar goes further than it sounds at $0.15 per 1M input tokens and $0.50 per 1M output tokens. A request with 2,000 input tokens and 500 output tokens costs 2,000 / 1,000,000 x $0.15 = $0.0003 for input plus 500 / 1,000,000 x $0.50 = $0.00025 for output, so $0.00055 in total. That is about 900 such requests.

When you want more, top-ups are any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200. You can pay by crypto (USDT on TRC20, USDC on Base). Credit is prepaid, never expires, and failed or refused requests are not charged. A full key raises the limits to 8 concurrent requests and 300 per minute. Details are on the pricing page.

First request with curl

Curl is the quickest check that your key works. Store the key in an environment variable so it stays out of your shell history and your code.

export UNC_KEY="YOUR_KEY"

curl https://api.qwenabliterated.cc/v1/chat/completions \
  -H "Authorization: Bearer $UNC_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [
      {"role": "user", "content": "Write a two-sentence villain monologue."}
    ],
    "temperature": 0.9
  }'

The reply is a standard chat completion object: the text sits in choices[0].message.content and token counts in usage. Look at the response headers too. X-Balance-USD shows your remaining credit, X-Request-Id is what you quote if you contact support, and the two X-RateLimit-Limit-* headers show your request and concurrency ceilings. To list what the key can call, send GET /v1/models to the same base URL.

Python and Node

Both official OpenAI libraries work unchanged. Only the base URL, key and model differ from a stock setup.

from openai import OpenAI

client = OpenAI(base_url="https://api.qwenabliterated.cc/v1", api_key="YOUR_KEY")

resp = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "Answer plainly and stay in the role the user sets."},
        {"role": "user", "content": "Describe a rainy harbour town in four sentences."},
    ],
    max_tokens=300,
)
print(resp.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.qwenabliterated.cc/v1",
  apiKey: process.env.UNC_KEY,
});

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Give me five names for a fantasy tavern." }],
});
console.log(resp.choices[0].message.content);

The max_tokens value is optional. Without it, the completion can use whatever remains of the 100,000-token window, so set a cap when you want predictable cost per call.

Streaming replies

For chat interfaces you want tokens as they are produced. Add stream: true and read the server-sent events. Usage is reported at the end of the stream.

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Tell a short ghost story set in a lighthouse."}],
    stream=True,
    stream_options={"include_usage": True},
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Remember that a streamed request occupies its concurrency slot until the stream finishes. If your app opens a stream and the user closes the tab, make sure the connection is actually closed on your side. Otherwise a trial key's two slots disappear quickly.

JSON mode and tool calls

When another program consumes the output, ask for JSON with response_format. Mention JSON in the prompt as well, since the model still follows your instructions about the shape.

resp = client.chat.completions.create(
    model="uncensored",
    response_format={"type": "json_object"},
    messages=[
        {"role": "system", "content": "Reply only with JSON: {\"name\": string, \"traits\": [string]}"},
        {"role": "user", "content": "Create a gruff innkeeper character."},
    ],
)
print(resp.choices[0].message.content)

Tool calling follows the OpenAI format: pass tools and optionally tool_choice, read tool_calls from the assistant message, run your function, then send the result back as a message with role: "tool". Streamed responses carry tool_calls deltas too. Your code should always validate arguments before acting on them, because a model can produce malformed JSON or a wrong parameter, as any model can.

Reading balance and cost per call

Prepaid billing is easier to trust when you can watch it move. Every response carries an X-Balance-USD header, and the body includes a usage object with prompt and completion token counts. With the Python SDK you reach the headers through the raw response wrapper.

raw = client.chat.completions.with_raw_response.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Name three moods for a rainy-day playlist."}],
    max_tokens=80,
)
print("balance:", raw.headers.get("X-Balance-USD"))
print("request id:", raw.headers.get("X-Request-Id"))
completion = raw.parse()
u = completion.usage
cost = u.prompt_tokens / 1_000_000 * 0.15 + u.completion_tokens / 1_000_000 * 0.50
print(u.prompt_tokens, u.completion_tokens, round(cost, 6))

A quick sanity check of that formula: 1,000 prompt tokens and 400 completion tokens come to $0.00015 for input and $0.0002 for output, so $0.00035 for the call. Logging this number per request makes it easy to spot a prompt that grows too long, which is the usual reason a bill creeps up. Chat history is resent on every turn, so a conversation that reaches 50,000 tokens of history costs 50,000 / 1,000,000 x $0.15 = $0.0075 in input for each further message, before any output. Trim or summarise old turns if that adds up for your use.

Troubleshooting the first hour

Most failed first attempts come from a short list of causes.

  • 401 or an authentication error. The key is missing, has a stray space, or sits in the wrong header. It must be sent as Authorization: Bearer YOUR_KEY. SDKs add this for you when you pass api_key.
  • 404 or a model error. Check the base URL ends in /v1 and the model is spelled uncensored. A client that appends /v1 itself will build a doubled path if you include it twice.
  • 429 straight away on a trial key. The trial allows 2 concurrent requests. A script that fires ten in parallel will trip concurrency. Lower the worker count or claim a full key by topping up.
  • Replies that stop early. You set max_tokens too low, or the context was nearly full. Prompt plus completion must fit in 100,000 tokens.
  • Request body too large. The limit is 8 MB. Send fewer or shorter documents per call.

If something still looks wrong, quote the X-Request-Id value when you write to support. It lets the team find your exact call.

Limits, 429s and front ends

Two limits matter in practice. Requests per minute (300 on a full key) produce a 429 with error code rate_limited. Too many simultaneous requests (8 on a full key) produce a 429 with code concurrency. On temporary overload you also receive a 429, with a Retry-After: 5 header. The maximum body is 8 MB.

import time
from openai import OpenAI, RateLimitError

client = OpenAI(base_url="https://api.qwenabliterated.cc/v1", api_key="YOUR_KEY")

def ask(prompt, tries=4):
    for attempt in range(tries):
        try:
            r = client.chat.completions.create(
                model="uncensored",
                messages=[{"role": "user", "content": prompt}],
            )
            return r.choices[0].message.content
        except RateLimitError:
            time.sleep(5 * (attempt + 1))
    raise RuntimeError("still rate limited")

If you prefer a ready-made interface over writing code, many chat and roleplay front ends let you add a custom OpenAI-compatible endpoint. SillyTavern is one example. Enter the base URL, paste your key and type uncensored as the model name. For parameters and edge cases, the docs page is the reference.

The model is tuned for lawful adult use and has one hard limit: it will not write sexual content involving minors. The service is text only, so there is no image generation, speech, embeddings or fine-tuning.

Questions and answers

Do I need a GPU to use this online?

No. The model runs on the provider's side. You only need an HTTP client or any OpenAI SDK.

What model name do I put in my client?

Use uncensored. The base URL is https://api.qwenabliterated.cc/v1 and the key goes in an Authorization: Bearer header.

Is the trial really free?

Yes. After sign-up you can claim $0.50 of credit with one click. It needs no card, lasts 7 days and is limited to one per person.

What happens when I hit a rate limit?

The API returns HTTP 429 with code rate_limited or concurrency. Wait a few seconds and retry, and avoid holding streams open longer than needed.

Can I run the exact same model locally later?

The service runs one open-weight model chosen by its provider, and it does not publish a checkpoint choice for you. If you need a specific file, run your own build locally and keep the same OpenAI-style client code.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Start with trial credit

Email and password, key on screen right away.