ClaudetokenspriceDeveloper docs
Quickstart: uncensored openai compatible API
Integrate an uncensored, OpenAI-compatible chat API in minutes using standard SDKs. You get full control over your prompts with prepaid crypto and zero monthly overhead.
Install the official SDK
Start by installing the library for your preferred language. We support the standard OpenAI clients, so you can use the tools you already know. This ensures your code works with our endpoint immediately.
Set your base URL and API key
Point your client to our base URL and pass your key. We do not change the standard headers, only the endpoint. This keeps your integration simple and compatible with existing tools.
Send your first prompt to 'uncensored'
Make a request to the chat completions endpoint. You must specify the model as 'uncensored' to bypass standard guardrails. This model answers freely for lawful adult use.
Handle streaming responses
Enable streaming to receive tokens as they are generated. This provides a smoother user experience for long outputs. You can also check usage data in the final chunk.
Use JSON mode and function calling
Structure your responses or call external tools with ease. Set the response format to JSON or define tools in your request. This gives you programmatic control over the output.
Understand rate limits and quotas
Monitor your usage to avoid interruptions. We enforce strict limits to ensure stability for all users. Errors and refusals do not consume your prepaid credit.
cURL
curl https://api.claudetokensprice.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Calculate total cost for 5 million tokens at current price"}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.claudetokensprice.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.claudetokensprice.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)Common questions
What is the context window for this uncensored API?
The context window is 100,000 tokens, including both the prompt and the completion. This allows for long conversations and large document processing. You can generate up to 16,000 tokens in a single response.
How do I handle rate limits with the uncensored LLM?
You are limited to 300 requests per minute and 8 concurrent requests per key. If you exceed this, you will receive a 429 error. Adjust your request frequency to stay within these bounds.
Why is the claude tokens price different from official sources?
We offer a direct, uncensored model at $0.15 per 1M input tokens and $0.50 per 1M output tokens. This pricing is for our specific open-weight model, not the official Claude API. You pay only for what you use.
Get your API key
Sign up, grab the key, swap the endpoint. Setup is that simple.