EN ▾

Uncensored LLM API for developers

unfilteredstory.cc

Get API key

Unfiltered Story API Quickstart

Get started with the Unfiltered Story API in minutes. This guide covers authentication, request formats, streaming, and critical limits for our uncensored LLM API.

Base URL & Authentication

Connect to the unfiltered story API using the standard OpenAI-compatible base URL. Every request requires an API key passed in the Authorization header. Ensure your key is valid; invalid keys return a 401 error.

Base URL: https://api.unfilteredstory.cc/v1

Header: Authorization: Bearer YOUR_API_KEY

The API supports a single model ID: uncensored. This is an open-weight model tuned for raw output, distinct from GPT, Claude, or Gemini. It does not route between vendors.

First Request

Send a standard chat completion request to generate text. The endpoint accepts JSON payloads with model, messages, and optional parameters.

Below is a basic cURL example to test connectivity.

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

This request returns a text response. No embeddings or image generation are available on this endpoint. Keep payloads under 8 MB.

Python SDK Integration

Use the official OpenAI Python library to interact with the API. Point the client to our base URL and provide your key. This ensures compatibility with standard OpenAI-style codebases.

Example snippet:

from openai import OpenAI

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

Set max_tokens explicitly to control output length. Without it, the response can run to the end of the window. The uncensored AI API handles context window limits automatically within the 100k total.

Node.js SDK Setup

For JavaScript environments, use the openai npm package. Configure the base URL to direct requests to our servers.

Code example:

import OpenAI from "openai";

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

Handle errors appropriately. A 402 status indicates insufficient prepaid credit. Top up by crypto (USDT on TRC20, USDC on Base) to continue.

Streaming Responses

Enable streaming by setting stream: true. The API returns Server-Sent Events (SSE). Token usage statistics appear only in the final chunk.

Streaming example:

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)

Parse the delta.content field to display text in real-time. This is ideal for chat interfaces requiring low latency.

Rate Limits & Context

Respect the hard limits to avoid 429 errors. Each key allows 300 requests per minute and 8 concurrent requests. The context window is 100,000 tokens total (prompt + completion). There is no separate output cap.

Errors like 401 (bad key) or 402 (no credit) are free. Credit never expires. No subscription fees apply.

Specs at a glance

A quick checklist for developers: format, limits, features, billing.

FeatureSupport
CompatibilityOpenAI Chat Completions schema; official openai SDKs work unchanged
AuthenticationAuthorization: Bearer YOUR_KEY
Model IDuncensored
Base URLhttps://api.unfilteredstory.cc/v1
EndpointsPOST /v1/chat/completions · GET /v1/models
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
StreamingYes — server-sent events; the last chunk carries token usage
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
JSON moderesponse_format: {"type": "json_object"}
Context window100,000 tokens, input and output combined
Requests per minute300 requests per minute per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrencyup to 8 in parallel per key
Request sizeup to 8 MB per request
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Credit expirypaid credit never expires, no subscription
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
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Key managementone active key per account; a new key replaces the old one
Content policyuncensored for adults; the only hard rule: no sexual content involving minors
Sign-insign in with Google or with e-mail + password

HTTP errors

Every error is JSON with a type you can switch on. You are never charged for an error.

StatusTypeReason
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
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_blockedrefused by the content policy
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

What is the context window size?

The total context window is 100,000 tokens, combining the prompt and completion. There is no separate output cap, and you can set a lower limit via max_tokens.

How do I top up credit?

Top up by crypto (USDT on TRC20, USDC on Base). Minimum top-up is $20, maximum $500. Credits do not expire, and errors/refusals do not consume credit.

Is the model GPT-4?

No. The model ID is uncensored. It is an open-weight model hosted on our own servers, tuned to answer without content refusals for lawful adult use. It is not GPT, Claude, or any other vendor's model.

Your key is one form away

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

Start with trial credit

Email and password, key on screen right away.