中文 ▾
bestuncensoredmodel.com面向 Uncensored 生成的 OpenAI 兼容 API

无限制 AI API 文档

使用熟悉的 OpenAI 兼容 API 将我们要最好的无审查模型集成到您的应用中。发送标准的聊天补全请求,并接收无限制的文本回答,对合法的成人内容零拒绝。

认证和基础 URL

在仪表板生成您的 API 密钥。基础 URL 为 https://api.bestuncensoredmodel.com/v1。将您的密钥放在 Authorization 每次请求时的请求头。此设置适用于任何标准的 OpenAI 兼容客户端库。 通过 Google 或电子邮件即时获取您的密钥。

聊天完成端点

发送至 /v1/chat/completions 端点。模型 ID 是 uncensored它接受具有 role 和 content 字段的 standard 消息结构。请求直接处理,不经过其他供应商路由。使用此进行不需要过滤的文本生成任务。

curl https://api.bestuncensoredmodel.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "explain memory allocation in C"}]
  }'

流式响应与 Token

通过将 stream: true. 您接收用于实时 token 交付的服务器发送事件 (SSE)。Token 使用详情出现在流中的最后一个数据块中。这种方法降低了长输出的感知延迟。 流式传输通过官方 SDK 得到完全支持。

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)

Python

from openai import OpenAI

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

检索 your API 密钥

注册,复制密钥,更新您的基础 URL。仅此而已。