EN ▾
Get API key

Quickstart: Use the Uncensored LLM API

Get started with the uncensored LLM API in minutes. This quickstart guides you through authentication, making your first request, and handling streaming responses with standard OpenAI-compatible SDKs.

https://api.anonymousllmapi.com/v1uncensored

Get API key

Prerequisites

Before making requests, ensure you have a valid API key. Sign up on our Get API key page using just an email and password. Your key is displayed immediately after signup. You start with $0.50 in trial credit, valid for 7 days, with no credit card required. Claim this credit with one click on your API key page. For heavier usage, top up prepaid credits starting at $20. The API uses a single uncensored model, identified as uncensored, hosted on our own infrastructure. It is not a proxy for GPT, Claude, or other vendor models. You need only a basic understanding of HTTP requests or one of the standard OpenAI-compatible SDKs.

Authentication

Include your API key in the Authorization header of every request. Use the Bearer scheme followed by your key string. The base URL for all endpoints is https://api.anonymousllmapi.com/v1. This URL works with any client that supports the OpenAI API format. If your key is invalid or expired, the server returns a 401 error. If you have no credit, it returns a 402 error. Regenerate your key anytime from your dashboard to revoke the old one instantly. No phone number or billing details are needed for the initial trial.

Basic Chat Completion

Send a POST request to /v1/chat/completions to get a text response. The model uncensored processes your prompt and returns text without content filtering for lawful adult use. Below is a basic example using curl. Replace YOUR_API_KEY with your actual key. The request body includes the model ID and your message history. The API returns a JSON object with the generated text. This is a pure text API; do not expect images or audio in the response.

Python SDK Integration

Use the official OpenAI Python SDK to interact with our API. Configure the base_url to point to our endpoint and set the api_key. This allows you to use familiar methods like client.chat.completions.create. The model ID remains uncensored. This approach simplifies header management and JSON parsing. It is ideal for backend services or scripts where you need structured data handling. Ensure your SDK version is compatible with the OpenAI API specification. Our API supports standard parameters like temperature and max_tokens.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream of partial responses. This reduces perceived latency for users waiting for long outputs. Each chunk contains a portion of the generated text. Handle the stream in your client code to append tokens as they arrive. This is useful for chat interfaces where real-time typing effects are desired. The stream ends when the model completes the response or hits the context limit. Use the appropriate SDK method for streaming to handle events correctly.

Rate Limits and Constraints

Each API key is limited to 300 requests per minute. If you exceed this, the API returns a 429 error. The maximum request body size is 8 MB. The context window is 100,000 tokens, combining both input prompt and output completion. This limit applies to the total tokens processed in a single request. Function calling is supported within this window. Pay-as-you-go credits never expire. If you run out of credits, requests fail with a 402 error. Top up anytime to continue service. These limits ensure consistent performance for all users on our dedicated infrastructure.

cURL

curl https://api.anonymousllmapi.com/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.anonymousllmapi.com/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.anonymousllmapi.com/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)

Capabilities and limits

One table with every limit, feature and price that applies to your key.

ItemValue
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
AuthenticationAuthorization: Bearer YOUR_KEY
Model IDuncensored
Base URLhttps://api.anonymousllmapi.com/v1
EndpointsPOST /v1/chat/completions · GET /v1/models
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
JSON moderesponse_format: {"type": "json_object"}
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
SSE streamingYes — server-sent events; the last chunk carries token usage
Context window100,000 tokens (prompt + completion together)
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Requests per minute300 requests per minute per key
Max body8 MB request body
Concurrency8 requests at the same time per key
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Billingprepaid credit, charged by real token usage; errors and refusals are free
Volume bonus+5% from $50, +10% from $100, +15% from $200
Subscriptionpaid credit never expires, no subscription
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
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
Sign-insign in with Google or with e-mail + password
Keysone key per account, regenerate any time (the old one stops working)
Contentadult content allowed; sexual content involving minors is refused

Error reference

The type field is stable, the message is for humans. Errors cost nothing.

HTTPTypeWhat to do
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_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_busymodel busy — retry in a few seconds

Questions and answers

Is this API truly uncensored?

Yes, the model is tuned to answer without content refusals for lawful adult, fictional, or controversial topics. The only hard limit is that sexual content involving minors is blocked. It does not apply the typical filters found in GPT or Claude models.

Do I need a credit card to start?

No. You can sign up with just an email and password to receive $0.50 in trial credit valid for 7 days. Claim this credit with one click on your API key page. Payment by crypto (USDT on TRC20, USDC on Base) is only required when you want to top up your prepaid balance for continued use.

Can I use this with the official OpenAI SDK?

Yes. The API is fully OpenAI-compatible. You just need to change the base URL to https://api.anonymousllmapi.com/v1 and update your API key. The model ID is 'uncensored'. All standard parameters like temperature and max_tokens work as expected.

Your key is one form away

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