EN ▾
Get API key

Uncensored LLM API for developers

https://api.unfilteredaichat.cc/v1

uncensored

Unfiltered AI Chat: Quickstart: Integrate the Uncensored LLM API

Get started with the Unfiltered AI Chat uncensored LLM API in minutes. This quickstart guide covers integration, streaming, and structured output using standard OpenAI-compatible clients.

Prerequisites: SDK and API Key

To begin, you need an API key from the Unfiltered AI Chat dashboard. Sign up with Google or email to receive your key immediately. You will also need a supported OpenAI-compatible SDK installed in your development environment.

The API uses a simple base URL that works with any OpenAI SDK. Ensure your client is configured to point to https://api.unfilteredaichat.cc/v1. No additional routing logic is required because we provide a single, dedicated uncensored model endpoint.

Basic Chat Completion

The core functionality accepts text input and returns text output. Use the standard chat-completions endpoint to send your prompt. The model ID for our uncensored large language model is always "uncensored". This ensures you are hitting the correct endpoint for unrestricted content.

The following example demonstrates a simple request using the official curl client:

  • Set the Authorization header with your Bearer token.
  • Specify the model as "uncensored".
  • Provide your user message in the content array.

This returns a standard JSON response containing the generated text.

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

Streaming Responses via SSE

For lower latency and a better user experience, enable streaming by setting stream: true. The API returns Server-Sent Events (SSE) containing partial responses. This is ideal for chat interfaces where you want to display tokens as they are generated.

Each chunk includes usage data in the final chunk, allowing you to track token consumption in real-time. The streaming format is fully compatible with standard OpenAI SDK parsers.

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)

Function Calling and Tools

Our uncensored LLM API supports tool definitions and function calling. You can define tools in the request and let the model decide when to use them. This allows for structured interactions even within an unrestricted model.

Use the tools parameter to pass your function definitions. The model will return a tool call if appropriate. This feature works seamlessly with the OpenAI SDKs, making integration straightforward for developers building agentic workflows.

from openai import OpenAI

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

JSON Mode for Structured Output

If you need strictly structured data, use JSON mode. By setting response_format to {"type": "json_object"}, the model is constrained to output valid JSON. This is useful for parsing data, generating configurations, or building state machines.

While the model is uncensored, it still follows instruction guidelines effectively. JSON mode ensures the output is machine-readable without requiring complex post-processing.

import OpenAI from "openai";

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

Parameters, Limits, and Errors

Control the model's behavior with standard parameters like temperature, top_p, and seed. The context window supports 100,000 tokens total, and the response can run to the end of the window.

Be aware of these limits: 300 requests per minute, 8 concurrent requests, and an 8 MB request body. Errors return standard HTTP codes: 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. Credit is prepaid and does not expire.

What the API supports

A quick checklist for developers: format, limits, features, billing.

SpecValue
ProtocolOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
API keyBearer token in the Authorization header
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.unfilteredaichat.cc/v1
Modeluncensored
Max context100,000 tokens (prompt + completion together)
StreamingYes — server-sent events; the last chunk carries token usage
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
JSON moderesponse_format: {"type": "json_object"}
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
Max body8 MB request body
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrencyup to 8 in parallel per key
Requests per minute300/min per key
Bonus credit+5% from $50, +10% from $100, +15% from $200
Trial credit$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
Subscriptionpaid credit never expires, no subscription
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Sign-inGoogle or e-mail and password
Content policyadult content allowed; sexual content involving minors is refused
Keysone active key per account; a new key replaces the old one

HTTP errors

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_blockedsexual content involving minors — refused, not billed
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 uncensored model GPT or Claude?

No. The model is an open-weight model run on our own servers. It is not GPT, Claude, Gemini, Grok, or any other vendor's model. It is tuned specifically to answer without content refusals for lawful adult use.

How do I pay for the API?

Payments are made by crypto (USDT on TRC20, USDC on Base). You can top up any whole amount from $20 to $500. There are no monthly fees, and prepaid credit never expires.

Are prompts used for training?

No. Your prompts are not used for training the model. An account only requires an email, and we do not track or train on your data beyond what is necessary to serve the request.

Your key is one form away

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

Get API key