EN ▾
Uncensored LLM API for NSFW and freedom.rankingmodeliai.com

API Documentation

Get started with our uncensored LLM API using standard OpenAI-compatible endpoints. This quickstart guides you through authentication, basic requests, and streaming responses.

Authentication and Base URL

Use your API key with the base URL https://api.rankingmodeliai.com/v1. Sign up via Google or email to receive a key instantly. No phone number is required. The key authenticates all requests to our uncensored AI service.

Include the header Authorization: Bearer YOUR_API_KEY in every call. Your prompts are not used for training. This setup works with any OpenAI-compatible client.

First Request

Send a POST request to /v1/chat/completions with the model ID uncensored. The base URL handles all routing. You can stream results or get them all at once.

  • Set model to uncensored.
  • Pass your messages in the messages array.
  • Receive text output directly.

This approach ensures compatibility with existing tools.

curl https://api.rankingmodeliai.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "List the top five factors affecting model latency scores."}]
  }'

Python SDK Integration

Install the official OpenAI Python package. Configure the base URL to point to our servers. Use the uncensored model ID for all completions. This method simplifies integration into your Python applications.

The SDK handles retries and formatting automatically. You can adjust parameters like temperature or top_p as needed. Our API supports standard OpenAI behaviors.

from openai import OpenAI

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

Import the OpenAI Node.js client. Set the baseURL to our endpoint. Initialize the client with your API key. This allows seamless integration into Node.js environments.

Call chat.completions.create with your desired parameters. The response contains the generated text. You can parse JSON or handle errors as usual.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.rankingmodeliai.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. The API returns tokens via Server-Sent Events (SSE). This reduces perceived latency for large outputs. You can process tokens as they arrive.

Each chunk contains partial text. The final chunk includes token usage statistics. This feature is ideal for chat interfaces. It provides a smoother user experience.

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 is 100,000 tokens total. Max output is 16,000 tokens per request. Errors and refusals are free. Rate limits are 300 requests per minute. A 401 error means an invalid key. A 402 error indicates insufficient credit. A 429 error signals rate limiting. Our prepaid model ensures transparent costs.

Common questions

What is the base URL for the ranking modeli AI API?

The base URL is HTTPS://api.rankingmodeliai.com/v1. This endpoint is compatible with standard OpenAI SDKs and clients. You only need to change the base URL and provide your API key.

How do I handle authentication for the uncensored LLM?

Include the header Authorization: Bearer YOUR_API_KEY in every request. You can sign up via Google or email to get a key instantly. No phone number is required for the account.

What happens if I exceed the rate limit?

You will receive a 429 Too Many Requests error. The limit is 300 requests per minute per key. You can also have 8 concurrent requests. Errors and refusals do not count against your credit.

Generate your key

Sign up, copy your key, and update your base URL. That’s all there is to it.

Get API key