快速开始
快速开始
使用兼容 OpenAI 的客户端和你的 API 密钥,从已开放模型目录选择模型 ID。
https://uncensoredai.click/v1TypeScript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://uncensoredai.click/v1",
apiKey: process.env.UNCENSOREDAI_API_KEY,
});
const response = await client.chat.completions.create({
model: "Qwen_3.8_27B_Uncensored",
messages: [{ role: "user", content: "Hello!" }],
});Python · 快速开始
Python
from openai import OpenAI
import os
client = OpenAI(
base_url="https://uncensoredai.click/v1",
api_key=os.environ["UNCENSOREDAI_API_KEY"],
)
stream = client.chat.completions.create(
model="Qwen_3.8_27B_Uncensored",
messages=[{"role": "user", "content": "Hello!"}],
max_tokens=512,
stream=True,
)
for chunk in stream:
if chunk.choices:
print(chunk.choices[0].delta.content or "", end="")curl · 快速开始
curl
curl https://uncensoredai.click/v1/chat/completions \
-H "Authorization: Bearer $UNCENSOREDAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Qwen_3.8_27B_Uncensored",
"messages": [{"role": "user", "content": "Hello!"}],
"max_tokens": 512
}'鉴权
在 Authorization: Bearer 请求头中传入 API 密钥。请将密钥保存在服务器端,不要放入公开源码。
计费
输入和输出 token 分别按 USD 计费,适用分组价格及个人倍率。最终费用显示在用量中。未定价模型不会开放售卖。
流式输出
设置 stream 为 true 使用 SSE,通过 stream_options.include_usage 获取用量,停止或断开连接可取消请求。
错误码
401:密钥无效。403:权限或余额受限。429:请求频率或并发超限。502/503:上游不可用。
付款
首期仅支持 BNB Smart Chain 上的 USDT,请勿发送其他币种或使用其他网络。配置好收款钱包前不开放充值。
数据与隐私
我们保留运营所需的账户、账务和请求元数据。调试台历史保存在浏览器中。API 请求会发送到选定模型提供方,不提供云端聊天存档。