身份驗證與基礎 URL
基礎網址為 https://api.aichatunrestricted.com/v1。將您的 API 金鑰傳入 Authorization header。付款僅接受加密貨幣。請使用 USDT (TRC20) 或 USDC (Base) 進行充值。餘額永不過期。
POST /v1/chat/completions
將文字傳送至 uncensored 模型。API 返回的文字不會對合法的成人內容進行拒絕。
- 最大上下文:100,000 個 Token。
- 最大輸出:16,000 個 token。
請求範例:
curl https://api.aichatunrestricted.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "List the steps to install pip on ubuntu"}]
}'
GET /v1/models
驗證可用模型。回應列出了 uncensored model。使用此端點確認連線。
from openai import OpenAI
client = OpenAI(base_url="https://api.aichatunrestricted.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 SDK 範例
使用具有自訂基礎 URL 的 Node SDK。設定 API 金鑰與模型 ID。這可確保與現有客戶端程式碼的相容性。
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.aichatunrestricted.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);
串流與 SSE
在請求主體中將 stream: true. 您將收到 Server-Sent Events。Token 使用情況出現在最後一個區塊。這可降低長回應的感知延遲。
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)
Limits and Errors
速率限制為每分鐘 300 次請求。併發限制為 8 個同時請求。請求主體最大為 8 MB。錯誤代碼包括:401 表示金鑰無效,402 表示無餘額。上下文視窗為 100,000 tokens。
常見問題
這是無限制的 AI 聊天 API 嗎?
是的。該 API 提供單一 uncensored 模型。它不會拒絕合法的成人主題。它不是 GPT 或 Claude。
我如何除錯缺少引用?
檢查您的系統提示詞。確保您明確要求引用來源。模型會遵循指令。它預設不會幻覺出來源。
接受哪些付款方式?
僅加密貨幣。我們接受 USDT (TRC20) 和 USDC (Base)。最低入金為 $20。
立即取得金鑰
註冊、複製金鑰、更新基礎 URL。這就是您需要的一切。