Quickstart: Using the Abliterated LLM API
Start generating text with our uncensored LLM API in minutes. This guide covers authentication, request formats, and streaming for developers who need direct access without infrastructure overhead.
Base URL and Authentication
The API is hosted at https://api.abliteratedllm.top/v1. It follows the OpenAI chat-completions interface, so you can use existing SDKs by updating the base URL and API key. You receive one active key per account; generating a new key invalidates the previous one. Keep your key secure, as it tracks your prepaid credit usage.
- Base URL:
https://api.abliteratedllm.top/v1 - Authentication: Bearer token in the
Authorizationheader
First Request
Send a standard chat completion request to test the endpoint. The model ID is uncensored. This model is an open-weight variant tuned for fewer refusals, suitable for creative writing, coding, or research. It is not GPT or Llama.
curl https://api.abliteratedllm.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."}]
}'This returns a text response. Note that errors and refusals do not consume your token credit, but successful token generation does.
Python SDK Integration
Use the official OpenAI Python library for the easiest integration. Point the client to our base URL and supply your key. This approach works for both synchronous and asynchronous workflows.
from openai import OpenAI
client = OpenAI(base_url="https://api.abliteratedllm.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 you are using a recent version of the SDK to support all parameters like temperature and top_p.
Node.js SDK Usage
For JavaScript environments, use the openai npm package. Configure the base URL and key exactly as shown below. This allows you to integrate uncensored generation directly into your web apps or backend services.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.abliteratedllm.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);The response object contains the generated text and token usage statistics.
Streaming Responses
Enable streaming by setting stream: true. You receive Server-Sent Events (SSE) for each token generated. This reduces perceived latency for end-users. The final chunk includes the total token usage for the request.
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 the stream properly to avoid memory leaks in long-running connections.
Limits, Errors, and Context
Your context window is 100,000 tokens total (prompt + completion). There is no separate output cap. If you do not set max_tokens, the response can run to the end of the window. You are limited to 300 requests per minute and 8 concurrent requests per key.
Error Handling
401: Invalid or expired API key.402: Insufficient prepaid credit.429: Rate limit exceeded. Wait and retry.
Credit never expires, so you can pause usage and resume later without penalty.
API facts in one table
If your tool speaks the OpenAI API, these are the details that matter.
| Feature | Support |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Model ID | uncensored |
| API key | Authorization: Bearer YOUR_KEY |
| Base URL | https://api.abliteratedllm.top/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| JSON mode | JSON object mode via response_format json_object |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Context window | 100,000 tokens (prompt + completion together) |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Parallel requests | up to 8 in parallel per key |
| Requests per minute | 300/min per key |
| Max body | up to 8 MB per request |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Credit expiry | no monthly fee; paid credit does not expire |
| Price | $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 |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Content | adult content allowed; sexual content involving minors is refused |
| Key management | one active key per account; a new key replaces the old one |
| Sign-in | sign in with Google or with e-mail + password |
Error reference
Every error is JSON with a type you can switch on. You are never charged for an error.
| 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 | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
Does the API support image or audio generation?
No. This is a text-only API. It serves the chat-completions endpoint for the uncensored language model. There are no embeddings, image, or audio capabilities.
How do I top up my credit?
Top-ups are made by crypto (USDT on TRC20, USDC on Base). Minimum is $20, maximum is $500. You can get a 5% bonus on $50+ and 10% on $100+.
Is the trial credit renewable?
No. New users get $0.50 of trial credit valid for 7 days, one per person, no card required.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.