EN ▾

Unfiltered Story: Uncensored LLM API Quickstart

Get started with the Unfiltered Story uncensored LLM API in minutes. This quickstart guides you through authentication, basic requests, streaming, and tool usage using standard OpenAI-compatible clients.

Base URL & Authentication

The Unfiltered Story API is fully compatible with the OpenAI SDK ecosystem. You only need to adjust the base URL and provide your API key. Sign up via Google or email on the Get API key page to receive your token immediately. No phone number or credit card is required for the initial trial.

Use the base URL https://api.unfilteredstory.top/v1 for all requests. The endpoint for chat completions is POST /v1/chat/completions. Your API key should be passed in the Authorization header as a Bearer token. This setup works with any library that supports OpenAI-compatible endpoints, making integration straightforward for existing projects.

Keep your key secure. Each account supports one active key; generating a new one invalidates the previous. There are no monthly subscriptions, so you only pay for what you use, with prepaid credit that never expires.

Basic Chat Completion

Sending a simple prompt is the most direct way to test the uncensored model. The model ID is uncensored. This open-weight model is tuned to answer without refusals for lawful adult content, making it ideal for NSFW or unrestricted generation tasks.

Below is a standard cURL request demonstrating a basic text completion. Replace YOUR_API_KEY with your actual key. The response will contain the generated text in the choices array. This is the core of the unfiltered story experience: text in, text out.

curl -X POST https://api.unfilteredstory.top/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Explain quantum entanglement simply."}]
  }'

Python SDK Integration

For Python developers, using the official OpenAI SDK is the recommended approach. You must configure the client to point to the Unfiltered Story base URL. This ensures your requests hit the correct uncensored model rather than the default OpenAI servers.

The code snippet below initializes the client with the custom base URL and makes a request. This pattern works for any OpenAI-compatible Python client. Remember that the model ID is strictly uncensored. The API does not support embeddings or image generation, so stick to text-based interactions for the best results.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.unfilteredstory.top/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write a short sci-fi story."}]
)
print(response.choices[0].message.content)

Node SDK Integration

Node.js developers can integrate the API using the openai npm package. Similar to Python, you need to override the base URL to direct traffic to the Unfiltered Story infrastructure. This allows you to leverage the existing ecosystem of Node libraries that rely on the OpenAI API structure.

The following example shows how to set up the client and send a message. Ensure you handle the response correctly to extract the generated content. The uncensored ai api key you generate is all you need to start building chatbots or content generators without worrying about complex multi-model routing.

const OpenAI = require('openai');

const openai = new OpenAI({
  baseURL: 'https://api.unfilteredstory.top/v1',
  apiKey: 'YOUR_API_KEY'
});

async function main() {
  const response = await openai.chat.completions.create({
    model: 'uncensored',
    messages: [{ role: 'user', content: 'Describe a cyberpunk city.' }]
  });
  console.log(response.choices[0].message.content);
}

main();

Streaming Responses

For real-time applications, the API supports Server-Sent Events (SSE). Streaming allows you to receive tokens as they are generated, reducing perceived latency for end-users. The stream object includes usage statistics in the final chunk, which you can use for billing tracking if needed.

The example below demonstrates how to handle a streaming response in Python. This is particularly useful for chatbot interfaces where immediate feedback is expected. The uncensored llm api handles streaming just like the standard OpenAI API, ensuring a familiar developer experience.

import openai

client = openai.OpenAI(
    base_url="https://api.unfilteredstory.top/v1",
    api_key="YOUR_API_KEY"
)

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write a poem."}],
    stream=True
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

Limits, Errors & Context

Understand the constraints to build robust applications. The context window is 100,000 tokens total (prompt + completion). There is no separate output cap, and if max_tokens is not set, the response can run to the end of the window. You are limited to 300 requests per minute and 8 concurrent requests per key.

Common errors include 401 for invalid keys, 402 if prepaid credit is exhausted, and 429 for rate limits. Errors and refusals are free, so you only pay for successful token generation. The hard content limit blocks sexual content involving minors, but otherwise, the model is uncensored. Ensure your requests stay under 8 MB body size.

cURL

curl https://api.unfilteredstory.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.unfilteredstory.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.unfilteredstory.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);

Capabilities and limits

One table with every limit, feature and price that applies to your key.

ItemValue
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
Base URLhttps://api.unfilteredstory.top/v1
EndpointsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
AuthenticationBearer token in the Authorization header
JSON modeJSON object mode via response_format json_object
StreamingYes — server-sent events; the last chunk carries token usage
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Context window100,000 tokens, input and output combined
Requests per minute300 requests per minute per key
Max bodyup to 8 MB per request
Parallel requestsup to 8 in parallel per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Bonus credit+5% from $50, +10% from $100, +15% from $200
Free trial$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
How you payprepaid credit, charged by real token usage; errors and refusals are free
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Credit expirypaid credit never expires, no subscription
Sign-inGoogle or e-mail and password
Keysone key per account, regenerate any time (the old one stops working)
Content policyuncensored for adults; the only hard rule: no sexual content involving minors

Error reference

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

CodeTypeMeaning
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

How do I pay for the API?

Payments are by crypto (USDT on TRC20, USDC on Base). You can top up any whole amount from $20 to $500. Credit never expires and is charged based on real token usage. Errors and refusals are free.

What is the context window size?

The model supports a 100,000 token context window for both prompt and completion combined. There is no separate output cap per request, and if you do not specify a limit, the response can run to the end of the window.

Is my data used for training?

No. Prompts sent to the uncensored ai api are not used for training. Your account only requires an email, ensuring privacy while you build with the unfiltered story API.

Your key is one form away

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

Get API key