EN ▾
Get API key

Abliterated AI: Integration Quickstart

Get started with the Abliterated AI uncensored LLM API in minutes. Use the standard OpenAI-compatible interface to send text and receive unfiltered responses.

Base URL & Authentication

Start by pointing your client to our base URL: https://api.abliteratedai.cc/v1. This endpoint works with any OpenAI-compatible SDK. You need a valid API key sent in the Authorization header. Generate one instantly on the dashboard by signing in with Google or email. The key is displayed once, so save it securely. We do not require a phone number or credit card for the initial signup. Your account comes with trial credit, allowing you to test the uncensored model before purchasing crypto top-ups.

First Request

Send a standard chat completion request to test connectivity. The model ID is uncensored. This model is tuned for raw, unfiltered text generation without content refusals for lawful adult use. It is not GPT, Claude, or any other vendor's model. Ensure you specify the model ID in your request body. If the key is invalid, you will receive a 401 error. If you lack funds, you will see a 402 error. Our API returns text only, so no image or audio generation is expected here.

Python Quickstart

Use the official OpenAI Python SDK to integrate our API. Set the base URL to our endpoint and provide your API key. The code below demonstrates a simple text generation request. This approach works for any Python project requiring an uncensored LLM. The response object contains the generated text in choice.message.content. You can adjust parameters like temperature or top_p directly in the function call. This method is ideal for backend services or scripts that need reliable, unfiltered text output.

Node.js Quickstart

For JavaScript or TypeScript projects, use the openai npm package. Configure the client with our base URL and your API key. The structure mirrors the Python SDK, making it easy to switch between languages. Send a chat completion request with the uncensored model. The response provides the text content directly. This integration is suitable for web servers or Node.js applications requiring direct, unrestricted text generation without intermediate routing layers.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream, allowing you to process tokens as they generate. This reduces perceived latency for users. The final chunk includes token usage details, so you can track costs accurately. Streaming works with all standard parameters. Ensure your client handles SSE events correctly to display text in real-time. This feature is essential for chat interfaces where immediate feedback is required.

Limits, Errors & Context

Your API key allows 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB. The context window is 100,000 tokens total, with no separate output cap. If you do not set max_tokens, the response can run to the end of the window. Errors include 401 for invalid keys and 402 for insufficient credit. Rate limits trigger a 429 response. Credits never expire, and trial credit lasts 7 days. Errors and refusals do not consume credits.

cURL

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

Python

from openai import OpenAI

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

Node.js

import OpenAI from "openai";

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

Streaming

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)

Questions and answers

How do I get an API key?

Visit the 'Get API key' page and sign in with Google or an email/password. Your key is displayed immediately. No phone number or credit card is required for the initial signup.

What happens if I hit the rate limit?

You will receive a 429 status code. The limit is 300 requests per minute per key, with a maximum of 8 concurrent requests. Wait a moment and retry, or upgrade your prepaid credit volume for higher throughput.

Is the trial credit refundable?

No, trial credit is non-refundable and expires after 7 days. Prepaid credits purchased by crypto never expire. Mistakes like double charges can be fixed via the Support page.

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.

FeatureSupport
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Model IDuncensored
AuthenticationBearer token in the Authorization header
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.abliteratedai.cc/v1
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Max context100,000 tokens, input and output combined
SSE streamingSupported (stream: true), usage included at the end
JSON modeJSON object mode via response_format json_object
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Request size8 MB request body
Parallel requests8 requests at the same time per key
Rate limit300/min per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
Subscriptionno monthly fee; paid credit does not expire
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
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
Key managementone active key per account; a new key replaces the old one
Sign-insign in with Google or with e-mail + password
Content policyuncensored for adults; the only hard rule: no sexual content involving minors

When a request fails

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

StatusTypeReason
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditbalance is empty — top up, requests resume at once
403content_blockedrefused by the content policy
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busymodel busy — retry in a few seconds