Unfiltered AI Chat API Quickstart
Get started with the uncensored llm api in minutes. This guide covers authentication, standard requests, streaming, and JSON mode using the OpenAI-compatible endpoint.
Base URL & Authentication
The base URL for the API is https://api.unfilteredaichat.top/v1. This endpoint works with any standard OpenAI-compatible client. You need a valid API key to authenticate your requests. You can generate one by signing up with Google or an email address on the Get API key page. The key is displayed immediately after creation.
Pass the key in the Authorization header as a Bearer token. If the key is invalid, you will receive a 401 Unauthorized error. If your prepaid credit is exhausted, you will receive a 402 Payment Required error. Credits never expire, so you can top up by crypto (USDT on TRC20, USDC on Base) at any time.
Chat Completions Endpoint
Send text to the model using the POST /v1/chat/completions endpoint. The model ID is uncensored. This is an open-weight model tuned for fewer content refusals on lawful adult topics. It is not GPT, Claude, or any other vendor model.
Include your messages in the messages array. The API returns a text response. You can also enable function calling or JSON mode via the tools or response_format parameters.
curl https://api.unfilteredaichat.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."}]
}'For Python developers, the official SDK works with a simple base_url override. Create a client pointing to our API and call chat.completions.create(). This approach keeps your code portable and familiar.
from openai import OpenAI
client = OpenAI(base_url="https://api.unfilteredaichat.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)
Streaming Responses
Use the stream parameter to receive token-by-token updates via Server-Sent Events (SSE). This is useful for real-time UIs. The final chunk contains the total token usage, which is billed to your account.
Streaming does not change the pricing. You still pay for input and output tokens. Errors during streaming do not incur charges. Use the Node SDK to handle the stream efficiently.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unfilteredaichat.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);Remember that the context window is 100,000 tokens total, including the prompt and completion. Keep your inputs concise to avoid hitting limits.
JSON Mode & Tools
Force structured output by setting response_format to {"type": "json_object"}. This ensures the model returns valid JSON, which is easier to parse in your application. You can also define tools for function calling.
Set tool_choice to control how the model uses tools. This is powerful for building agents or extracting data. The uncensored model handles complex instructions well without refusing due to content filters.
Keep your system prompts clear. The model is designed to be direct and helpful. It does not refuse controversial or adult topics unless they involve minors. This makes it ideal for creative writing and research.
Parameters & Limits
Adjust temperature for randomness, top_p for nucleus sampling, and seed for reproducibility. Use stop sequences to halt generation. If max_tokens is not set, the response can run to the end of the window.
The context window is 100,000 tokens. Input tokens are charged at $0.15 per 1M, and output tokens at $0.50 per 1M. Errors are free. No hidden fees.
You have a limit of 300 requests per minute per key. The request body must be under 8 MB. These limits ensure fair usage for all developers on the uncensored ai api.
Rate Limits & Errors
If you exceed the rate limit, you will receive a 429 Too Many Requests error. Implement exponential backoff in your client. You can have only one active key per account. Generate a new key to replace an old one if needed.
Errors like 401 (invalid key) or 402 (no credit) are immediate. Streaming errors do not charge tokens. The api nsfw tolerance is high, but sexual content involving minors is always refused.
Prepaid credit never expires. Top up by crypto (USDT on TRC20, USDC on Base) for a +5% from $50, +10% from $100, +15% from $200 bonus. No card is needed for the trial.
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)Under the hood: specs
Everything the endpoint can and cannot do, in one place — check it before you top up.
| Parameter | Details |
|---|---|
| Protocol | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| Base URL | https://api.unfilteredaichat.top/v1 |
| API key | Bearer token in the Authorization header |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Completion length | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Structured output | response_format: {"type": "json_object"} |
| Context window | 100,000 tokens, input and output combined |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Rate limit | 300 requests per minute per key |
| Request size | 8 MB request body |
| Parallel requests | 8 requests at the same time per key |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Credit expiry | paid credit never expires, no subscription |
| 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 |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Content | adult content allowed; sexual content involving minors is refused |
| Account | sign in with Google or with e-mail + password |
| Key management | one key per account, regenerate any time (the old one stops working) |
Error reference
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| HTTP | Type | What to do |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | balance is empty — top up, requests resume at once |
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 | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
How do I get started with the uncensored llm api?
Sign up with Google or email on the Get API key page. You get $0.50 trial credit valid for 7 days. Claim this credit with one click on your API key page. No card is needed. Use the provided key with any OpenAI-compatible client.
What is the pricing for the uncensored ai api?
You pay $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors are free. Credits never expire. Top up by crypto (USDT on TRC20, USDC on Base) for bonuses.
Is this API suitable for NSFW content?
Yes, the uncensored model does not refuse lawful adult, fictional, or controversial topics. It only blocks sexual content involving minors. It is ideal for NSFW ai api use cases.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.