無審查本地 AI API 文件
連接至無審查本地 AI API 端點,立即開始生成不受限制的文本。我們提供純推理層,不保留任何數據,並提供透明的用量計價。
基礎 URL 與驗證
無審查 LLM API 位於 https://api.uncensoredlocalai.com/v1。將您的金鑰傳入 Authorization 標頭使用 Bearer 方案。在註冊頁面透過 Google 或電子郵件立即獲得您的金鑰;無需電話號碼。
curl https://api.uncensoredlocalai.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Generate a 500 word essay on the history of cryptography"}]
}'每個帳戶僅有一個有效的金鑰。如果您生成新的金鑰,舊金鑰將立即失效。沒有訂閱制,只有永不過期的預付信用額度。
POST /v1/chat/completions 端點
向標準聊天完成端點發送您的提示詞。模型 ID 僅為「uncensored」。這是一個針對合法成人內容零拒絕進行調優的開放權重模型,而非 GPT 或 Claude 的複製品。
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredlocalai.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)請求在伺服器端處理。您輸入文字,輸出文字。無嵌入向量、無圖片生成、無音訊。僅透過標準 OpenAI 協定進行原始 token 生成。
Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredlocalai.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)常見問題
您接受哪些付款方式?
僅限加密貨幣:TRC20 上的 USDT 或 Base 上的 USDC,任何整數金額從 $20 到 $500。從 $50 起享有額外餘額獎勵。
上下文視窗是如何運作的?
您的上下文視窗為 100,000 個 token,包含提示和補全。如果您未設定 max_tokens,模型預設輸出 2,048 個 token。
如果我的信用額度耗盡會怎樣?
請求會立即停止。402(無信用額度)等錯誤是免費的。您的預付信用額度永不過期,因此您可以稍後使用加密貨幣獎勵充值。