EN ▾
Get API key

Uncensored API. Pay per token.

Abliterated Model API Quickstart

Get started with the Abliterated Model API in minutes. Use our OpenAI-compatible endpoints to send uncensored text completions with transparent token billing.

Base URL & Authentication

Start by authenticating with your API key. Sign up on the Get API key page using Google or an email and password. Your key appears immediately. No phone number is required, and the key is tied to one account. Use the base URL https://api.abliteratedmodel.top/v1 for all requests. This URL works with standard OpenAI SDKs by setting the base_url parameter.

Include your key in the Authorization header as a Bearer token. The model identifier is uncensored. This is an open-weight model tuned for uncensored responses, not a rebranded GPT or Llama instance. Requests are charged per token. Errors and refusals do not consume credit. Start with a trial credit of $0.50 valid for 7 days. Claim this credit with one click on your API key page.

First Request

Make your first API call to test connectivity. Send a POST request to /v1/chat/completions with a simple system and user message. The model will return a text completion. This confirms your authentication and token billing are working correctly.

Use the following cURL command to verify your setup. Replace YOUR_API_KEY with your actual key.

The response includes the generated text and token usage details. If you receive a 401 error, check your key. A 402 error means you need to top up your prepaid credit. The API only supports text completions. It does not handle images, audio, or embeddings.

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

Use the official OpenAI Python SDK to integrate the abliterated model into your application. Set the base_url to our API endpoint. This allows you to use familiar methods like chat.completions.create while leveraging our uncensored model.

Initialize the client with your API key and the custom base URL. Pass the model name uncensored and your prompt. The SDK handles the request formatting and response parsing automatically. This approach is ideal for developers who want to swap models without changing their core logic.

Remember that the model has a context window of 100,000 tokens. Manage your input and output tokens to stay within limits. Streaming is supported for real-time responses.

from openai import OpenAI

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

Integrate with Node.js using the OpenAI npm package. Configure the client with the same base URL and API key. This ensures compatibility with existing Node applications that use OpenAI-compatible endpoints.

Create a chat completion request with the uncensored model. The SDK manages the HTTP request and parses the JSON response. You can access the generated text from the response object. This method is efficient for server-side applications and microservices.

Ensure you handle errors appropriately. Rate limits and token usage are tracked per request. The API key is required for every call. You can generate a new key if needed, replacing the old one.

import OpenAI from "openai";

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

Enable streaming to receive completions token by token. Set the stream parameter to true in your request. The API returns a stream of Server-Sent Events (SSE). Each event contains a partial response.

Process the stream in your client to display text as it is generated. The final chunk includes the total token usage. This is useful for chat interfaces and real-time applications. Streaming reduces perceived latency for users.

Ensure your client handles stream errors and network interruptions gracefully. The abliterated model supports streaming for all standard chat completions. Token billing is accurate even in streaming mode.

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, Errors & Context

Understand the constraints to avoid service interruptions. The API allows 300 requests per minute per key and 8 concurrent requests. The maximum request body size is 8 MB. The context window is 100,000 tokens total. There is no separate output cap, and if max_tokens is unset, the response can run to the end of the window.

Error codes include 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. Credit is prepaid and never expires. Errors are free. Content refusals are free. The only hard content limit is no sexual content involving minors. Use these limits to design your application's retry logic and token management.

Capabilities and limits

One table with every limit, feature and price that applies to your key.

FeatureSupport
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
EndpointsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
Base URLhttps://api.abliteratedmodel.top/v1
API keyBearer token in the Authorization header
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
Structured outputresponse_format: {"type": "json_object"}
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Function callingYes — 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
Context window100,000 tokens, input and output combined
Rate limit300 requests per minute per key
Concurrency8 requests at the same time per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max body8 MB request body
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Credit expiryno monthly fee; paid credit does not expire
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
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Billingprepaid credit, charged by real token usage; errors and refusals are free
Contentadult content allowed; sexual content involving minors is refused
Keysone active key per account; a new key replaces the old one
Accountsign in with Google or with e-mail + password

Error codes

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_revokedno key, wrong key, or a key replaced by a newer one
402no_creditout of credit; add credit and retry
403content_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busymodel busy — retry in a few seconds

Questions and answers

How do I top up my credit?

Top up by crypto (USDT on TRC20, USDC on Base). Minimum amount is $20, maximum is $500. Credits do not expire. PayPal is not accepted.

Is this a reseller of GPT or Llama?

No. The uncensored model is an open-weight model run on our servers. It is not GPT, Claude, Gemini, Grok, Qwen, Llama, or any other vendor's model. It is tuned for uncensored responses.

What happens if I get rate limited?

You will receive a 429 error. The limit is 300 requests per minute and 8 concurrent requests per key. You can generate a new API key to replace the old one, but note that only one key is active per account.

Your key is one form away

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

Get API key