Uncensored Chat Completions API Quickstart
Get started with the unfiltered ai chatbot API in minutes. Use the standard OpenAI-compatible endpoints to send text and receive responses from our uncensored model without content refusals.
Authentication and Base URL
Our API uses standard Bearer token authentication. You can find your key on the Get API key page after signing up with Google or an email address. The base URL for all requests is https://api.unfilteredaichatbot.top/v1. This URL works with the official OpenAI SDKs and any client that supports the OpenAI API format. You do not need a credit card for the trial, and no phone number is required for signup. Your API key is the only credential needed to authenticate requests. Each account allows one active key; generating a new key invalidates the previous one. Keep your key secure, as it provides access to your prepaid credit. The uncensored llm api is designed to be drop-in compatible with existing codebases that already use OpenAI endpoints.
First Request
Send a chat completion request to POST /v1/chat/completions. The model identifier is uncensored. This single model handles all text generation without the content filters found in standard GPT or Claude models. You can send prompts for NSFW content, controversial topics, or adult fiction, and the model will respond unless it involves minors. The request body requires model, messages, and content. You do not need to specify extra parameters for a basic request. The API returns a JSON object with the generated text. If you encounter an error, check your key or credit balance. This is a pure text API; there are no embeddings or image generation endpoints.
curl https://api.unfilteredaichatbot.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 Integration
Use the official OpenAI Python library to integrate the uncensored ai api into your applications. Set the base_url to our endpoint and provide your API key. The library handles serialization and retries automatically. You can use the same ChatCompletion methods you are familiar with from OpenAI. The model uncensored supports all standard parameters like temperature and top_p. Streaming responses are supported via the stream parameter. This approach allows you to swap the provider without rewriting your core logic. The uncensored model is open-weight and runs on our servers, ensuring consistent performance. You can adjust the max_tokens to control output length; if not specified, the response can run to the end of the window.
from openai import OpenAI
client = OpenAI(base_url="https://api.unfilteredaichatbot.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.js SDK Integration
Integrate the API into your Node.js applications using the openai npm package. Configure the client with the correct baseURL and apiKey. The uncensored model behaves like a standard LLM but with fewer content restrictions. You can use the chat.completions.create method to send messages. The response includes the generated text in choices[0].message.content. This setup is ideal for agencies building NSFW-tolerant AI applications. The API supports streaming responses for real-time token generation. You can also use function calling and JSON mode within the same request structure. The Node SDK handles the HTTP transport and JSON parsing for you. Ensure your code handles potential errors like rate limits or insufficient credit.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unfilteredaichatbot.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: true in your request. The API returns a Server-Sent Events (SSE) stream of partial responses. Each chunk contains a portion of the generated text. The final chunk includes the token usage statistics, allowing you to track costs accurately. Streaming reduces perceived latency for end-users. You can parse the SSE events in your client or server code. The uncensored ai chatbot API supports streaming for all request types. Token usage is reported in the last chunk, so you must read the entire stream to get accurate billing data. Errors during streaming will terminate the connection early. This feature is essential for chat interfaces that display text as it is generated.
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 API enforces strict limits to ensure stability. You can make 300 requests per minute and have 8 concurrent requests active per key. The maximum request body size is 8 MB. The context window is 100,000 tokens, combining prompt and completion. Errors return standard HTTP status codes: 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. Prepaid credit is charged by real token usage; errors and refusals are free. Credit never expires. If you exceed the rate limit, your requests will be rejected with a 429 status. The uncensored model blocks sexual content involving minors. For other lawful adult content, there are no hidden refusals. Use the Support page to resolve billing issues like double charges.
Technical specifications
One table with every limit, feature and price that applies to your key.
| Feature | Support |
|---|---|
| API format | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Model ID | uncensored |
| Authentication | Bearer token in the Authorization header |
| Base URL | https://api.unfilteredaichatbot.top/v1 |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Max context | 100,000 tokens, input and output combined |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Structured output | response_format: {"type": "json_object"} |
| Streaming | Supported (stream: true), usage included at the end |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Rate limit | 300/min per key |
| Parallel requests | up to 8 in parallel per key |
| Request size | up to 8 MB per request |
| Subscription | no monthly fee; paid credit does not expire |
| 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 |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Key management | one active key per account; a new key replaces the old one |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Account | Google or e-mail and password |
HTTP errors
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Code | Type | Meaning |
|---|---|---|
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 | refused by the content policy |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
How does billing work with the uncensored llm api?
Billing is based on prepaid credit charged by real token usage. Input tokens cost $0.15 per 1M, and output tokens cost $0.50 per 1M. Errors and refusals do not consume credit. You can top up by crypto (USDT on TRC20, USDC on Base) in amounts from $20 to $500.
What is the context window size?
The context window is 100,000 tokens, which includes both the prompt and the completion. There is no separate output cap, and if you do not set the max_tokens parameter, the response can run to the end of the window.
Is the API compatible with OpenAI SDKs?
Yes, the API is fully OpenAI-compatible. You can use the official OpenAI SDKs for Python and Node.js by changing the base_url and API key. It supports standard endpoints like chat completions, streaming, and function calling.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.