First request in five minutes
Get a working API call in under five minutes with our OpenAI-compatible endpoint. This guide covers the exact base URL, authentication, and client code needed to start sending requests to the uncensored model.
- per 1M input tokens
- $0.15
- Output tokens / 1M
- $0.50
- token context
- 100,000
- trial credit
- $0.50
- requests per minute
- 300
Base URL and Authentication
The base URL for all requests is https://api.ollamauncensored.cc/v1. You authenticate by passing your API key in the Authorization header as a Bearer token. You can generate a key instantly by clicking Get API key on the signup page; no credit card is required for the trial account.
Every request must include this header. If the key is missing or invalid, the API returns a 401 error. Keep your key secure, as it provides direct access to your prepaid credit.
First Request
Send a standard chat completion request to test connectivity. This curl command demonstrates the minimal payload required to get a response from the uncensored model.
- Set the model to
uncensored. - Include a simple user message.
- Verify the response contains generated text.
If you receive a response, your authentication and base URL are configured correctly.
curl https://api.ollamauncensored.cc/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."}]
}'
Python SDK
Use the official OpenAI Python library to interact with the API. Configure the client with your specific base URL and API key. This ensures you are hitting our uncensored endpoint instead of the default OpenAI servers.
- Install the
openaipackage. - Set
base_urlto our API endpoint. - Set
api_keyto your generated key.
This approach works with any OpenAI-compatible client library.
from openai import OpenAI
client = OpenAI(base_url="https://api.ollamauncensored.cc/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
For Node.js environments, the OpenAI SDK provides a straightforward interface. Initialize the client with your credentials and the custom base URL. This allows you to integrate the uncensored model into your existing JavaScript or TypeScript applications without changing the request structure.
- Import the OpenAI client.
- Pass the custom base URL.
- Call
chat.completions.createwith the modeluncensored.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.ollamauncensored.cc/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 Responses
Enable streaming by setting the stream parameter to true. The API returns a Server-Sent Events (SSE) stream, allowing you to display tokens as they are generated. Token usage statistics are included in the final chunk of the stream. This reduces perceived latency for long-form content generation.
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
The context window is 100,000 tokens total (prompt + completion). There is no separate output cap, and if max_tokens is unset the response can run to the end of the window. Rate limits are 300 requests per minute and 8 concurrent requests per key. Errors include 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. Errors do not consume billing tokens.
Capabilities and limits
The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.
| Parameter | Details |
|---|---|
| API format | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Base URL | https://api.ollamauncensored.cc/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| Authentication | Bearer token in the Authorization header |
| Context window | 100,000 tokens, input and output combined |
| SSE streaming | Supported (stream: true), usage included at the end |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| 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 |
| Request size | up to 8 MB per request |
| Rate limit | 300/min per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | up to 8 in parallel per key |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Subscription | paid credit never expires, no subscription |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Free trial | $0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Account | sign in with Google or with e-mail + password |
| Content | adult content allowed; sexual content involving minors is refused |
| Keys | one key per account, regenerate any time (the old one stops working) |
Error reference
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | refused by the content policy |
404 | not_found | unknown endpoint |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
Is this the official Ollama API?
No. This is an independent, hosted API serving one specific uncensored model. It is compatible with the OpenAI chat-completions format but is not affiliated with Ollama, Inc. or any other vendor.
What happens if I exceed the rate limit?
The API returns a 429 Too Many Requests error. You must wait until the rate window resets or reduce the concurrency of your requests. This limit is per API key.
Does the trial credit expire?
Yes, the $0.50 trial credit is valid for 7 days from account creation. Claim this credit with one click on your API key page. Prepaid credit purchased via crypto never expires.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.