Claude tokens: Quickstart Guide
This guide helps developers integrate our uncensored LLM API using standard OpenAI-compatible SDKs. You get transparent per-token billing with prepaid credits that never expire.
- Base URL
https://api.tokensclaude.com/v1- Model
uncensored
Authentication and Base URL
Your API key authenticates every request. Use the base URL HTTPS://api.tokensclaude.com/v1 and set the model to "uncensored". This works with any OpenAI-compatible client by changing the base_url.
Sending Your First Request
Send a POST request to /v1/chat/completions to generate text. The API returns JSON with the model's response. Use the following example to test your key immediately.
curl https://api.tokensclaude.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "List the current token pricing tiers for this model"}]
}'
SDK Examples for Python and JavaScript
Use the official OpenAI SDKs for Python or Node.js. Set the base URL to our endpoint and the model to "uncensored". This ensures your existing code works without major changes. Use the Python example to start generating text in your scripts.
from openai import OpenAI
client = OpenAI(base_url="https://api.tokensclaude.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)Use the Node.js example for web applications or server-side rendering.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.tokensclaude.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 Responses
Enable streaming by setting stream=true. The API returns Server-Sent Events (SSE) for real-time token delivery. Token usage details appear in the final chunk. This reduces perceived latency for long outputs.
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)
Function Calling and JSON Mode
Use function calling for structured tool integration. Set response_format to json_object for strict JSON output. Support parameters like temperature, top_p, and stop sequences. These features allow precise control over model behavior.
Understanding Token Usage and Limits
Each key allows 300 requests per minute and 8 concurrent requests. The context window is 100,000 tokens total. Errors and refusals incur no charge. Credit never expires, so you can pause usage without losing funds. Check your balance via the dashboard.
Common questions
Why do I need to pay for Claude tokens upfront?
We use prepaid crypto billing to keep costs low and transparent. You only pay for actual token usage, and credits never expire. This avoids monthly subscription fees and unexpected charges.
How does the uncensored model handle adult content?
The model does not refuse lawful adult, fictional, or controversial topics. It only blocks sexual content involving minors. This ensures consistent behavior for creative and technical use cases.
What happens if I exceed the rate limit?
You receive a 429 error when hitting 300 requests per minute. Pause your requests or upgrade your key. Concurrent requests are limited to 8 per key. Errors do not consume your credit.
Generate your key
Register, retrieve your key, and update your base URL. Simple integration.