EN ▾
Get your key

API Documentation

Start using our uncensored LLM API in seconds with standard OpenAI-compatible endpoints. No subscriptions, no vendor lock-in, just raw token pricing and immediate access.

Authentication & Base URL

Send requests to https://api.modelaiunrestricted.com/v1 with your API key in the Authorization header. Generate your key instantly via Continue with Google or email on the dashboard—no phone number required. The key grants immediate access to the uncensored model for lawful adult content and roleplay applications.

First Request

Make a standard chat completion call to test connectivity and model behavior. This endpoint accepts text input and returns text output, supporting the full range of our unrestricted capabilities without content refusals for standard adult themes.

curl https://api.modelaiunrestricted.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Generate a list of five common roleplay character archetypes."}]
  }'

Python SDK Integration

Use the official OpenAI Python library to integrate the API into your backend services. Point the client to our base URL and supply your key to access the uncensored model directly. This approach ensures compatibility with existing codebases while removing safety guardrails that block creative or controversial outputs.

from openai import OpenAI

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

Connect your JavaScript or TypeScript applications using the standard OpenAI Node.js client. Configure the base URL to route requests through our servers, enabling your app to generate unlimited, unfiltered text responses. This method works seamlessly with existing OpenAI-compatible clients without custom parsing logic.

import OpenAI from "openai";

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

Enable streaming via Server-Sent Events (SSE) to deliver responses in real-time. Token usage details, including input and output counts, appear in the final chunk of the stream. This allows your application to track costs accurately while displaying content to users with minimal latency.

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 & Context

Each key supports 300 requests per minute and a 100,000-token context window. Handle errors like 401 for invalid keys, 402 when prepaid credit is exhausted, and 429 for rate limits. Crypto top-ups from $20 to $500 ensure you never run out of credits unexpectedly.

Common questions

Is this the only unrestricted AI model available via API?

Yes. We offer a single, fully unrestricted model tuned for adult and controversial topics. There is no routing or choice between vendors; you get direct access to our specific uncensored large language model for consistent behavior.

How does billing work for this uncensored AI API?

You pay only for tokens used: $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free. Add prepaid credit via USDT (TRC20) or USDC (Base) with bonus credit for larger amounts.

What is the context window size?

The model supports a 100,000-token context window for both prompt and completion combined. You can output up to 16,000 tokens per request, or 2,048 if you do not specify a limit.

Access your key via a form

Register, copy the token, update your endpoint. That is the entire configuration.