EN ▾
Get your key

Uncensoredai.com API Quickstart Guide

The uncensoredai.com API provides direct access to a single, unrestricted large language model with full OpenAI SDK compatibility. You can start generating text immediately using your prepaid crypto credit and standard HTTP requests.

Base URL and Authentication

Our API endpoint is HTTPS://api.uncensoredaicom.com/v1. All requests require an API key passed in the Authorization header. Generate your key via the dashboard using Google or email login. The key grants immediate access to the uncensored model without phone verification or subscription locks.

First Request

Send a POST request to /v1/chat/completions to generate text. Specify the model as "uncensored" and include your system prompt. The API returns JSON responses with generated content. Errors like 401 indicate invalid keys, while 402 means insufficient credit.

curl https://api.uncensoredaicom.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Return a list of ten modern CSS layout techniques"}]
  }'

Python SDK Integration

Use the official OpenAI Python library. Set the base URL to our endpoint and provide your API key. The client handles serialization automatically. This approach works for both simple completions and complex tool usage patterns. Adjust parameters like temperature to control randomness.

from openai import OpenAI

client = OpenAI(base_url="https://api.uncensoredaicom.com/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 Usage

Initialize the OpenAI client with the custom base URL and your credentials. Node.js developers can integrate this easily into existing backend services. The SDK manages connection pooling and retries efficiently. Ensure you handle streaming responses correctly for real-time output.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.uncensoredaicom.com/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 in your request. The API sends Server-Sent Events (SSE) for token-by-token output. Token usage details appear in the final chunk. This method reduces perceived latency for users waiting for long-form content generation.

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

The context window supports 100,000 tokens total. Max output per request is 16,000 tokens. Rate limits allow 300 requests per minute and 8 concurrent connections. Request bodies must stay under 8 MB. Handle 429 errors by implementing exponential backoff strategies.

Frequently asked questions

What is the base URL for the uncensoredai.com API?

The base URL is HTTPS://api.uncensoredaicom.com/v1. You must update your SDK client to point to this endpoint instead of the default OpenAI URL.

How do I authenticate requests?

Include your API key in the Authorization header as Bearer <key>. Generate the key instantly after signing up with Google or email.

What happens if I hit the rate limit?

The API returns a 429 status code. You can make up to 300 requests per minute and 8 concurrent requests per key. Implement backoff logic to handle these errors gracefully.

Generate your API key

Register, retrieve the key, and update your endpoint. Minimal configuration required.

Get your key