EN ▾
Get API key

API Quickstart: Unfiltered AI Models

Get started with the uncensored API in minutes. Use standard OpenAI-compatible clients to send text and receive raw, unfiltered model outputs without GPU overhead.

Base URL and Authentication

Connect to the API using the standard OpenAI-compatible endpoint. All requests require a valid API key passed in the Authorization header. You receive this key immediately after signing up with Google or email on the Get API key page. No phone number or credit card is required for the initial trial credit.

Base URL: https://api.unfilteredaimodels.top/v1

Configure your client library by setting the base URL to the value above and providing your API key. The service supports any OpenAI-compatible SDK, allowing you to use familiar tools for your uncensored llm integration.

First Request

Make your first call to test connectivity and model responsiveness. The endpoint expects a JSON payload with the model ID, messages array, and optional parameters. This is a text-only API; there are no embeddings or image generation endpoints.

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

The response returns the generated text, token usage statistics, and completion details. If you encounter a 401 error, verify your API key. A 402 error indicates insufficient prepaid credit, which you can top up by crypto (USDT on TRC20, USDC on Base). The 429 error means you have exceeded the rate limit of 300 requests per minute.

Python SDK Integration

Use the official openai Python package to interact with the API. Initialize the client with the custom base URL and your API key. This approach works for both simple chat completions and more complex scripting tasks.

from openai import OpenAI

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

The Python SDK handles streaming and error parsing efficiently. Since we do not offer model routing or fine-tuning, the client configuration remains static. You can adjust parameters like temperature and top_p directly in the request object to control output randomness.

Node SDK Integration

For JavaScript and TypeScript environments, the OpenAI Node SDK provides a straightforward interface. Set the baseURL to our endpoint and pass the API key. This setup is ideal for backend services or serverless functions that need to generate content dynamically.

import OpenAI from "openai";

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

The Node SDK supports both promise-based and async/await patterns. Ensure you handle rate limits gracefully, as the API enforces a hard limit of 8 concurrent requests per key. If you need higher concurrency, consider using multiple API keys.

Streaming Responses

Enable streaming by setting the stream parameter to true. The API returns a Server-Sent Events (SSE) stream, allowing you to display tokens as they are generated. This reduces perceived latency for users, especially in roleplay or creative writing scenarios.

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)

The final chunk in the stream contains the total token usage for the request. Streaming is supported in both the Python and Node SDKs. Note that token usage is only reported in the last chunk, so you cannot calculate real-time costs without buffering the entire response.

Rate Limits and Context Window

The API enforces strict limits to ensure stability. You are allowed 300 requests per minute per API key and a maximum of 8 concurrent requests. The request body must not exceed 8 MB. If you exceed these limits, you will receive a 429 status code.

The context window is 100,000 tokens, combining both prompt and completion. There is no separate output cap, and if you do not specify max_tokens the response can run to the end of the window. Errors and refusals are free, so you only pay for successful token generation. This transparent billing model ensures you pay only for what you use.

Technical specifications

Before you integrate, here is exactly what you get with a key.

FeatureSupport
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
API keyBearer token in the Authorization header
Modeluncensored
Base URLhttps://api.unfilteredaimodels.top/v1
MethodsPOST /v1/chat/completions · GET /v1/models
Structured outputresponse_format: {"type": "json_object"}
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
SSE streamingYes — server-sent events; the last chunk carries token usage
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Context window100,000 tokens, input and output combined
Concurrencyup to 8 in parallel per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request size8 MB request body
Rate limit300/min per key
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Bonus credit+5% from $50, +10% from $100, +15% from $200
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
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
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Subscriptionpaid credit never expires, no subscription
Content policyuncensored for adults; the only hard rule: no sexual content involving minors
Accountsign in with Google or with e-mail + password
Keysone active key per account; a new key replaces the old one

Errors and what to do

Every error is JSON with a type you can switch on. You are never charged for an error.

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
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_largerequest body larger than 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 this the same as GPT or Claude?

No. This is a single, open-weight uncensored model run on our own servers. It is not GPT, Claude, Gemini, Grok, DeepSeek, Qwen, Llama, or any other vendor's model. It is tuned to answer without content refusals for lawful adult use.

How do I top up my credit?

We accept top-ups by crypto (USDT on TRC20, USDC on Base). You can top up any whole amount from $20 to $500. Payments are processed instantly, and you receive bonus credit for larger deposits. No card is needed to sign up or for the trial.

What is the maximum output length?

If you do not set the max_tokens parameter, the response can run to the end of the window. The total context window, including the prompt, is 100,000 tokens.

Your key is one form away

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

Get API key