First request in five minutes
This quickstart guide shows how to integrate the uncensored LLM hosted API into your applications using standard OpenAI-compatible SDKs. You get a pure text API with transparent prepaid billing and no monthly fees.
Authentication Setup
Start by signing up via Google or email to receive your API key instantly. The key authenticates all requests to the base URL https://api.nofiltergpt.top/v1. This is an uncensored AI models API designed for direct integration, so you only need the key string. Store it securely and pass it in the Authorization header as a Bearer token. No subscription lock-in applies; you pay only for what you use.
Basic Chat Completion
Send a standard chat completion request to generate text. The API accepts the model ID uncensored and returns text responses. This works with any OpenAI-compatible client by updating the base URL. Use this for straightforward text generation tasks where content restrictions are minimal for lawful adult use.
curl https://api.nofiltergpt.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."}]
}'
Configure your SDK client with your API key and the base URL. Pass the model name and user messages in the body. The response contains the generated text and token usage statistics.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns chunks of text as they are generated, allowing for real-time display. This is useful for applications requiring immediate feedback. The final chunk includes the complete token usage data for billing purposes. Streaming works seamlessly with standard SDKs.
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)
Handle the stream events in your code to update the user interface progressively. This approach reduces perceived latency for long responses.
Function Calling
Support structured outputs by defining tools in your request. The API supports function calling with tools and tool_choice parameters. Define your function schemas in the request body. The model returns structured JSON data that you can execute. This is ideal for integrating the uncensored API with external systems or databases.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.nofiltergpt.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);
Define the function structure and pass it to the client. Parse the tool calls from the response to trigger your backend logic.
JSON Mode
Force the model to output valid JSON by setting response_format to {"type": "json_object"}. This ensures predictable parsing for your application. Use this mode when you need structured data rather than free-form text. It improves reliability for programmatic integrations. The uncensored AI API handles this format consistently.
from openai import OpenAI
client = OpenAI(base_url="https://api.nofiltergpt.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)
Set the parameter in your SDK client. The response will be a valid JSON object that you can deserialize directly.
Parameters & Limits
The model supports a 100,000 token context window, with no separate output cap. You can adjust temperature, top_p, and stop sequences. Rate limits are 300 requests per minute per key and 8 concurrent requests. Errors like invalid keys or insufficient credit are free. The API does not charge for refusals or errors. Manage your prepaid credit carefully as it never expires.
Technical reference
Use this table to decide whether the API fits your project before you buy credit.
| Spec | Value |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Model ID | uncensored |
| Base URL | https://api.nofiltergpt.top/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Authentication | Bearer token in the Authorization header |
| Structured output | response_format: {"type": "json_object"} |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max context | 100,000 tokens (prompt + completion together) |
| Max body | up to 8 MB per request |
| Requests per minute | 300/min per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | 8 requests at the same time per key |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Credit expiry | paid credit never expires, no subscription |
| Price | $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 |
| Trial credit | $0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Key management | one active key per account; a new key replaces the old one |
| Sign-in | Google or e-mail and password |
| Content | adult content allowed; sexual content involving minors is refused |
Errors and what to do
The type field is stable, the message is for humans. Errors cost nothing.
| HTTP | Type | What to do |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | balance is empty — top up, requests resume at once |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
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
How does billing work?
Billing is prepaid and based on real token usage. You top up by crypto (USDT on TRC20, USDC on Base). Errors and refusals do not consume credit, and unused credit never expires.
What is the context window?
The total context window is 100,000 tokens for input and output combined. There is no separate output cap. If you do not set max_tokens, the response can run to the end of the window.
Do I need a credit card?
No, a card is not required to get started. You can sign up with Google or email for a trial, and the trial credit does not require a card. When you want to add funds, you can top up by crypto (USDT on TRC20, USDC on Base).
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.