API documentation for the uncensored model
Get started with the uncensored AI API in minutes. This guide covers authentication, SDK integration, and streaming for your OpenAI-compatible client.
Base URL and authentication
Send requests to https://api.kimiapiprice.com/v1 with your API key in the Authorization header. Your key grants access to the uncensored model via standard OpenAI-compatible endpoints. Create your key on the dashboard page using Google or email. The key appears immediately and works with any OpenAI SDK by updating the base URL.
- Header:
Authorization: Bearer YOUR_API_KEY - Base URL:
https://api.kimiapiprice.com/v1
First request (cURL)
Execute a basic completion to verify your setup and credit balance. This simple call demonstrates the standard request structure for text generation.
Replace YOUR_API_KEY with your actual key. The response returns the generated text and token usage details. You can test the endpoint before integrating it into your main application logic.
curl https://api.kimiapiprice.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "what is the current token price per million tokens"}]
}'
Python SDK integration
Install the official OpenAI package and point it to our base URL. This allows you to use familiar Python methods for chat completions. The code snippet below shows how to initialize the client and send a simple message. You can adjust parameters like temperature to control creativity.
from openai import OpenAI
client = OpenAI(base_url="https://api.kimiapiprice.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 SDK integration
Initialize the client with the custom base URL and your API key. This approach works seamlessly with existing Node.js applications that already use OpenAI clients. You can pass the model ID uncensored to ensure you get the correct model. Handle errors gracefully to manage rate limits or credit exhaustion.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.kimiapiprice.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 via SSE
Enable streaming by setting stream: true in your request. The server sends chunks of text as they are generated. This reduces perceived latency for long responses. Parse the Server-Sent Events (SSE) stream in your client to display text in real time. This is ideal for chat interfaces and live demos.
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)
Rate limits, errors, and context
Your key allows 300 requests per minute and 8 concurrent requests. The context window supports 100,000 tokens total. Handle errors like 401 for invalid keys and 402 for insufficient credit. Errors and refusals do not consume your prepaid credits. The maximum output per request is 16,000 tokens unless specified otherwise.
Frequently asked questions
What is the kimi API price for this uncensored model?
The kimi API price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. You pay only for what you use with prepaid crypto credit. Errors and refusals are free.
How do I get my kimi API key?
Sign up on the dashboard using Google or email. Your key appears immediately on the screen.
Is this a real uncensored AI API?
Yes, the model answers without content refusals for lawful adult use. It is an open-weight model hosted on our servers. It is not GPT, Claude, or any other vendor's model.
Get your API key in one step
Register, retrieve your key, and update your base URL. That is the complete configuration.
Try with trial credit