EN ▾

Your private, no-refusal LLM API

Get API key

Switch your client in three lines

Connect your existing OpenAI SDK client to our dedicated, no-refusal endpoint in three lines. Swap the base URL and API key, then run your prompts without corporate filters or data tracking.

Base URL & Authentication

Our API is fully OpenAI-compatible, meaning you likely already have the client code ready. The only changes required are the base_url and the api_key. We do not host GPT, Claude, or any other vendor's model; we run our own open-weight model tuned for uncensored responses. Authentication uses a single API key generated during signup. This key is bound to your account and replaces any previous key if you regenerate it. Keep your key secure, as it directly drains your prepaid credit. You can generate your key via the dashboard using Google or email login. No phone number or credit card is required for the initial trial credit.

First Request

Send a standard chat completion request to test connectivity and response quality. The model ID is always uncensored. Ensure your request body includes the model field set to this ID. The endpoint accepts JSON payloads similar to the OpenAI chat format. If you receive a 401, your key is invalid or expired. A 402 indicates insufficient prepaid credit. A 429 means you hit the rate limit. Use the following curl command to verify your setup immediately.

curl https://api.llamauncensored.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."}]
  }'

This request returns a text response. If you get a response object with choices, your client is correctly configured. Remember that errors do not consume credit, so failed requests are free to retry.

Python SDK

Use the official OpenAI Python library to integrate quickly. Initialize the client with our base URL and your API key. Set the model to uncensored in your calls. This approach ensures compatibility with existing codebases that assume an OpenAI backend. You can adjust parameters like temperature or top_p as needed. The client handles JSON serialization automatically. Streaming responses are supported natively. For most developers, this is the fastest path to production. Ensure your library is up to date for full compatibility with our streaming and function calling features.

from openai import OpenAI

client = OpenAI(base_url="https://api.llamauncensored.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)

Check the response object for token usage. The last chunk in a stream contains the final token counts. This allows you to monitor your credit consumption accurately without extra API calls.

Node SDK

The JavaScript/Node SDK works identically to the Python version. Configure the client with our base URL and key. Pass uncensored as the model name. This allows you to run the same client code in your Node environments. Function calling and JSON mode are supported. Use this for server-side generation or edge functions. The SDK handles retries and pagination automatically. Ensure you handle errors gracefully to avoid unnecessary credit usage from transient network issues. Our API does not support embeddings or image generation, so stick to text completions.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.llamauncensored.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);

Verify your integration by printing the assistant's content. If the response is blocked, check the error message. Our content limit is strictly for minors; other adult content is allowed.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text. The final chunk includes the usage statistics. This is critical for tracking token consumption. Streaming reduces perceived latency for users. It does not change the pricing model. You are charged per token regardless of streaming. Use this for chat interfaces or real-time displays. Ensure your client parses SSE correctly. Some older libraries may require updates to handle the stream format properly.

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)

Always check the final chunk for usage data. This is the only place where token counts are guaranteed to be accurate for the request. Do not sum partial chunks for billing purposes.

Limits, Errors & Context Window

Our API has strict limits to ensure stability. You are allowed 300 requests per minute per key. Concurrent requests are limited to 8 at the same time. The maximum request body size is 8 MB. The context window is 100,000 tokens total, including prompt and completion. There is no separate output cap, and if max_tokens is unset the response can run to the end of the window. Errors like 401 (invalid key) or 402 (no credit) are free. Rate limits (429) indicate you are exceeding the 300 RPM limit. Wait before retrying. JSON mode and function calling are fully supported within these limits. No SLA is guaranteed. Credit never expires, so plan your usage accordingly.

Technical reference

A quick checklist for developers: format, limits, features, billing.

FeatureSupport
CompatibilityOpenAI Chat Completions schema; official openai SDKs work unchanged
Modeluncensored
Base URLhttps://api.llamauncensored.top/v1
MethodsPOST /v1/chat/completions · GET /v1/models
AuthenticationBearer token in the Authorization header
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
Context window100,000 tokens, input and output combined
StreamingSupported (stream: true), usage included at the end
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
JSON moderesponse_format: {"type": "json_object"}
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Requests per minute300/min per key
Max body8 MB request body
Concurrencyup to 8 in parallel per key
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
Billingprepaid credit, charged by real token usage; errors and refusals are free
Credit expirypaid credit never expires, no subscription
Volume bonus+5% from $50, +10% from $100, +15% from $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
Key managementone active key per account; a new key replaces the old one
Sign-insign in with Google or with e-mail + password
Contentadult content allowed; sexual content involving minors is refused

Error codes

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

CodeTypeMeaning
400bad_requestmalformed request or too long for the context window
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_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

What happens if I hit the rate limit?

You will receive a 429 status code. The limit is 300 requests per minute and 8 concurrent requests per key. Errors do not count against your credit, but rate-limited requests are free to retry after a brief pause.

Does the API support image or audio generation?

No. This is a text-only API. We do not offer embeddings, image, audio, or video generation. We only provide the chat/completions endpoint for text output.

How is credit charged for streaming responses?

Credit is charged per token based on real usage. Streaming does not change the price. You are billed for input and output tokens. Check the final streaming chunk for accurate token counts to monitor your balance.

Your key is one form away

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

Get API key