EN ▾

Quickstart: Integrate Our Uncensored Chat API

Integrate our uncensored chat API in minutes using standard OpenAI-compatible endpoints. This guide covers authentication, request formats, streaming, and handling rate limits for immediate deployment.

uncensoredhttps://api.llmtokenprices.com/v1

Authentication & Base URL

Start by generating an API key on the Get API key page. You only need an email and password; no credit card is required for the $0.50 trial credit. Claim this credit with one click on your API key page. The key is displayed immediately after signup. Use the base URL https://api.llmtokenprices.com/v1 with the official OpenAI SDKs or any compatible client. Configure your client to use this base URL and your unique key. This setup ensures compatibility with standard tools while accessing our uncensored model directly. No vendor lock-in or complex routing logic is needed.

Sending Your First Request

Send a standard chat-completions request to test connectivity. The model ID is uncensored. The API accepts text input and returns text output. Below is a basic cURL example using your API key. Replace YOUR_API_KEY with your actual key. The request body includes the model ID and user message. If successful, you receive a JSON response with the generated text. This confirms your integration is working correctly before scaling up usage.

Python SDK Integration

Use the official OpenAI Python package for straightforward integration. Set the base_url to our endpoint and provide your API key. The client instance handles request formatting automatically. Call chat.completions.create() with the model ID uncensored. This approach reduces boilerplate code and leverages established error handling. It is ideal for backend services or scripts requiring reliable text generation without content refusals for lawful adult topics.

Node SDK Usage

For JavaScript environments, use the OpenAI Node.js package. Configure the client with our base URL and API key. The package supports standard promise-based or async/await patterns. Pass the model ID uncensored in the completion call. This method is suitable for web servers or Node.js applications needing low-latency text responses. Ensure your environment supports the required Node.js version for the SDK. The integration mirrors the Python setup, ensuring consistency across languages.

Enabling Streaming Responses

Enable streaming by setting the stream parameter to true. The API returns data incrementally via Server-Sent Events (SSE). This reduces perceived latency for users, as tokens appear in real-time. Handle the stream in your client code to process each chunk. Streaming is supported for all standard chat requests. It is particularly useful for chatbot interfaces where immediate feedback improves user experience. The uncensored model responds to streaming requests without delay.

Handling Errors & Rate Limits

The API enforces a limit of 300 requests per minute per key. Exceeding this results in a 429 error. Authentication failures return 401, and insufficient prepaid credit returns 402. The context window is hard-limited to 100,000 tokens for prompt plus completion. Requests exceeding this limit are rejected. Top-ups start at $20 by crypto (USDT on TRC20, USDC on Base), with +5% bonus at $50, +10% at $100 and +15% at $200. Paid credit never expires. Regenerate your key anytime to revoke access without losing credit.

cURL

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

Questions and answers

What happens if I exceed the 100,000 token context window?

The API rejects requests that exceed the 100,000 token limit for prompt plus completion combined. It does not truncate automatically; you must manage input length to stay within this hard limit.

How do top-ups and bonuses work?

Top-ups start at $20 by crypto (USDT on TRC20, USDC on Base). You receive a +5% bonus credit on $50 top-ups, +10% on $100 top-ups and +15% on $200 top-ups. Prepaid credit never expires, so you can use it at any time without monthly fees.

Is the trial credit valid forever?

No. 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. No card is needed for the trial, but it expires after one week.

Your key is one form away

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

Get API key

What the API supports

Use this table to decide whether the API fits your project before you buy credit.

SpecValue
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Modeluncensored
Base URLhttps://api.llmtokenprices.com/v1
EndpointsPOST /v1/chat/completions · GET /v1/models
AuthenticationBearer token in the Authorization header
Context window100,000 tokens, input and output combined
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
SSE streamingSupported (stream: true), usage included at the end
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
JSON modeJSON object mode via response_format json_object
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max bodyup to 8 MB per request
Rate limit300/min per key
Concurrency8 requests at the same time per key
Credit expirypaid credit never expires, no subscription
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
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
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Contentadult content allowed; sexual content involving minors is refused
Sign-insign in with Google or with e-mail + password
Keysone active key per account; a new key replaces the old one

Error codes

Errors come back as JSON with a stable type; failed and refused requests are not billed.

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly