EN ▾

Hosted uncensored API for developers

Get API key

Unfiltered AI Models API Documentation

Integrate an uncensored AI model into your application using a standard OpenAI-compatible interface, requiring only a base URL change and an API key.

Base URL and Authentication

The API endpoint is https://api.unfilteredaimodels.cc/v1. It implements the standard chat-completions interface, allowing you to swap in an uncensored AI model without rewriting your integration logic. Authentication relies on a single API key generated during signup via Google or email. Pass this key in the Authorization header as a Bearer token. The system supports one active key per account; generating a new key immediately invalidates the previous one, ensuring simple key management for your development workflow.

First Request

Send a POST request to /v1/chat/completions with your system prompt and user input. The model ID is always uncensored. This request structure works with any OpenAI-compatible client. You receive text output that reflects the model's lack of standard content refusals for lawful adult, fictional, or controversial topics. Ensure you handle the response stream or body to capture the generated text for your application logic.

Python SDK

Use the official OpenAI Python library to interact with the endpoint. Configure the client with the specific base URL and your API key. This approach lets you leverage existing SDK utilities like pagination or retry logic while accessing an uncensored coding LLM or general-purpose model. The code snippet below demonstrates the standard initialization pattern required to connect to our hosted service.

Node SDK

For JavaScript environments, use the @anthropic-ai/sdk or openai package with the correct base URL configuration. This allows you to integrate an uncensored AI model for coding tasks or creative writing directly into your Node.js application. The standard completion call remains identical to the OpenAI specification, ensuring that your existing code adapts with minimal friction.

Streaming Response

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) containing incremental text chunks. This is essential for real-time user experiences. Token usage statistics are included in the final chunk of the stream. This feature allows you to display generated text progressively while monitoring the token consumption for billing accuracy.

Limits, Errors, and Context

The context window is 100,000 tokens total, with no separate output cap. You are limited to 300 requests per minute and 8 concurrent requests per key. Errors are standard HTTP codes: 401 for an invalid key, 402 for insufficient credit, and 429 for rate limits. Requests that fail or are refused (except for minor content) do not consume credit, ensuring you only pay for successful token generation.

cURL

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

Technical specifications

Everything the endpoint can and cannot do, in one place — check it before you top up.

FeatureSupport
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
API keyAuthorization: Bearer YOUR_KEY
Modeluncensored
Base URLhttps://api.unfilteredaimodels.cc/v1
EndpointsPOST /v1/chat/completions · GET /v1/models
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
SSE streamingSupported (stream: true), usage included at the end
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
JSON modeJSON object mode via response_format json_object
Context window100,000 tokens (prompt + completion together)
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Max bodyup to 8 MB per request
Parallel requests8 requests at the same time per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Requests per minute300/min per key
Subscriptionno 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
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Volume bonus+5% from $50, +10% from $100, +15% from $200
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Sign-inGoogle 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)

When a request fails

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_revokedcheck the Authorization header or use your current key
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_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

How does the token limit work?

The total context window is 100,000 tokens, combining your input prompt and the model's output. There is no separate output cap. If you do not specify a maximum, the response can run to the end of the window.

Is this model suitable for coding tasks?

Yes, it functions as an uncensored coding LLM capable of generating code without standard refusals. It is an open-weight model optimized for text output, making it reliable for software development workflows.

What happens if I exceed the rate limit?

The API returns a 429 status code. You are allowed 300 requests per minute and 8 concurrent connections per key. Exceeding these limits requires waiting for the window to reset or reducing your concurrent request volume.

Your key is one form away

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

Start with trial credit

Email and password, key on screen right away.