EN ▾
Get API key

First request in five minutes

Get your first response in under five minutes by pointing any OpenAI-compatible client to our uncensored API. This guide covers authentication, basic requests, and streaming for immediate integration.

Base URL and Authentication

To begin, you need an API key. Sign up using your Google account or an email and password on the Get API key page. The key is displayed immediately. No phone number is required, and no credit card is needed for the initial trial.

All requests must be sent to the base URL https://api.qwenabliterated.cc/v1. Include your API key in the Authorization header as a Bearer token. This setup works with the official OpenAI SDKs and any standard OpenAI-compatible client by simply updating the base_url configuration.

Your First Request

Send a standard chat completion request to the POST /v1/chat/completions endpoint. The model ID is uncensored. This endpoint accepts text input and returns text output. It supports parameters like temperature, top_p, and stop to control generation.

The model does not refuse lawful adult, fictional, or controversial topics. Ensure your request body includes the messages array with your prompt. You can set a custom max_tokens to limit output length.

curl https://api.qwenabliterated.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."}]
  }'

Python SDK Integration

Using the official OpenAI Python library simplifies integration. Set the base_url to our endpoint and provide your API key. The library handles serialization and error parsing automatically. You can specify the model as uncensored in your client initialization.

This approach works for both synchronous and asynchronous usage. You can stream responses or retrieve full text blocks. The library supports all standard parameters including seed for reproducibility and presence_penalty for style control.

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": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)

Node SDK Integration

For Node.js environments, the OpenAI npm package works directly with our API. Configure the client with the correct base URL and API key. The model identifier remains uncensored for all requests.

This setup allows you to integrate uncensored generation into backend services or serverless functions. You can handle responses as standard JSON objects or use streaming for real-time token delivery. The SDK manages connection pooling and retry logic for you.

import OpenAI from "openai";

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

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE). Each chunk contains partial token data. The final chunk includes the full token usage statistics for the request.

Streaming is ideal for chat interfaces where users expect immediate feedback. The server sends tokens as they are generated. You can parse these events client-side to update the UI incrementally. This reduces perceived latency significantly compared to waiting for the full completion.

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)

Limits, Errors, and Context

Your account has a limit of 300 requests per minute and 8 concurrent requests per key. The maximum request body size is 8 MB. If you send an invalid key, you will receive a 401 error. A 402 error indicates insufficient prepaid credit. A 429 error means you have exceeded the rate limit.

The context window is 100,000 tokens total, including both prompt and completion. There is no separate output cap. If you do not set max_tokens, the response can run to the end of the window. Errors and refusals do not consume credit. All prepaid credit never expires.

What the API supports

Before you integrate, here is exactly what you get with a key.

FeatureSupport
ProtocolOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Model IDuncensored
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.qwenabliterated.cc/v1
AuthenticationAuthorization: Bearer YOUR_KEY
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
Max context100,000 tokens (prompt + completion together)
Structured outputJSON object mode via response_format json_object
StreamingSupported (stream: true), usage included at the end
Request sizeup to 8 MB per request
Rate limit300 requests per minute per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrency8 requests at the same time per key
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Credit expirypaid credit never expires, no subscription
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Free trial$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Keysone active key per account; a new key replaces the old one
Content policyadult content allowed; sexual content involving minors is refused
Sign-inGoogle or e-mail and password

Error codes

Every error is JSON with a type you can switch on. You are never charged for an error.

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

What happens if I exceed my prepaid credit?

You will receive a 402 error on subsequent requests. You can top up immediately by crypto (USDT on TRC20, USDC on Base) to restore access. There is no service interruption beyond the failed request.

Is the trial credit renewable?

No, the $0.50 trial credit is valid for 7 days and one per person. It does not require a credit card. Claim this credit with one click on your API key page. You must purchase additional credit via crypto to continue using the API after the trial expires.

Does the model refuse content?

The model is uncensored and does not refuse lawful adult, fictional, or controversial topics. The only hard limit is content involving minors, which is always blocked. Requests are not used for training your data.

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.