EN ▾
Uncensored API, prepaid tokensabliteratedai.top
Get API key

Abliterated AI API Documentation

Abliterated AI provides a straightforward, uncensored LLM API for developers who need unrestricted text generation without vendor lock-in. This quickstart guide walks you through authentication, making your first request, and handling streaming responses with our OpenAI-compatible endpoint.

Base URL & Authentication

Connect to the abliterated ai service using the standard OpenAI-compatible base URL. The API is hosted at https://api.abliteratedai.top/v1. You need an API key to authenticate your requests. Sign up with Google or email on the Get API key page to receive your key immediately; no phone number or credit card is required.

Pass your key in the Authorization header as a bearer token. The endpoint POST /v1/chat/completions handles text input and output, while GET /v1/models lists available models. Our service uses a single dedicated uncensored model, identified as uncensored, which does not refuse lawful adult, fictional, or controversial topics. It is not GPT, Claude, or any other vendor model.

Your First Request

Make a simple chat completion request to test the connection. Specify the model ID as uncensored and include your prompt. The API returns text responses directly. Below is a basic cURL example to get started.

curl https://api.abliteratedai.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."}]
  }'

Replace YOUR_API_KEY with your actual key. The response will contain the generated text in the choices array. Errors like invalid keys return 401, and insufficient credit returns 402. These errors are free, so you only pay for successful token usage.

Python SDK Integration

Use the official OpenAI Python SDK with a custom base URL to integrate abliterated ai into your Python applications. Set the base_url to our endpoint and provide your API key. This approach allows you to use familiar SDK methods while accessing our uncensored model.

from openai import OpenAI

client = OpenAI(base_url="https://api.abliteratedai.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)

The SDK handles JSON serialization automatically. You can pass parameters like temperature and top_p to control creativity. The model supports a context window of 100,000 tokens, allowing long conversations or large documents. Output can run to the end of the window unless you specify a lower max_tokens.

Node.js SDK Usage

For JavaScript developers, the OpenAI Node.js SDK works seamlessly with our API. Configure the client with the correct base URL and authentication header. This setup lets you build uncensored chatbots or AI girlfriend interfaces using standard Node.js patterns.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.abliteratedai.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 streams data if you use the streaming method, otherwise, it waits for the full response. You can enable JSON mode by setting response_format to {"type": "json_object"} for structured outputs. Remember that our service is prepaid; ensure your wallet has sufficient crypto credit before making high-volume requests.

Streaming Responses

Enable streaming for real-time token delivery. Set stream: true in your request. The API sends Server-Sent Events (SSE) chunks. Each chunk contains partial text. The final chunk includes token usage statistics, allowing you to track costs accurately. This is ideal for chat interfaces where users see text as it is generated.

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 token pricing. You pay for input and output tokens regardless of streaming. The model refuses sexual content involving minors even during streaming. Other content restrictions are minimal, supporting creative and unrestricted use cases. Ensure your client handles SSE events correctly to avoid memory issues.

Limits, Errors & Context

Our API enforces strict limits to ensure stability. You are allowed 300 requests per minute and 8 concurrent requests per key. The request body size limit is 8 MB. If you exceed the rate limit, you receive a 429 error. These limits apply per API key. You can generate a new key to replace an old one, but only one active key exists per account.

The context window is 100,000 tokens total. There is no separate output cap. Errors such as 401 (invalid key) or 402 (no credit) do not consume tokens. Credit never expires, and no subscription fees apply. Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens.

Capabilities and limits

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

FeatureSupport
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Model IDuncensored
Base URLhttps://api.abliteratedai.top/v1
MethodsPOST /v1/chat/completions · GET /v1/models
AuthenticationAuthorization: Bearer YOUR_KEY
StreamingSupported (stream: true), usage included at the end
Context window100,000 tokens (prompt + completion together)
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
JSON modeJSON object mode via response_format json_object
Rate limit300/min per key
Concurrency8 requests at the same time per key
Request size8 MB request body
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Volume bonus+5% from $50, +10% from $100, +15% from $200
Credit expiryno monthly fee; paid credit does not expire
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
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
AccountGoogle or e-mail and password
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Key managementone key per account, regenerate any time (the old one stops working)

Error codes

Every error is JSON with a type you can switch on. You are never charged for an error.

CodeTypeMeaning
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_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

How do I top up my credit?

Top up using cryptocurrency only: USDT (TRC20) or USDC (Base). Accepted amounts range from $20 to $500. You receive a 5% bonus for deposits of $50 or more, and 10% for $100 or more. No credit cards or PayPal are accepted.

Is there a free trial?

Yes, new users get $0.50 of trial credit valid for 7 days. Claim this credit with one click on your API key page. No credit card is required to sign up. The trial is one per person, and you can sign up with Google or email.

What content is blocked?

The model refuses requests containing sexual content involving minors. All other lawful adult, fictional, or controversial content is allowed. Prompts are not used for training your data, ensuring privacy for your API usage.

Your key is one form away

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