Abliterated: Integrate the Uncensored LLM API
Start using the abliterated API in minutes. This guide covers the base URL, authentication, and the core endpoints for chat completions, streaming, and structured output.
Base URL & Authentication
Our API follows the standard OpenAI chat-completions interface. This means you can reuse existing clients, SDKs, and code snippets by simply updating the base URL and API key. There is no need for custom headers or complex authentication flows.
Use https://api.abliterated.cc/v1 as your base URL. You can generate a single API key on the Get API key page. Use Google sign-in or an email and password to create an account. The key is displayed immediately after creation. Keep this key secure, as it provides direct access to your prepaid credit. There is no phone number required for signup.
The service serves one uncensored large language model optimized for uncensored coding llm tasks and general purpose reasoning. You do not need to select a model version; the endpoint automatically routes to the abliterated model.
Chat Completions Endpoint
The primary interaction point is the POST /v1/chat/completions endpoint. Send your conversation history as a JSON array of messages. The model will process the input and return a text completion. This is a pure text-in, text-out interface.
Ensure your requests stay within the 8 MB body limit. The context window supports up to 100,000 tokens for the combined prompt and completion. If you do not specify a max_tokens value, the response can run to the end of the window.
curl https://api.abliterated.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."}]
}'Refer to the pricing page for token costs. Errors and refusals do not consume your prepaid credit.
Streaming Responses
For lower latency and real-time user experiences, enable streaming by setting the stream parameter to true. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text updates.
The final chunk in the stream includes the complete token usage statistics for the request. This allows you to track costs accurately in real-time. Streaming is ideal for chat interfaces or when processing long uncensored ai models outputs.
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)Handle stream errors gracefully. Network interruptions may occur, so implement retry logic if your application requires the full completion.
Function Calling & Tools
The abliterated model supports structured tool use. Define your tools in the tools parameter and specify a tool_choice strategy. The model can return JSON objects that adhere to your tool schemas.
This feature is essential for building agents or applications that need to interact with external APIs. The uncensored coding llm handles complex JSON structures reliably. You can control the model's behavior using parameters like temperature and top_p to balance creativity and determinism.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.abliterated.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);Ensure your tool definitions are valid JSON. Invalid schemas may lead to parsing errors in the response.
JSON Mode
For strict structural outputs, set response_format to {"type": "json_object"}. The model will force its output to be valid JSON. This is useful for API integrations where you need to parse the result programmatically.
JSON mode works alongside function calling and streaming. It ensures that your downstream parsers do not break due to malformed text. This is particularly valuable for uncensored llm online applications that require reliable data extraction.
from openai import OpenAI
client = OpenAI(base_url="https://api.abliterated.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)Be aware that forcing JSON mode may slightly increase latency or reduce creative freedom in the model's reasoning. Use it only when strict formatting is required.
Parameters & Limits
Support parameters include temperature, top_p, stop, seed, presence_penalty, and frequency_penalty. Adjust these to fine-tune the model's output style.
Rate limits are set to 300 requests per minute and 8 concurrent requests per API key. The request body must not exceed 8 MB. If you exceed these limits, the API returns a 429 error. A 401 error indicates an invalid or missing API key. Prepaid credit is charged only for successful token usage; errors and refusals are free.
A hard content limit blocks sexual content involving minors. Requests violating this rule are refused without charge. Credit never expires, and you can top up using crypto (USDT on TRC20 or USDC on Base). Start with a trial credit of $0.50 valid for 7 days. Claim this credit with one click on your API key page.
API facts in one table
A quick checklist for developers: format, limits, features, billing.
| Parameter | Details |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.abliterated.cc/v1 |
| Authentication | Bearer token in the Authorization header |
| Model ID | uncensored |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Max context | 100,000 tokens (prompt + completion together) |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Streaming | Supported (stream: true), usage included at the end |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| JSON mode | response_format: {"type": "json_object"} |
| Concurrency | up to 8 in parallel per key |
| Max body | 8 MB request body |
| Rate limit | 300/min per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Price | 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 |
| Subscription | no monthly fee; paid credit does not expire |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Key management | one key per account, regenerate any time (the old one stops working) |
| Sign-in | sign in with Google or with e-mail + password |
Error codes
The type field is stable, the message is for humans. Errors cost nothing.
| 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 | sexual content involving minors — refused, not billed |
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 | model busy — retry in a few seconds |
Questions and answers
How do I handle authentication?
Include your API key in the Authorization header as Bearer YOUR_API_KEY. Generate your key on the API key page using Google or email. Each account has one active key; generating a new one replaces the old.
What happens if I run out of credit?
Requests fail, but errors and refusals do not consume your balance. You can top up using crypto (USDT or USDC) at any time. Prepaid credit never expires, so you can use it whenever you are ready.
Is the model suitable for coding?
Yes. The uncensored coding llm is optimized for technical tasks, including code generation, debugging, and explanation. It handles complex JSON and tool definitions reliably without unnecessary refusals for lawful adult content.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.