繁中 ▾
無過濾聊天機器人無審查 LLM API 適用於合法成人用途建立金鑰

https://api.unfilteredchatbotapi.com/v12026

unfilteredchatbotapi.com

Uncensored AI Chatbot:整合指南

透過在現有系統中加入單一基礎 URL 和 API 金鑰,即可開始使用無過濾的聊天機器人 API。您將獲得一個即插即用的無審查模型,它不會進行道德說教,適合角色扮演或無限制生成。

前置條件:SDK 與金鑰

僅使用電子郵件或 Google 登入建立帳戶。此金鑰用於驗證對無審查 AI 聊天機器人端點的每個請求。您可以隨時產生新的金鑰,這會取代舊金鑰。請妥善保管,因為它提供您預付額度的完整存取權。

基礎 URL 設定

設定您的客戶端指向 HTTPS://api.unfilteredchatbotapi.com/v1。此基礎 URL 適用於任何標準的 OpenAI 相容 SDK。您還必須在 Authorization 標頭中設定您的 API 金鑰。系統預期使用 Bearer token 格式進行身份驗證。這個單一端點提供無審查模型,無需路由至其他供應商。您不需要在程式碼中更改模型名稱;它是固定的。

發送您的第一個請求

向 /v1/chat/completions 發送 POST 請求並附上您的訊息。模型 ID 始終為 "uncensored"。在 messages 陣列中以 role 和 content 欄位傳送您的內容。API 將返回文本回應,且不會對合法的成人主題進行標準的安全拒絕。使用此簡單結構來驗證連線與回應品質。請確保您的載入量(payload)不超過 8 MB。處理期間發生的錯誤不會消耗您的信用額度。

cURL

curl https://api.unfilteredchatbotapi.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'

Python

from openai import OpenAI

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

串流

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)

保護您的 API 金鑰

註冊、複製權杖、更新基礎網址。這就是所需的全部設定。

建立金鑰檢視文件