Prompts and scripts over one endpoint
Get started with the uncensored LLM API in minutes using standard OpenAI-compatible endpoints. This quickstart covers authentication, basic requests, streaming, and handling limits.
Base URL and Authentication
Our API is fully compatible with the OpenAI chat-completions standard. You interact with it using a single base URL and a Bearer token. This means you can use the official SDKs or any HTTP client that supports standard OpenAI patterns.
Base URL: https://api.whisperapi.top/v1
Authentication is handled via the Authorization header. You must include your API key as a Bearer token. If your key is invalid or expired, you will receive a 401 error. There are no hidden headers required.
Every request to the chat endpoint requires this header. Make sure your client library is configured to pass the key correctly.
First Request
Send a simple text prompt to generate a response. This is the most basic way to test the uncensored model. The model is designed to answer without refusing standard adult or edgy content, provided it is lawful.
Replace YOUR_API_KEY with your actual key. The model identifier is uncensored.
This request will return a plain text response. If you need structured data, see JSON Mode below.
Python SDK
Using the official OpenAI Python library is the recommended way to integrate. You only need to change the base URL to point to our service. The rest of the SDK methods work exactly as documented.
This example demonstrates a simple text generation. The library handles the JSON serialization and HTTP requests automatically.
Install the library with pip install openai. Then configure the client to use our base URL.
Node SDK
The JavaScript SDK works similarly. Import the library and override the base URL. This is useful for server-side scripts or backend services that need to process text.
Install via npm install openai. Then initialize the client with our specific base URL.
Ensure your Node version supports the fetch API or that you have a polyfill if needed. The SDK handles streaming and JSON parsing efficiently.
Streaming Responses
For better user experience, use streaming. This returns tokens as they are generated, reducing perceived latency. Our API supports Server-Sent Events (SSE) via the stream parameter.
Streaming is ideal for long responses or interactive chat interfaces. You receive chunks of text until the generation is complete.
The final chunk contains the token usage details. This allows you to track costs in real-time. Errors during streaming are handled via standard HTTP status codes.
Limits and Errors
Understand the constraints to build robust pipelines. You have a rate limit of 300 requests per minute per key. Concurrency is limited to 8 simultaneous requests per key.
Common errors include 401 (invalid key), 402 (insufficient credit), and 429 (rate limit exceeded). Prepaid credit never expires, so you can top up when needed.
The context window is 100,000 tokens total, shared by input and output. If you exceed it, you will get an error. Request body size is limited to 8 MB.
cURL
curl https://api.whisperapi.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.whisperapi.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.whisperapi.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)Under the hood: specs
Everything the endpoint can and cannot do, in one place — check it before you top up.
| Feature | Support |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Model | uncensored |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.whisperapi.top/v1 |
| API key | Bearer token in the Authorization header |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| JSON mode | response_format: {"type": "json_object"} |
| Max context | 100,000 tokens, input and output combined |
| Concurrency | 8 requests at the same time per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Max body | 8 MB request body |
| Rate limit | 300 requests per minute per key |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Credit expiry | paid credit never expires, no subscription |
| Free trial | $0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Key management | one key per account, regenerate any time (the old one stops working) |
| Account | sign in with Google or with e-mail + password |
Errors and what to do
The type field is stable, the message is for humans. Errors cost nothing.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
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 | refused by the content policy |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
Do I need a credit card to start?
No. You can sign up with Google or email/password. New users get $0.50 of trial credit, one per person, valid for 7 days. Claim this credit with one click on your API key page. Top-ups are by crypto (USDT on TRC20, USDC on Base); no card is needed to sign up or for the trial.
How do I pay for more credits?
You can top up by crypto (USDT on TRC20, USDC on Base) using whole amounts between $20 and $500. Credits never expire. You get a 5% bonus on $50+ and 10% on $100+ top-ups.
What is the context window size?
The total context window is 100,000 tokens for both prompt and completion. There is no separate output cap, and if you do not set the max_tokens parameter the response can run to the end of the window.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Get API key