Quickstart: Integrate uncensored completions
Drop this uncensored LLM API into your existing stack with the standard OpenAI compatible interface. We charge $0.15 per million input tokens and $0.50 per million output tokens, so you only pay for what you actually use.
Base URL and Authentication
Start by pointing your client to our base URL. Every request requires a valid API key passed in the Authorization header. This standard setup works with any OpenAI compatible client without extra configuration.
The base URL is We do not offer model routing or multiple endpoints. You send requests to Our infrastructure runs dedicated servers for this uncensored AI service. You avoid the variability of proxy aggregators. Direct access ensures consistent latency. Your data stays private. Prompts are not used for training. This transparency matters for developers who need reliable outputs. Send your first completion immediately after generating your key. Use the model ID The following example demonstrates a basic text completion request. Replace You can adjust parameters like temperature or top_p to control creativity. The model responds to standard JSON payloads. Errors return clear codes. A 402 error means you need to top up your credit. Top-ups use USDT on TRC20 or USDC on Base. This simplicity reduces integration time. You do not need complex middleware. The API behaves like the standard OpenAI endpoints. This familiarity speeds up your development cycle significantly. Use the official OpenAI Python library to integrate quickly. Set the base URL and API key in the client initialization. This approach keeps your code clean and maintainable. Pass the model name as This method works for both synchronous and asynchronous workflows. You can stream responses or get full text at once. The choice depends on your user experience needs. Streaming reduces perceived latency for long answers. Keep your API key secure. Do not hardcode it in version control. Use environment variables for production deployments. This practice prevents accidental exposure of your credentials. Integrate using the Node.js SDK for server-side applications. Initialize the client with your base URL and key. The structure mirrors the Python implementation closely. Call This setup works well with Express or Fastify servers. You can wrap the API call in a route handler. Handle errors gracefully to inform your users. A 429 error indicates you hit the rate limit. Memory usage stays low because we handle the heavy lifting. Your server just processes the JSON input. This architecture scales easily with your user base. No complex infrastructure management required. Enable streaming by setting Each chunk includes token usage data. The final chunk contains the total token count for the request. You can track costs in real time. This transparency helps you manage your prepaid credit effectively. Errors during streaming are handled via standard HTTP codes. A 402 error stops the stream if credit runs out. You can resume or retry after topping up. The process is straightforward. Streaming reduces the time to first byte. Users see progress immediately. This feature is essential for chat interfaces. It makes the uncensored LLM feel responsive and dynamic. Our limits are generous for most use cases. You get 300 requests per minute per key. You can have 8 concurrent requests at the same time. This supports high-throughput applications without bottlenecking. The context window is 100,000 tokens total. This includes both prompt and completion. Max output per request is 16,000 tokens. Set Error codes help you debug quickly. 401 means invalid key. 402 means no credit. 429 means rate limit exceeded. Check the response body for details. Refunds are not available for credit, but mistakes are fixed via support. Request bodies must be under 8 MB. This constraint ensures stable performance. Plan your payload size accordingly. Large documents may need chunking. This approach keeps latency low and consistent.https://api.openaitokenpricing.com/v1/v1/chat/completions. Errors like 401 indicate an invalid key. Check your account dashboard to regenerate or verify your credentials.First Request
uncensored to access the open-weight model. It handles text in and text out efficiently.YOUR_API_KEY with your actual key. This confirms your authentication works correctly.Python SDK Integration
uncensored. The library handles JSON serialization automatically. You receive structured responses that are easy to parse in your application logic.Node SDK Integration
chat.completions.create with the uncensored model. The SDK manages the HTTP requests efficiently. You get responses in standard JSON format.Streaming and Token Usage
stream: true in your request. The API returns chunks of text as they are generated. This improves user experience for long responses.Rate Limits and Context Window
max_tokens explicitly to avoid defaults. The default max is 2,048 tokens.cURL
curl https://api.openaitokenpricing.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "calculate cost for 100k tokens"}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.openaitokenpricing.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.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.openaitokenpricing.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
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)
FAQ
What is the open AI token pricing for this uncensored API?
We charge $0.15 per million input tokens and $0.50 per million output tokens. There is no minimum spend or monthly subscription. You pay only for the tokens you use.
How do I pay for my API usage?
We accept crypto only: USDT on TRC20 or USDC on Base. You can top up any whole amount from $20 to $500. You get bonus credit for larger amounts, starting at +5% for $50.
What happens if I get a 402 error?
A 402 error means your prepaid credit is exhausted. Requests will fail until you add more funds. Your credit never expires, so you can top up whenever you are ready to continue.
https://api.openaitokenpricing.com/v1