EN ▾

Unrestricted AI Models: API Documentation

Get started with the unrestricted ai models API in seconds using our OpenAI-compatible endpoint. This guide covers authentication, basic requests, streaming, and the hard limits you need to know for production.

Base URL and Authentication

Our API is a pure, uncensored LLM endpoint designed for developers who want to bypass content filters without managing infrastructure. To begin, you need an API key, which you can generate instantly by signing in with Google or an email address on the Get API key page. No phone number or credit card is required to start.

Every request must include your API key in the Authorization header using the Bearer scheme. The base URL for all requests is https://api.unrestrictedaimodels.top/v1. This URL is compatible with standard OpenAI SDKs; you simply need to configure the client to point to our domain instead of the default OpenAI endpoint.

Keep your key secure. Each account supports only one active key at a time; generating a new one immediately invalidates the previous key. If you lose access, you can generate a new key without losing your prepaid balance, which never expires.

Chat Completions Endpoint

The core of our service is the POST /v1/chat/completions endpoint. This is where you send your prompt and receive the model's response. The model identifier is simply uncensored. Unlike general-purpose aggregators, we do not offer embeddings, image generation, or audio processing; this is a text-only LLM without restrictions on adult or controversial topics for lawful use.

Below is a basic example using curl to send a simple prompt. Ensure you replace YOUR_API_KEY with your actual key. The response will contain the model's output in the choices array.

This direct approach minimizes overhead. You pay only for the tokens actually consumed, with errors and refusals (except for the hard limit on minor sexual content) charged at zero.

Python SDK Integration

For Python developers, using our API feels identical to using the official OpenAI library. You can point the client to our base URL and use the same ChatCompletion methods. This makes it easy to swap in our uncensored model into existing codebases that already support OpenAI-compatible endpoints.

The following example demonstrates how to initialize the client with our base URL and send a request. You can install the standard openai package via pip. This method is ideal for backend services, scripts, or automated workflows where you need reliable, uncensored text generation without the latency of web interfaces.

Remember that the model does not use prompts for training, preserving your data privacy while giving you access to open source ai models with no restrictions on topic.

Node SDK Integration

If you are building in JavaScript or TypeScript, the openai npm package works seamlessly with our API. Configure the client with our base URL and your API key, then call chat.completions.create(). This allows you to integrate uncensored AI directly into your Node.js servers, Next.js apps, or backend microservices.

Using the standard SDK means you can leverage existing error handling and type definitions. The response structure matches the OpenAI specification, so you can parse the content from response.choices[0].message.content just as you would with any other compliant provider. This consistency reduces the learning curve when switching from standard models to our abliterated llm.

Streaming Responses (SSE)

For applications that require real-time output, such as chat interfaces or interactive tools, enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains a partial piece of the response, allowing you to render text as it is generated.

Streaming is particularly useful for long-form content or code generation, where seeing tokens appear immediately improves the user experience. The final chunk in the stream includes the total token usage for the request, which you can use to update your UI or track billing credits.

Be sure to handle the stream correctly in your client code to avoid memory leaks or incomplete responses. Our uncensored models support high-throughput streaming, making them suitable for high-volume applications.

Parameters: Temperature, Top P, Seed

You can control the model's behavior using standard parameters. temperature adjusts randomness (higher values make outputs more creative, lower values more deterministic). top_p filters tokens based on cumulative probability, offering another way to control variance.

Use seed to ensure reproducible outputs for the same prompt, which is valuable for debugging or testing. The model supports stop sequences to halt generation, presence_penalty and frequency_penalty to influence token repetition, and response_format for strict JSON output. These parameters give you fine-grained control over the uncensored llm's behavior without needing complex prompt engineering.

Function Calling and JSON Mode

Our API supports function calling (tool use) and structured JSON outputs. You can define a schema of available tools in your request, and the model will return structured JSON data that matches your specified format. This is essential for building agents or applications that need to interact with external systems.

Set response_format to {"type": "json_object"} to force the model to output valid JSON. This is critical for parsing data in automated pipelines. The model is uncensored but still adheres to structural constraints when requested, ensuring reliable integration with your code.

Context Window and Limits

The model has a context window of 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. This large window allows for processing extensive documents or long conversations in a single request.

Rate limits are set to 300 requests per minute per key, with a maximum of 8 concurrent requests. Request bodies are limited to 8 MB. If you hit these limits, you will receive a 429 error. Authentication errors (401) occur if your key is invalid, and payment errors (402) occur if your prepaid balance is insufficient. Note that we do not offer an SLA, and concurrent limits are per key, not per account.

cURL

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

Python

from openai import OpenAI

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

Node.js

import OpenAI from "openai";

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

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)

Under the hood: specs

If your tool speaks the OpenAI API, these are the details that matter.

ParameterDetails
ProtocolOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
AuthenticationBearer token in the Authorization header
EndpointsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
Base URLhttps://api.unrestrictedaimodels.top/v1
Structured outputJSON object mode via response_format json_object
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Max context100,000 tokens, input and output combined
StreamingYes — server-sent events; the last chunk carries token usage
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Requests per minute300/min per key
Max body8 MB request body
Concurrency8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
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
Subscriptionpaid credit never expires, no subscription
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Key managementone key per account, regenerate any time (the old one stops working)
Sign-inGoogle or e-mail and password
Content policyadult content allowed; sexual content involving minors is refused

When a request fails

Errors come back as JSON with a stable type; failed and refused requests are not billed.

StatusTypeReason
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditbalance is empty — top up, requests resume at once
403content_blockedrefused by the content policy
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

Do you support embeddings or image generation?

No, we only support chat completions. We do not offer embeddings, image, audio, or video generation. This is a text-only API for an uncensored model.

How does billing work with crypto?

You top up your account by crypto (USDT on TRC20, USDC on Base). Charges are based on real token usage, and errors are free. There are no monthly fees, and credit never expires.

What is the hard content limit?

We refuse requests involving sexual content with minors. All other lawful adult, fictional, or controversial topics are allowed without refusal.

Your key is one form away

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

Get API key