EN ▾

Code-first uncensored LLM API

Uncensored ai API Quickstart Guide

Integrate our uncensored AI API with standard OpenAI-compatible syntax to generate text without content refusals. This quickstart guide covers authentication, requests, streaming, and structured output for your application.

Prerequisites and Authentication

Start by creating an account and generating your API key. Use Continue with Google or provide an email and password on the Get API key page. The key appears immediately. No phone number is required. Set your OPENAI_API_KEY environment variable to this value. Use this base URL for all requests: https://api.uncensoredaiplatform.com/v1.

curl https://api.uncensoredaiplatform.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "set max tokens to 2048 and temperature to 0.7"}]
  }'

Sending Your First Request

Send a POST request to /v1/chat/completions with the model ID uncensored. Include your messages array in the body. The API returns a text response. This works with any OpenAI-compatible client. Change the base URL and API key in your configuration. Use this simple structure to test connectivity.

from openai import OpenAI

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

import OpenAI from "openai";

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

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)

Get your API key

Sign up, copy the key, swap the base URL. That’s it.

Claim trial key