EN ▾
Get API key

Unhinged AIUnhinged AI: Uncensored LLM API Quickstart

Unhinged AI: Uncensored LLM API Quickstart

Integrate with the unhinged ai uncensored llm api in minutes using standard OpenAI-compatible endpoints. Get straight text generation without content filters using prepaid crypto credits.

https://api.unhingedai.cc/v1uncensored

Base URL and Authentication

The unhinged ai API uses the standard OpenAI chat-completions structure. To start, point your client to https://api.unhingedai.cc/v1 and pass your API key in the Authorization header. You receive one active key per account, visible immediately after signup via Google or email. If you regenerate the key, the old one stops working instantly. This ensures your uncensored api access remains secure without subscription locks.

Chat Completions Endpoint

Send requests to POST /v1/chat/completions with the model ID "uncensored". This open-weight model answers without refusals for lawful adult content. You can adjust temperature, top_p, and stop sequences. The API accepts text in and returns text out. No embeddings or image generation are available. Keep your payload under 8 MB. Below is a basic request structure.

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

Using the official openai Python package is the fastest way to test integration. Set the base_url to our endpoint and provide your key. The client handles JSON serialization automatically. You can set max_tokens to control output length. If you do not set it, the response can run to the end of the window. This uncensored ai api method works identically to standard OpenAI clients.

from openai import OpenAI

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

For JavaScript environments, install the OpenAI Node SDK. Configure the apiKey and baseURL to match our uncensored api infrastructure. The SDK supports the same parameters as the Python version. You can send messages as an array of objects. The response will contain the generated text in choices[0].message.content. This approach is ideal for web servers or backend services requiring unfiltered text generation.

import OpenAI from "openai";

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

Enable streaming by setting stream: true. The API returns Server-Sent Events (SSE) for real-time token delivery. Each chunk contains partial text. The final chunk includes usage statistics, such as input and output token counts. This is useful for building chat interfaces that display text as it generates. Streaming does not affect pricing; you still pay for total tokens used. Use this uncensored chat api feature for low-latency user experiences.

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)

Limits, Errors, and Context

Your key allows 300 requests per minute and 8 concurrent connections. If you exceed limits, you receive a 429 error. A 401 error means the key is invalid. A 402 error indicates insufficient prepaid credit. The context window is 100,000 tokens total, with no separate output cap. Errors and refusals do not consume credit. Credit never expires, so you can pause usage without losing funds.

Pricing and Tokens

Pricing is transparent: $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors are free. Top up by crypto, USDT (TRC20) or USDC (Base), for amounts between $20 and $500. Credits from $50+ include a 5% bonus; $100+ get 10%. No PayPal. New accounts get $0.50 trial credit for 7 days. This uncensored llm api model is tuned for adult use but blocks sexual content involving minors. Claim this credit with one click on your API key page. Pay only for what you use.

Technical specifications

If your tool speaks the OpenAI API, these are the details that matter.

ItemValue
CompatibilityOpenAI Chat Completions schema; official openai SDKs work unchanged
AuthenticationBearer token in the Authorization header
Base URLhttps://api.unhingedai.cc/v1
Modeluncensored
MethodsPOST /v1/chat/completions · GET /v1/models
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
SSE streamingSupported (stream: true), usage included at the end
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Structured outputresponse_format: {"type": "json_object"}
Context window100,000 tokens, input and output combined
Parallel requests8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Requests per minute300/min per key
Request size8 MB request body
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
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
Credit expiryno monthly fee; paid credit does not expire
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
How you payprepaid credit, charged by real token usage; errors and refusals are free
AccountGoogle or e-mail and password
Key managementone active key per account; a new key replaces the old one
Contentadult content allowed; sexual content involving minors is refused

Error codes

The type field is stable, the message is for humans. Errors cost nothing.

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_foundonly /v1/chat/completions and /v1/models exist
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

Is the model proprietary or open-weight?

The model is open-weight and runs on our servers. It is not GPT, Claude, or Llama. It is specifically tuned to answer without content refusals for lawful adult use.

How do I top up my credit?

You can pay by crypto (USDT on TRC20, USDC on Base). Minimum top-up is $20. Credits never expire and include bonuses for larger amounts. No bank transfer is needed.

What happens if I hit the rate limit?

You will receive a 429 status code. You can send 300 requests per minute and 8 concurrent requests. If you exceed this, wait for the window to reset or upgrade your key usage.

Your key is one form away

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

Get API keyRead the docs