API Documentation
Integrate our uncensored LLM into your existing stack with a single OpenAI compatible API endpoint. Get started with a quick request and pay only for the tokens you actually use.
https://api.aimodelswithoutrestrictions.com/v1uncensored
Base URL and Authentication
Authentication requires a valid API key passed in the Authorization header. Your key is generated immediately after signup via Google or email. The base URL for all requests is https://api.aimodelswithoutrestrictions.com/v1.
Every request must include the Authorization: Bearer YOUR_API_KEY header. If the key is missing or invalid, you receive a 401 error. If your prepaid credit is exhausted, you receive a 402 error. You can manage your key and view usage on your dashboard.
First Request
Send a simple text prompt to the uncensored model using the standard chat completions endpoint. This returns text directly without content filters.
Replace YOUR_API_KEY with your actual key.
curl https://api.aimodelswithoutrestrictions.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Run the script and show output"}]
}'This request demonstrates the basic text-in, text-out flow. The model responds to the prompt without refusing based on topic. You can adjust parameters like temperature to control creativity.
Python SDK Integration
Use the official OpenAI Python library to interact with our API. Point the client to our base URL and provide your key.
from openai import OpenAI
client = OpenAI(base_url="https://api.aimodelswithoutrestrictions.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 shows how to send a message and retrieve the content. The response object contains the text generated by the model. You can iterate through the response to handle multiple choices if needed. The SDK handles the JSON serialization automatically.
Node SDK Integration
Install the OpenAI Node.js package and configure it to use our endpoint. This allows you to integrate uncensored generation into your JavaScript or TypeScript applications.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.aimodelswithoutrestrictions.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);The configuration overrides the default base URL to point to our servers. This ensures requests are routed correctly. You can catch errors and handle rate limits programmatically. The response structure matches the standard OpenAI format.
Streaming Responses
Enable streaming by setting stream: true in your request. This returns data in chunks as the model generates text.
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)Streaming reduces perceived latency for long responses. Each chunk contains a partial delta of the text. The final chunk includes the token usage statistics. You can concatenate these deltas to display real-time output. This is ideal for chat interfaces.
Limits and Errors
The API enforces a context window of 100,000 tokens for the combined prompt and completion. You can request up to 16,000 tokens in a single response. If you do not specify max_tokens, the default output is 2,048 tokens.
Rate limits are set to 300 requests per minute and 8 concurrent requests per key. A 429 error indicates you have exceeded these limits. Wait before retrying. Errors like refusals do not consume credit, but token usage does.