API Documentation
Get started with the uncensored LLM API using standard OpenAI SDKs. Send your first request in seconds and start generating content without filters.
Authentication and Base URL
Your API key authenticates every request to the uncensored AI service. You receive this key immediately after signing up via Google or email. No phone number is required. Store this key securely and pass it in the Authorization header.
- Base URL:
https://api.apillmuncensored.com/v1 - Header:
Authorization: Bearer YOUR_API_KEY - Model ID:
uncensored
Use this base URL with any standard OpenAI-compatible client. The system rejects requests with invalid or expired keys immediately.
First Request
Send a simple text generation request to test connectivity. This call confirms your key works and demonstrates the uncensored nature of the model. You can send any prompt without content filters for lawful adult use.
Replace YOUR_API_KEY with your actual key.
curl https://api.apillmuncensored.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "List the top five features of this api."}]
}'The response returns the generated text. If you receive an error, check your key or credit balance.
Python SDK Integration
Use the official OpenAI Python library to interact with the API. This method is ideal for backend services and scripts. Configure the client with the correct base URL and your API key.
from openai import OpenAI
client = OpenAI(base_url="https://api.apillmuncensored.com/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)This code snippet sends a message and prints the response. You can adjust parameters like temperature for more creative or deterministic outputs.
Node.js SDK Integration
Integrate the API into your Node.js applications using the OpenAI npm package. This approach works well for server-side rendering or API endpoints.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.apillmuncensored.com/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);Set the baseURL to point to our uncensored endpoint. The SDK handles the request formatting automatically. Ensure you have the latest version of the OpenAI package installed.
Streaming Responses
Stream tokens as they are generated for real-time user experiences. This reduces perceived latency and allows for immediate display of output. Enable streaming by setting stream: true in your request.
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)The API sends Server-Sent Events (SSE). Each chunk contains partial text. The final chunk includes token usage statistics. This is efficient for chat interfaces.
Limits, Errors, and Context
Understand the constraints to build robust applications. The context window is 100,000 tokens total. Max output is 16,000 tokens per request. You can make 300 requests per minute per key.
Common errors include:
401: Invalid API key.402: Insufficient credit. Top up with crypto to continue.429: Rate limit exceeded. Wait and retry.
Errors do not consume credit. Requests are charged only for successful token generation.
Common questions
What is the uncensored LLM API?
It is a hosted, OpenAI-compatible API serving a single uncensored large language model. It supports text input and output without content refusals for lawful adult use. You can use standard SDKs to integrate it into your apps.
How do I pay for the uncensored AI API?
You top up with crypto only: USDT (TRC20) or USDC (Base). Payments range from $20 to $500 with bonus credits. There are no monthly fees or subscriptions. Credit never expires.
What are the rate limits?
You can make 300 requests per minute per key. You can have 8 concurrent requests. The request body must be under 8 MB. Exceeding these limits returns a 429 error.