EN ▾
Get API key

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 openai package.
  • Set base_url to our API endpoint.
  • Set api_key to 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.create with the model uncensored.
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.

ParameterDetails
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Base URLhttps://api.ollamauncensored.cc/v1
MethodsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
AuthenticationBearer token in the Authorization header
Context window100,000 tokens, input and output combined
SSE streamingSupported (stream: true), usage included at the end
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
JSON modeJSON object mode via response_format json_object
Request sizeup to 8 MB per request
Rate limit300/min per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrencyup to 8 in parallel per key
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Subscriptionpaid credit never expires, no subscription
Token pricesinput $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
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Accountsign in with Google or with e-mail + password
Contentadult content allowed; sexual content involving minors is refused
Keysone 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.

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditout of credit; add credit and retry
403content_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary 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.