NoFilter AI API Documentation | NoFilter AI (nofilterai.top)
NoFilter AI provides a straightforward, uncensored LLM API for developers who need reliable text generation without content moderation layers. This quickstart guide shows you how to authenticate, send your first request, and handle streaming responses using standard OpenAI-compatible clients.
Base URL and Authentication
Start by obtaining your API key from the dashboard. The base URL for all requests is https://api.nofilterai.top/v1. This endpoint is compatible with standard OpenAI SDKs; you only need to update the base_url configuration and supply your key in the Authorization header.
Authentication is straightforward: include Authorization: Bearer YOUR_API_KEY in every request. If the key is invalid or missing, the API returns a 401 error. Your account supports a single active key at a time; generating a new key immediately invalidates the previous one, ensuring clean access control without complex key rotation logic.
First Request
To verify your setup, send a simple chat completion request. The model identifier is uncensored. This open-weight model is tuned to answer without refusals for lawful adult content, making it suitable for NSFW-tolerant applications. Use the curl command below to test connectivity and token pricing transparency.
Python SDK Integration
For Python developers, the official openai library works directly with our endpoint. Configure the client to point to our base URL. This approach lets you leverage existing SDK features like automatic retries and structured parsing while maintaining compatibility with our uncensored model.
Node.js SDK Integration
Node.js developers can use the openai npm package similarly. Set the baseURL to our API endpoint. This ensures that your existing infrastructure for handling OpenAI-compatible services integrates smoothly with NoFilter AI. Remember that this is a text-only API; do not attempt to use image or audio generation endpoints as they do not exist on this service.
Streaming Responses
Enable real-time user experiences by enabling streaming. Set stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text, and the final chunk includes token usage statistics. This allows your application to display tokens as they are generated, improving perceived performance for long conversations.
Rate Limits, Errors, and Context
Monitor your usage against strict limits: 300 requests per minute per key, 8 concurrent requests, and an 8 MB request body. Errors are predictable: 401 for invalid keys, 402 if prepaid credit is exhausted, and 429 for rate limit exceedances. The context window supports 100,000 tokens total, with no separate output cap. Errors and refusals do not consume credits, ensuring you only pay for actual token usage.
cURL
curl https://api.nofilterai.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.nofilterai.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.nofilterai.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)API specifications
Use this table to decide whether the API fits your project before you buy credit.
| Item | Value |
|---|---|
| Protocol | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Authentication | Bearer token in the Authorization header |
| Base URL | https://api.nofilterai.top/v1 |
| Model ID | uncensored |
| SSE streaming | Supported (stream: true), usage included at the end |
| Structured output | JSON object mode via response_format json_object |
| Context window | 100,000 tokens (prompt + completion together) |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Completion length | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Request size | up to 8 MB per request |
| Requests per minute | 300 requests per minute per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | up to 8 in parallel per key |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Subscription | no monthly fee; paid credit does not expire |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| 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 |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Account | Google or e-mail and password |
| Key management | one active key per account; a new key replaces the old one |
Errors and what to do
Every error is JSON with a type you can switch on. You are never charged for an error.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
Does NoFilter AI use GPT or Claude models?
No. We serve a single, dedicated uncensored model hosted on our own servers. It is not GPT, Claude, Gemini, or any other vendor's model. It is an open-weight model tuned for minimal refusal.
How is billing handled?
Billing is prepaid via crypto (USDT on TRC20 or USDC on Base). Credits are charged by real token usage. Errors and refusals are free. There are no monthly subscriptions or hidden fees, and paid credit never expires.
What is the maximum output length?
If you do not set max_tokens, the response can run to the end of the window. The total context window (prompt + completion) is 100,000 tokens.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Get API key