Base URL and Authentication
Our API is a pure, uncensored LLM endpoint designed for developers who want to bypass content filters without managing infrastructure. To begin, you need an API key, which you can generate instantly by signing in with Google or an email address on the Get API key page. No phone number or credit card is required to start.
Every request must include your API key in the Authorization header using the Bearer scheme. The base URL for all requests is https://api.unrestrictedaimodels.top/v1. This URL is compatible with standard OpenAI SDKs; you simply need to configure the client to point to our domain instead of the default OpenAI endpoint.
Keep your key secure. Each account supports only one active key at a time; generating a new one immediately invalidates the previous key. If you lose access, you can generate a new key without losing your prepaid balance, which never expires.
Chat Completions Endpoint
The core of our service is the POST /v1/chat/completions endpoint. This is where you send your prompt and receive the model's response. The model identifier is simply uncensored. Unlike general-purpose aggregators, we do not offer embeddings, image generation, or audio processing; this is a text-only LLM without restrictions on adult or controversial topics for lawful use.
Below is a basic example using curl to send a simple prompt. Ensure you replace YOUR_API_KEY with your actual key. The response will contain the model's output in the choices array.
This direct approach minimizes overhead. You pay only for the tokens actually consumed, with errors and refusals (except for the hard limit on minor sexual content) charged at zero.
Python SDK Integration
For Python developers, using our API feels identical to using the official OpenAI library. You can point the client to our base URL and use the same ChatCompletion methods. This makes it easy to swap in our uncensored model into existing codebases that already support OpenAI-compatible endpoints.
The following example demonstrates how to initialize the client with our base URL and send a request. You can install the standard openai package via pip. This method is ideal for backend services, scripts, or automated workflows where you need reliable, uncensored text generation without the latency of web interfaces.
Remember that the model does not use prompts for training, preserving your data privacy while giving you access to open source ai models with no restrictions on topic.
Node SDK Integration
If you are building in JavaScript or TypeScript, the openai npm package works seamlessly with our API. Configure the client with our base URL and your API key, then call chat.completions.create(). This allows you to integrate uncensored AI directly into your Node.js servers, Next.js apps, or backend microservices.
Using the standard SDK means you can leverage existing error handling and type definitions. The response structure matches the OpenAI specification, so you can parse the content from response.choices[0].message.content just as you would with any other compliant provider. This consistency reduces the learning curve when switching from standard models to our abliterated llm.
Streaming Responses (SSE)
For applications that require real-time output, such as chat interfaces or interactive tools, enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains a partial piece of the response, allowing you to render text as it is generated.
Streaming is particularly useful for long-form content or code generation, where seeing tokens appear immediately improves the user experience. The final chunk in the stream includes the total token usage for the request, which you can use to update your UI or track billing credits.
Be sure to handle the stream correctly in your client code to avoid memory leaks or incomplete responses. Our uncensored models support high-throughput streaming, making them suitable for high-volume applications.
Parameters: Temperature, Top P, Seed
You can control the model's behavior using standard parameters. temperature adjusts randomness (higher values make outputs more creative, lower values more deterministic). top_p filters tokens based on cumulative probability, offering another way to control variance.
Use seed to ensure reproducible outputs for the same prompt, which is valuable for debugging or testing. The model supports stop sequences to halt generation, presence_penalty and frequency_penalty to influence token repetition, and response_format for strict JSON output. These parameters give you fine-grained control over the uncensored llm's behavior without needing complex prompt engineering.
Function Calling and JSON Mode
Our API supports function calling (tool use) and structured JSON outputs. You can define a schema of available tools in your request, and the model will return structured JSON data that matches your specified format. This is essential for building agents or applications that need to interact with external systems.
Set response_format to {"type": "json_object"} to force the model to output valid JSON. This is critical for parsing data in automated pipelines. The model is uncensored but still adheres to structural constraints when requested, ensuring reliable integration with your code.
Context Window and Limits
The model has a context window of 100,000 tokens, combining both prompt and completion. There is no separate output cap, and if you do not specify max_tokens, the response can run to the end of the window. This large window allows for processing extensive documents or long conversations in a single request.
Rate limits are set to 300 requests per minute per key, with a maximum of 8 concurrent requests. Request bodies are limited to 8 MB. If you hit these limits, you will receive a 429 error. Authentication errors (401) occur if your key is invalid, and payment errors (402) occur if your prepaid balance is insufficient. Note that we do not offer an SLA, and concurrent limits are per key, not per account.
cURL
curl https://api.unrestrictedaimodels.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
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedaimodels.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
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedaimodels.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
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)