Unrestricted/OpenAI-Compatible API Documentation
OpenAI-Compatible API Documentation
Get started with our uncensored LLM API in minutes. Send a request to the base URL, receive raw text, and scale without subscription fees.
https://api.unrestrictedaichatgpt.com/v1uncensored
Authentication & Base URL
Use the provided base URL and API key to access the service. Your key authenticates all requests.
- Base URL:
https://api.unrestrictedaichatgpt.com/v1 - Header:
Authorization: Bearer YOUR_API_KEY
Get your key instantly from the dashboard.
curl https://api.unrestrictedaichatgpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Run python script to sum column in csv file"}]
}'
Chat Completions Endpoint
Send messages to the /v1/chat/completions endpoint. The model ID is uncensored.
Requests return text responses. You control the output length via max_tokens.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedaichatgpt.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)
Streaming Responses (SSE)
Enable streaming by setting stream: true. Receive tokens in real-time via Server-Sent Events.
Token usage details appear in the final chunk.
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)
Parameters: Temperature, Top P, and JSON Mode
Adjust temperature and top_p to control creativity. Use response_format: {"type": "json_object"} for structured output.
Set max_tokens to limit response length.
Function Calling & Tools
Define tools in your request. The model returns structured tool calls.
Use tool_choice to enforce specific behavior.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedaichatgpt.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);
Rate Limits & Constraints
Limit: 300 requests/minute, 8 concurrent requests. Max body: 8 MB. Context window: 100,000 tokens. Errors are free. Refunds are not issued.
Common questions
What is the context window size?
The model supports a 100,000 token context window for both input and output combined. You can specify up to 16,000 tokens for output per request.
How do I handle errors?
Common errors include 401 (invalid key), 402 (no credit), and 429 (rate limit). Errors do not consume your prepaid credit.
Is this an official OpenAI API?
No. It is an OpenAI-compatible API using a different uncensored model. Use the same SDKs but change the base URL and key.
Generate your key
Sign up, retrieve your key, update your endpoint. Done.