EN ▾
Get API key

Quickstart: Integrate the Uncensored AI Model API

Integrate the uncensored ai model API with a base URL change and your prepaid credit. This quickstart covers authentication, requests, streaming, and limits.

Base URL and Authentication

The API endpoint is https://api.uncensoredaimodel.cc/v1. It is OpenAI-compatible, so you only need to change the base_url and provide your API key. The model ID is uncensored. Authentication uses a standard Bearer token. You get one key per account, shown immediately after signup via Google or email.

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

Errors like invalid keys or credit issues are returned as standard API responses. You can manage your key and view usage on the dashboard. The uncensored llm does not require a subscription; you pay only for tokens used.

Chat Completions Endpoint

Send requests to POST /v1/chat/completions. The model generates text without content refusals for lawful adult use. It is an open-weight model, not GPT or Claude. You control the context via the messages array. The uncensored ai model responds with text output.

from openai import OpenAI

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

Use the official OpenAI Python SDK or any compatible client. Set the model to uncensored. The system handles tokenization. You can also use the uncensored coding llm for code generation without standard filters. The uncensored coding llm works within the same endpoint.

Streaming Responses

Enable streaming by setting stream: true. You receive Server-Sent Events (SSE). Each chunk contains partial text. The final chunk includes token usage details. This is useful for real-time displays.

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)

Stream responses reduce perceived latency. The uncensored models handle streaming efficiently. You can parse chunks to update the UI incrementally. This works with the uncensored local llm pattern if you adapt the client. Errors during streaming still return a final error chunk.

Function Calling and JSON Mode

Use tools for function calling. Set tool_choice to control execution. For strict JSON output, use response_format: {"type": "json_object"}. This ensures structured data for integrations. The uncensored ai model supports these features natively.

Function calling allows the model to invoke external tools. JSON mode is critical for programmatic use. The uncensored llm respects these parameters. You can define multiple tools. The model chooses which to call based on the prompt. This is essential for building agents.

Parameters: Temperature and Top P

Control creativity with temperature and top_p. Lower values make outputs more deterministic. Higher values increase variety. These parameters affect the uncensored ai model's style. You can also set stop sequences, seed for reproducibility, and penalties for presence and frequency.

Adjusting temperature changes the token distribution. Top P filters the nucleus sampling. Use these to tune the uncensored coding llm for code accuracy. The uncensored local llm behaves similarly. Fine-tuning these values helps in specific domains. There is no default; set them explicitly for consistency.

Rate Limits and Context Window

The context window is 100,000 tokens total. There is no separate output cap (if max_tokens is not set, the response can run to the end of the window). Rate limits are 300 requests per minute per key. Concurrent requests are capped at 8. Request body size is 8 MB. These limits apply to the uncensored ai model.

Exceeding limits returns standard error codes. The uncensored llm respects these constraints. Plan your batch processing accordingly. The uncensored coding llm may require more tokens for complex code. Monitor usage via the dashboard. Credit never expires. Use the uncensored models efficiently to manage costs.

Node.js

import OpenAI from "openai";

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

Start with trial credit

Email and password, key on screen right away.

Technical specifications

The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.

ItemValue
ProtocolOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
EndpointsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
Base URLhttps://api.uncensoredaimodel.cc/v1
API keyAuthorization: Bearer YOUR_KEY
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Max context100,000 tokens, input and output combined
JSON modeJSON object mode via response_format json_object
SSE streamingYes — server-sent events; the last chunk carries token usage
Rate limit300/min per key
Concurrency8 requests at the same time per key
Request sizeup to 8 MB per request
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Subscriptionpaid credit never expires, no subscription
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
Keysone key per account, regenerate any time (the old one stops working)
Sign-insign in with Google or with e-mail + password
Content policyuncensored for adults; the only hard rule: no sexual content involving minors

When a request fails

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

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_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 · concurrencyslow down: rate or parallel limit reached
503upstream_busymodel busy — retry in a few seconds

Questions and answers

How do I pay for the uncensored ai model API?

You top up by crypto (USDT on TRC20, USDC on Base). Amounts range from $20 to $500. You get +5% bonus from $50, +10% from $100, and +15% from $200. Credit never expires. No PayPal.

Is the uncensored coding llm different from the general model?

No, it is the same uncensored ai model. It is an open-weight model tuned for no refusals. It handles code generation well without standard content filters. Use the same endpoint and model ID.

What is the trial offer for the uncensored llm?

New accounts get $0.50 trial credit valid for 7 days. Claim this credit with one click on your API key page. No card is needed. Sign up with Google or email. The uncensored ai model is accessible immediately. Credit is not refunded.

Your key is one form away

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