Switch your client in three lines
Connect your existing tools to uncensoredllama.top using our OpenAI-compatible endpoint. This guide covers authentication, basic requests, streaming, and constraints for rapid integration.
https://api.uncensoredllama.top/v1uncensoredBase URL & Authentication
Our API is designed to be a drop-in replacement for the standard OpenAI interface. You interact with the service by pointing your client to our specific base URL. The endpoint accepts standard OpenAI-compatible requests, allowing you to swap providers without rewriting your application logic. Base URL: https://api.uncensoredllama.top/v1
Authentication is handled via a Bearer token in the Authorization header. You generate this key in the dashboard and use it for all requests. If you send an invalid or expired key, the server returns a 401 Unauthorized error. The model identifier for requests is always uncensored.
Chat Completions Endpoint
The core functionality is served through the POST /v1/chat/completions endpoint. This endpoint accepts text input and returns text output. It does not support embeddings, image generation, or fine-tuning. You send a JSON payload containing the model ID, the message history, and optional parameters like temperature or top_p.
Below is a basic example using cURL to send a simple prompt. Ensure you replace YOUR_API_KEY with your actual key.
curl https://api.uncensoredllama.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."}]
}'
Python SDK
For Python developers, the official openai Python package works directly with our API. You simply initialize the client with our base URL and your API key. This allows you to use the same high-level abstractions you are accustomed to, while routing requests through our uncensored model.
The following snippet demonstrates how to initialize the client and make a request. Set the base_url parameter to our endpoint URL.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredllama.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)
Node SDK
JavaScript and TypeScript developers can use the openai Node.js package. Similar to the Python implementation, you configure the client to point to our base URL. This ensures that your existing Node-based logic continues to function without modification, simply swapping the backend provider.
Use the code below to configure the client and send a message. Replace the placeholder with your API key.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredllama.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);
Streaming Responses (SSE)
We support Server-Sent Events (SSE) for streaming responses. This is useful for applications that need to display tokens as they are generated, reducing perceived latency. When you enable streaming, the server sends a stream of chunks. The final chunk in the stream contains the complete usage statistics for the request.
The example below shows how to handle streaming in your client. Ensure your client is configured to handle the text/event-stream content type.
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)
Rate Limits & Constraints
Each API key is limited to 300 requests per minute and a maximum of 8 concurrent requests. The maximum request body size is 8 MB. If you exceed these limits, you will receive a 429 Too Many Requests error. We do not charge for errors or refusals, so your prepaid credit is only consumed by successful token usage.
The context window is 100,000 tokens total (prompt + completion). There is no separate output cap per request; if you do not specify max_tokens, the response can run to the end of the window. Errors, including rate limits and authentication failures, do not consume credit.
Technical reference
If your tool speaks the OpenAI API, these are the details that matter.
| Parameter | Details |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Authentication | Authorization: Bearer YOUR_KEY |
| Base URL | https://api.uncensoredllama.top/v1 |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Structured output | JSON object mode via response_format json_object |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max context | 100,000 tokens (prompt + completion together) |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Request size | 8 MB request body |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | 8 requests at the same time per key |
| Requests per minute | 300/min per key |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M 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 |
| Credit expiry | paid credit never expires, no subscription |
| Account | sign in with Google or with e-mail + password |
| Key management | one active key per account; a new key replaces the old one |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
Error reference
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| HTTP | Type | What to do |
|---|---|---|
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 | balance is empty — top up, requests resume at once |
403 | content_blocked | refused by the content policy |
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 | temporary overload, retry shortly |
Questions and answers
What happens if I run out of credit?
Requests that require token usage will fail if you have insufficient funds. However, errors such as authentication failures or rate limits do not consume your balance. You can top up by crypto (USDT on TRC20, USDC on Base) at any time.
Is the uncensored model free to use?
No, it is a paid service priced at $0.15 per 1M input tokens and $0.50 per 1M output tokens. However, new users get $0.50 in trial credit, one per person, valid for 7 days, with no credit card required. Claim this credit with one click on your API key page.
Can I use this API for function calling?
Yes, the API supports function calling (tools and tool_choice) and JSON mode. You can define tools in your request and the model will return structured JSON output if configured with response_format: {"type": "json_object"}.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.