Ollama Uncensored: Switch your client in three lines
Switch your client in three lines to access an uncensored API that respects your privacy and refuses fewer lawful requests.
Base URL and Authentication
Our service is an OpenAI-compatible endpoint, meaning you can use standard client libraries with zero code changes to your logic. You only need to update the base URL and provide your API key. The base URL for this service is https://api.ollamauncensored.top/v1. Authentication is handled via the standard Authorization: Bearer header. Unlike local Ollama setups, we handle the heavy lifting on our own servers, so you do not need to manage GPU resources or context windows manually.
curl https://api.ollamauncensored.top/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'Every account requires an email for signup, ensuring minimal identity data collection. We do not train on your prompts, and we do not require a phone number. This setup guarantees privacy while giving you the coding ease of the OpenAI SDK. You receive one active key per account; generating a new key immediately invalidates the previous one.
Chat Completions Endpoint
The core of our API is the POST /v1/chat/completions endpoint. It accepts standard messages and returns text. We serve one uncensored large language model identified by the ID uncensored. This is an open-weight model run on our own servers, tuned to answer without content refusals for lawful adult use. It is not GPT, Claude, or any other vendor's model.
from openai import OpenAI
client = OpenAI(base_url="https://api.ollamauncensored.top/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)When you send a request, you specify the model as uncensored. The API returns text output based on your input. There are no embeddings, images, or audio endpoints. This is strictly a text-in, text-out service. If you need to verify your key or check available models, use the GET /v1/models endpoint.
Streaming Responses
We support server-sent events (SSE) for streaming responses. This allows you to process tokens as they are generated, which is essential for real-time applications. The streaming protocol is identical to the standard OpenAI format. The final chunk in the stream contains the token usage statistics for the request.
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 is useful for both latency-sensitive apps and monitoring token consumption. Since we charge by real token usage, streaming allows you to estimate costs in real-time. Errors and refusals do not consume credit, so you are only paying for the text that actually leaves our servers.
Function Calling Support
Our API supports function calling, allowing your LLM to output structured data that your code can execute. You define tools in the request, and the model responds with structured JSON arguments. You can also specify tool_choice to force the model to use a specific tool or none at all.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.ollamauncensored.top/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);This feature works with any standard OpenAI-compatible SDK. You pass your tool definitions in the tools parameter. The model will return a response with a tool_calls field if it decides to use a tool. This is ideal for building agents or automated workflows that interact with external APIs or databases.
JSON Mode
You can enforce JSON output by setting the response_format parameter to {"type": "json_object"}. This ensures the model returns valid JSON, which is crucial for programmatic consumption of the LLM's output. It reduces the need for post-processing regex cleanup.
Use this mode when you need strict structural compliance from your LLM. It works alongside function calling but can also be used for standalone JSON responses. The model is optimized to follow these constraints reliably, making it easier to integrate into automated pipelines.
Token Limits and Context Window
Our API offers a 100,000 token context window, which includes both the prompt and the completion. There is no separate output cap. If you do not set max_tokens, the response can run to the end of the window. This is significantly larger than many standard API offerings, allowing for deep context analysis.
Rate limits are set at 300 requests per minute per key and 8 concurrent requests per key. The maximum request body size is 8 MB. If you exceed these limits, you will receive a 429 error. Authentication errors return 401, and insufficient credit returns 402. Errors do not consume your prepaid credit.
Questions and answers
What is the uncensored model?
It is an open-weight model run on our own servers, tuned to answer without content refusals for lawful adult use. It is not GPT, Claude, or any other vendor's model.
How do I pay for the API?
We accept top-ups by crypto (USDT on TRC20, USDC on Base). Payments range from $20 to $500.
Is there a trial?
Yes, new users get $0.50 of trial credit valid for 7 days. Claim this credit with one click on your API key page. No card is needed, and it is one per person.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Specs at a glance
Before you integrate, here is exactly what you get with a key.
| Spec | Value |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Authentication | Bearer token in the Authorization header |
| Base URL | https://api.ollamauncensored.top/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| SSE streaming | Supported (stream: true), usage included at the end |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Completion length | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| JSON mode | JSON object mode via response_format json_object |
| Context window | 100,000 tokens, input and output combined |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Request size | 8 MB request body |
| Parallel requests | up to 8 in parallel per key |
| Requests per minute | 300/min per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Trial credit | $0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Subscription | no monthly fee; paid credit does not expire |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Sign-in | Google or e-mail and password |
| Keys | one key per account, regenerate any time (the old one stops working) |
Errors and what to do
The type field is stable, the message is for humans. Errors cost nothing.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |