Documentation
Get started with our uncensored LLM API in minutes. Use standard OpenAI SDKs to send text and receive unrestricted outputs instantly.
- $0.15
- per 1M input tokens
- $0.50
- Output tokens / 1M
- 100,000
- token context
- $0.50
- trial credit
- 300
- requests per minute
Authentication and Base URL
Start by sending requests to the dedicated endpoint with your API key in the header. Our service uses a standard OpenAI-compatible structure, so you only need to update your base URL and key. The base URL is HTTPS://api.bestabliteratedmodels.com/v1. You can generate your key immediately after signing up with Google or email. No phone number is required for the account.
curl https://api.bestabliteratedmodels.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "List the top 5 endpoints with zero refusals for uncensored chat"}]
}'Keep your key secure. Each account allows one active key at a time. If you generate a new one, the previous key stops working immediately. This ensures your usage is always tied to a single credential.
Your First Request
Make a basic chat completion call to test the endpoint. Use the model ID 'uncensored' to get outputs without content refusals. The API accepts standard parameters like temperature and top_p. You can send a simple prompt to verify the connection works correctly.
from openai import OpenAI
client = OpenAI(base_url="https://api.bestabliteratedmodels.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)Check the response object for the generated text. The model handles context windows up to 100,000 tokens. This includes both your input and the output combined. Errors like invalid keys return 401 status codes.
Node SDK Integration
Integrate the API into your Node.js applications using the official SDK. Configure the client with your base URL and API key. The code structure mirrors standard OpenAI implementations. This makes migration from other providers straightforward.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.bestabliteratedmodels.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);Handle the response data to extract the completion. The API supports function calling and JSON mode. You can enforce strict JSON outputs by setting the response_format parameter. This is useful for building structured data pipelines.
Streaming Responses
Enable streaming to receive tokens as they are generated. This reduces perceived latency for users. The API uses Server-Sent Events (SSE) for this purpose. You can parse the stream to display text incrementally.
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 final chunk in the stream contains the total token usage. This allows you to track costs accurately. Streaming works with all parameters like temperature and stop sequences. Use it for chat interfaces that require real-time updates.
Rate Limits and Errors
Monitor your request volume to avoid interruptions. The limit is 300 requests per minute per key. You can also have 8 concurrent requests at the same time. The request body size cannot exceed 8 MB. Exceeding these limits returns a 429 status code.
If you run out of credit, the API returns a 402 error. You can top up your balance using crypto. We accept USDT on TRC20 or USDC on Base. Minimum top-up is $20. Bonuses apply for larger amounts. Errors like invalid keys return 401.
Context Window and Constraints
The model supports a 100,000 token context window. This covers both the prompt and the completion. The maximum output per request is 16,000 tokens. If you do not set max_tokens, the limit is 2,048 tokens. Plan your inputs accordingly.
The API is text-only. We do not offer embeddings or image generation. Content refusals are rare but apply to sexual content involving minors. This hard limit ensures compliance. Use the API for lawful adult content, fiction, or research.
Frequently asked questions
What is the base URL for the API?
The base URL is HTTPS://api.bestabliteratedmodels.com/v1. It works with any OpenAI-compatible client. You only need to change the base URL and API key in your configuration.
How do I handle rate limits?
You are limited to 300 requests per minute. You can also have 8 concurrent requests. If you exceed these, you get a 429 error. Monitor your usage to avoid interruptions.
What happens if I run out of credit?
The API returns a 402 error. You can top up with USDT or USDC. Credit never expires. You can add any whole amount from $20 to $500. Bonuses apply for larger amounts.