EN ▾
Get API key

Quickstart for Ollama users

Get started with the uncensored Ollama API in minutes. Drop in our base URL and key to start sending requests with your existing OpenAI SDK code.

Prerequisites

To use this API, you need an active account with a valid API key. Sign up on the Get API key page using Google or an email and password. No phone number is required. You also need a supported language SDK installed on your machine. This guide covers Python and Node.js, the most common clients for OpenAI-compatible endpoints. The API serves a single uncensored model identified by uncensored. It accepts text and returns text. There are no embeddings, images, or audio features. All requests go to https://api.ollamaapi.cc/v1.

Install SDK

Install the official SDK for your preferred language. For Python, use pip. For Node.js, use npm. These libraries handle the HTTP protocol, JSON serialization, and streaming automatically. You do not need to write raw HTTP requests unless you prefer that level of control. The SDKs are well-documented and widely used in production environments. Ensure your environment matches the SDK requirements. Python 3.8+ and Node.js 18+ are recommended. Keep your dependencies up to date to avoid compatibility issues with newer model parameters.

Configure Client

Set the base URL to our endpoint. This is the only configuration change needed to switch from OpenAI to our uncensored service. Pass your API key as the authorization header. The SDK will handle the rest. Do not change the model name to gpt-4 or similar; use uncensored. The API strictly follows the OpenAI chat-completions protocol. Any client that works with OpenAI will work here with these two changes. This makes migration or A/B testing straightforward. You can run both APIs side by side to compare outputs.

Send First Request

Make a POST request to /v1/chat/completions. Include the model ID, system prompt, and user message. The API returns a text response. If you have credit, the request succeeds. If you lack credit, you get a 402 error. If your key is invalid, you get a 401. These errors are standard and easy to handle in code. The model does not refuse lawful adult content, making it useful for creative writing, security research, or uncensored chat. Check your balance on the dashboard if you are unsure about remaining credits.

Streaming Responses

Enable streaming by setting stream: true. The API returns tokens as they are generated. This reduces perceived latency for users. The final chunk contains the total token usage for billing. Streaming is supported by all official SDKs. It is essential for chat interfaces where you want to show text as it is written. The server sends Server-Sent Events (SSE). Your client library handles the parsing. You do not need to manage the event stream manually unless you are building a custom client.

Limits, Errors, and Context

The context window is 100,000 tokens total, and output can run to the end of the window. Requests are limited to 300 per minute and 8 concurrent requests per key. The request body must be under 8 MB. Errors include 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. These are standard HTTP codes. Handle them gracefully in your application. The model blocks sexual content involving minors. All other content is allowed. Credit never expires, so you can pause usage without losing funds. Use the support page for refund issues.

cURL

curl https://api.ollamaapi.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

from openai import OpenAI

client = OpenAI(base_url="https://api.ollamaapi.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.js

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.ollamaapi.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

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)

Start with trial credit

Email and password, key on screen right away.

Questions and answers

Is this the official Ollama API?

No. We are an independent service hosting a single uncensored model. We are not affiliated with Ollama, OpenAI, or any other vendor. We use the OpenAI-compatible protocol for ease of use.

What payment methods are accepted?

We accept top-ups by crypto (USDT on TRC20, USDC on Base). Minimum top-up is $20. Credit never expires.

Can I use this for commercial projects?

Yes. There are no usage restrictions beyond the rate limits. The model does not refuse lawful content, making it suitable for commercial applications. Check the pricing page for current token rates.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Technical specifications

One table with every limit, feature and price that applies to your key.

ItemValue
ProtocolOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
API keyBearer token in the Authorization header
Model IDuncensored
EndpointsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.ollamaapi.cc/v1
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
Context window100,000 tokens, input and output combined
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
StreamingSupported (stream: true), usage included at the end
Structured outputresponse_format: {"type": "json_object"}
Parallel requests8 requests at the same time per key
Rate limit300/min per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max bodyup to 8 MB per request
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Volume bonus+5% from $50, +10% from $100, +15% from $200
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Trial credit$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
Subscriptionpaid credit never expires, no subscription
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Keysone active key per account; a new key replaces the old one
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Accountsign in with Google or with e-mail + password

Error codes

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_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly