API Documentation for Uncensored AI Model
This quickstart guide shows how to integrate the uncensored AI model API into your applications using standard OpenAI-compatible clients. You will learn to send requests, handle streaming, and manage your account limits.
Base URL and Authentication
Access the uncensored llm via a single base URL compatible with OpenAI SDKs. Authentication requires an API key passed in the Authorization header. Sign up with Google or email to generate your key instantly.
- Base URL:
https://api.uncensoredaimodel.top/v1 - Model ID:
uncensored
Our uncensored models API strips away multi-model routing. You connect directly to our hosted instance. No phone number or credit card is required for initial access.
First Request
Send a basic chat completion to verify connectivity. The API returns text responses for your uncensored ai model use cases, from coding to adult content generation.
Use the following curl command to test your key:
curl https://api.uncensoredaimodel.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."}]
}'If successful, you receive a JSON response with the generated text. This confirms your account is active and ready for production use.
Python Integration
Use the official OpenAI Python SDK to interact with the uncensored ai model. Configure the base URL to point to our endpoint and set your API key.
This approach works for any Python project requiring text generation without content filters. The SDK handles tokenization and JSON parsing automatically.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredaimodel.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)Ensure your SDK version is up to date. The library supports all standard parameters defined in our API specification.
Node.js Integration
For JavaScript environments, use the OpenAI Node.js SDK. Initialize the client with your base URL and key. This setup allows you to integrate the uncensored llm into web servers or backend services.
The model ID remains uncensored across all languages. Consistent behavior ensures predictable results whether you are generating code snippets or narrative text.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredaimodel.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);Handle responses asynchronously. The SDK returns a promise that resolves to the completion data.
Streaming Responses
Enable streaming by setting stream: true. The API returns chunks as they are generated, reducing perceived latency for long outputs. This is critical for real-time applications using the uncensored models API.
Parse the Server-Sent Events (SSE) stream. The final chunk contains token usage statistics for billing.
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 does not change the underlying model behavior. It only affects how data is delivered to your client.
Limits, Errors, and Context
Your account has a limit of 300 requests per minute and 8 concurrent requests per key. The request body must not exceed 8 MB. The context window supports 100,000 tokens total, with no separate output cap.
Errors return standard HTTP codes. A 401 indicates an invalid key. A 402 indicates insufficient credit. A 429 indicates rate limiting. All errors are logged. Refusals for unlawful content are free.
Prepaid credit is charged by real token usage. Errors do not consume credit. Your credit never expires.
Questions and answers
Is the model trained on my prompts?
No. We prioritize privacy. Your prompts are not used for training the uncensored ai model. Your data remains isolated to your generation requests.
Can I use this for coding?
Yes. The uncensored llm handles code generation without refusals for standard programming tasks. It supports long context windows, making it suitable for large codebases.
How do I top up credit?
Credit is topped up by crypto (USDT on TRC20, USDC on Base). Minimum top-up is $20. Credit never expires.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
What the API supports
Use this table to decide whether the API fits your project before you buy credit.
| Feature | Support |
|---|---|
| Protocol | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Authentication | Bearer token in the Authorization header |
| Base URL | https://api.uncensoredaimodel.top/v1 |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| JSON mode | JSON object mode via response_format json_object |
| Streaming | Supported (stream: true), usage included at the end |
| Max context | 100,000 tokens, input and output combined |
| Max body | 8 MB request body |
| Rate limit | 300 requests per minute per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | 8 requests at the same time per key |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| 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 |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Credit expiry | paid credit never expires, no subscription |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Account | Google or e-mail and password |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Keys | one key per account, regenerate any time (the old one stops working) |
Error codes
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| HTTP | Type | What to do |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
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 | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |