Unhinged AI/Unhinged 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.
| Item | Value |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Authentication | Bearer token in the Authorization header |
| Base URL | https://api.unhingedai.cc/v1 |
| Model | uncensored |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| SSE streaming | Supported (stream: true), usage included at the end |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Structured output | response_format: {"type": "json_object"} |
| Context window | 100,000 tokens, input and output combined |
| Parallel requests | 8 requests at the same time per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Requests per minute | 300/min per key |
| Request size | 8 MB request body |
| Payment | USDT (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 expiry | no 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 pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Account | Google or e-mail and password |
| Key management | one active key per account; a new key replaces the old one |
| Content | adult content allowed; sexual content involving minors is refused |
Error codes
The type field is stable, the message is for humans. Errors cost nothing.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | refused by the content policy |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model 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.