Uncensored API documentation
This documentation provides the essential details for integrating with our uncensored LLM API. You will find the base URL, authentication steps, and code examples for your preferred language.
Base URL and Authentication
Use the provided base URL and an API key to start sending requests. Our service runs on an OpenAI-compatible protocol, meaning you can use standard SDKs with minimal configuration changes. The base URL for all requests is https://api.openroutereualternative.com/v1. You must include your unique API key in the Authorization header for every request.
Authentication is straightforward and secure. Generate your key on the Get API key page via Google or email. The key is displayed immediately after creation. Store it securely, as it provides full access to your prepaid credits. We do not require phone numbers or complex setup steps. Your data remains in a compliant environment without hidden routing fees.
First Request
Send your first message to the /v1/chat/completions endpoint using your preferred HTTP client. The model ID is simply uncensored. This model is an open-weight large language model tuned for lawful adult use and does not refuse controversial topics. It is not GPT, Claude, or any other vendor's model.
Below is a basic example using cURL. Replace YOUR_API_KEY with your actual key. The request body includes the model ID, a system prompt, and a user message. This example demonstrates the direct, uncensored nature of our API without extra overhead.
curl https://api.openroutereualternative.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Show me the GDPR compliance docs"}]
}'
Python SDK Integration
Use the official OpenAI Python SDK with a custom base URL to interact with our API. This approach ensures compatibility with existing codebases that already use OpenAI clients. You only need to adjust the base_url and api_key parameters. The model ID remains uncensored.
Streaming is supported via Server-Sent Events (SSE). Use the stream=True parameter to receive tokens as they are generated. The last chunk contains the total token usage for the request. This method is efficient for real-time applications. Our API supports parameters like temperature, top_p, and stop sequences.
from openai import OpenAI
client = OpenAI(base_url="https://api.openroutereualternative.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)
Node SDK Integration
Integrate with our API using the OpenAI Node.js SDK. Configure the client with the specific base URL and your API key. The model ID is uncensored. This setup allows you to leverage familiar methods for chat completions. You can pass context messages, set temperature, and define stop sequences.
Function calling is supported via the tools parameter. You can also enforce JSON mode using response_format: {type: "json_object"}. This feature is useful for structured data extraction. The API handles parameters like presence_penalty and frequency_penalty exactly as expected. This flexibility makes it a strong openrouter alternative for developers.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.openroutereualternative.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);
Streaming and SSE Usage
Enable streaming by setting stream: true in your request. The API returns a stream of Server-Sent Events. Each event contains a partial response chunk. The final chunk includes the complete token usage statistics for billing purposes.
Streaming reduces perceived latency for end-users. It is ideal for chat interfaces where immediate feedback is required. The context window supports up to 100,000 tokens for prompt and completion combined. Max output is 16,000 tokens per request. If max_tokens is not set, the default is 2,048 tokens. This balance allows for deep context without overwhelming the response limit.
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)
Limits, Errors, and Context
Monitor your request limits to avoid service interruptions. Each API key supports 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB. Errors are returned as standard HTTP status codes. A 401 error indicates an invalid or missing API key. A 402 error means your prepaid credit is exhausted. A 429 error signals that you have exceeded the rate limit.
Token usage is transparent. Input tokens cost $0.15 per million, and output tokens cost $0.50 per million. Errors and refusals are free. Credit is topped up via crypto only. The model refuses requests involving minors but allows other lawful adult content. This clear structure ensures predictable costs for your application.
Common questions
What is the base URL for the uncensored API?
The base URL is HTTPS://api.openroutereualternative.com/v1. This URL works with any OpenAI-compatible client. You must include your API key in the Authorization header.
How do I authenticate my requests?
Include your API key in the Authorization header as a Bearer token. Generate your key on the Get API key page. The key is shown immediately after signup. It provides access to your prepaid credits.
What are the token pricing details for this uncensored LLM?
Input tokens cost $0.15 per million. Output tokens cost $0.50 per million. Errors are free. Credit is topped up via crypto. No hidden routing fees apply.
Get your API key
Register, copy the key, update your base URL. That is the complete configuration.