First request in five minutes
Get your first response in under five minutes using our OpenAI-compatible API. This guide covers authentication, client setup, and the specific limits of the uncensored model.
Authentication
Start by creating an account with Continue with Google or an email and password. The system issues one active API key per account immediately. You can replace it later if needed, but only one key is active at a time. No phone number is required for signup. Keep this key secure; it authenticates all requests to the base URL.
First Request
Send a standard chat completion request to the base URL. The API accepts JSON payloads with the model ID "uncensored". This model is an open-weight variant tuned for unrestricted output, distinct from Qwen, Llama, or other vendor models. Ensure you include your API key in the Authorization header. The request body must stay under 8 MB.
curl https://api.uncensoredqwen.top/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
Use the official openai Python package for streamlined integration. Set the base_url to our endpoint and provide your API key. The client handles retries and JSON parsing automatically. This approach works for both synchronous and asynchronous usage patterns within your applications.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredqwen.top/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
Integrate using the openai Node.js package. Configure the client with the correct base URL and authentication header. This setup allows you to leverage existing Node.js infrastructure while accessing the uncensored model. The SDK manages the HTTP connections efficiently for high-throughput scenarios.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredqwen.top/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 to true in your request. The API returns Server-Sent Events (SSE) for real-time token delivery. Token usage statistics appear in the final chunk of the stream. This method is ideal for chat interfaces where immediate feedback improves user experience.
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
The model supports a 100,000-token context window (input + output combined). There is no separate output cap per request, and if max_tokens is omitted, the response can run to the end of the window. Rate limits are 300 requests per minute and 8 concurrent requests per key. Expect a 401 error for invalid keys, 429 for rate limits, and 402 if your prepaid credit is exhausted. Errors and refusals consume no tokens.
API specifications
One table with every limit, feature and price that applies to your key.
| Spec | Value |
|---|---|
| Protocol | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.uncensoredqwen.top/v1 |
| Authentication | Bearer token in the Authorization header |
| Model ID | uncensored |
| SSE streaming | Supported (stream: true), usage included at the end |
| Context window | 100,000 tokens (prompt + completion together) |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Structured output | JSON object mode via response_format json_object |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Request size | up to 8 MB per request |
| Parallel requests | up to 8 in parallel per key |
| Rate limit | 300/min per key |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Trial credit | $0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Credit expiry | no monthly fee; paid credit does not expire |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| Keys | one key per account, regenerate any time (the old one stops working) |
| Content | adult content allowed; sexual content involving minors is refused |
| Sign-in | Google or e-mail and password |
Error codes
The type field is stable, the message is for humans. Errors cost nothing.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
What happens if I run out of credits?
The API returns a 402 status code when your prepaid balance is insufficient. You must top up by crypto (USDT on TRC20, USDC on Base) to continue making requests. Errors and refusals do not deduct from your balance.
Is the trial credit valid forever?
No. New users get $0.50 of trial credit, one per person, valid for 7 days. Claim this credit with one click on your API key page. Regular prepaid credits never expire, but the initial trial credit does. No card is needed for the trial.
Can I use this with the official OpenAI SDK?
Yes. The API is fully OpenAI-compatible. You only need to change the base_url and provide your unique API key. The model ID is "uncensored" and supports standard parameters like temperature and top_p.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.