EN ▾
Get API key

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.

FeatureSupport
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Modeluncensored
EndpointsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.whisperapi.top/v1
API keyBearer token in the Authorization header
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
StreamingYes — server-sent events; the last chunk carries token usage
JSON moderesponse_format: {"type": "json_object"}
Max context100,000 tokens, input and output combined
Concurrency8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max body8 MB request body
Rate limit300 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
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Credit expirypaid 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 payprepaid credit, charged by real token usage; errors and refusals are free
Content policyadult content allowed; sexual content involving minors is refused
Key managementone key per account, regenerate any time (the old one stops working)
Accountsign 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.

StatusTypeReason
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_blockedrefused by the content policy
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary 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