EN ▾
Get API key

Quickstart: Using the Uncensored API

Start using our uncensored API in minutes. This guide shows you how to connect, send requests, and handle streaming responses with our OpenAI-compatible endpoint.

Base URL and Authentication

To begin, direct your client to our base URL: https://api.abliteratedmodels.top/v1. You will need an API key, which you obtain by signing up via Google or email on the Get API key page. The key is displayed immediately after creation.

Pass your key in the Authorization header as a Bearer token. For example, Authorization: Bearer YOUR_API_KEY. If the key is invalid, you will receive a 401 error. If your prepaid credit is exhausted, you will see a 402 error. Our system charges only for actual token usage; errors and refusals are free.

Sending a First Chat Request

Use the standard /v1/chat/completions endpoint. We serve a single uncensored model with the ID uncensored. This model is tuned to answer without content refusals for lawful adult use, making it ideal for creative or unrestricted contexts.

Below is a basic request to test connectivity. Replace YOUR_API_KEY with your actual key.

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

The OpenAI Python SDK works out of the box by pointing it to our base URL. This approach is recommended for most backend integrations. The SDK handles serialization and streaming automatically.

Ensure you are using a recent version of the SDK. You can install it via pip. The following example demonstrates a simple text generation request.

from openai import OpenAI

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

For JavaScript or TypeScript projects, the official OpenAI npm package is compatible. Configure the base URL and API key in your initialization object. This allows you to integrate uncensored outputs directly into web apps or Node services.

Remember that our model ID is always uncensored. Do not attempt to use other model IDs unless they are mapped by your own routing logic.

import OpenAI from "openai";

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

Set stream: true in your request to receive token-by-token updates via Server-Sent Events (SSE). This reduces perceived latency for end-users. The final chunk of the stream contains the total token usage for billing purposes.

Streaming is supported for all standard chat parameters. If you need to track usage in real-time, parse the last event in the stream.

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 and Constraints

Each API key is limited to 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB. If you exceed the rate limit, you will receive a 429 error.

Our context window is 100,000 tokens for prompt and completion combined. There is no separate output cap, and if max_tokens is not set, the response can run to the end of the window. We support JSON mode and function calling, but do not offer embeddings, images, or audio. Credit never expires, so you can pause and resume usage at any time.

Questions and answers

How do I top up my credit?

We accept top-ups by crypto (USDT on TRC20, USDC on Base). Top-ups range from $20 to $500. You receive a +5% bonus for top-ups of $50 or more, and +10% for $100 or more, and +15% from $200.

Does the model refuse content?

The model is uncensored and does not refuse lawful adult, fictional, or controversial topics. However, we enforce a hard limit: requests involving sexual content with minors are always refused.

Is the trial credit renewable?

No. New users get $0.50 of trial credit, one per person, valid for 7 days. Claim this credit with one click on your API key page. No card is needed to start. Once the trial expires or is used, you must top up by crypto (USDT on TRC20, USDC on Base) to continue.

Your key is one form away

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

Get API key

Technical reference

The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.

ParameterDetails
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
MethodsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
API keyBearer token in the Authorization header
Base URLhttps://api.abliteratedmodels.top/v1
Max context100,000 tokens, input and output combined
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
SSE streamingYes — server-sent events; the last chunk carries token usage
Structured outputJSON object mode via response_format json_object
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrencyup to 8 in parallel per key
Max body8 MB request body
Requests per minute300 requests per minute per key
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Credit expirypaid credit never expires, no subscription
Billingprepaid credit, charged by real token usage; errors and refusals are free
Free trial$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Content policyuncensored for adults; the only hard rule: no sexual content involving minors
Key managementone key per account, regenerate any time (the old one stops working)
Sign-inGoogle or e-mail and password

Error reference

Errors come back as JSON with a stable type; failed and refused requests are not billed.

HTTPTypeWhat to do
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly