繁中 ▾

Uncensored OpenAI-compatible API 開發者指南

取得 API 金鑰

https://api.unlimitedtokenai.com/v1

無限 Token AIAPI 文件 & 快速入門

API 文件 & 快速入門

幾分鐘內即可使用標準的 OpenAI SDK 整合我們的無審查 LLM API。輸入文字,取得原始輸出,對於合法的成人用途零內容拒絕。

驗證

在 Authorization 標頭。在金鑰頁面透過 Google 或電子郵件立即獲得一個。無需電話號碼。

  • 標頭: Authorization: Bearer YOUR_API_KEY
  • 標頭: Content-Type: application/json

金鑰為單一帳戶一次性使用。請立即替換舊金鑰。

聊天完成端點

發送訊息至 POST /v1/chat/completions. 模型 ID 為 uncensored. 上下文視窗為 100,000 個 Token。

基礎 URL: https://api.unlimitedtokenai.com/v1. 錯誤和拒絕免費。

curl https://api.unlimitedtokenai.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Check my python syntax for errors"}]
  }'

參數:溫度、Top P 與更多

使用 temperature 和 top_p. 使用 stop 序列和 seed 用於可重現性。設定 max_tokens 以限制輸出;預設值為 2,048。

支援 presence_penalty 和 frequency_penalty. 無微調或嵌入。

from openai import OpenAI

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

串流回應

啟用串流並使用 stream: true. 接收伺服器發送的事件 (SSE)。token 使用量出現在最後一個區塊。

謹慎處理部分 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)

函式呼叫

在 tools. 設定 tool_choice 以 auto 或特定名稱。回應格式包含工具呼叫。

使用 JSON 模式與 response_format: {"type": "json_object"} 用於結構化資料。

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.unlimitedtokenai.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);

限制、錯誤與上下文

速率限制:每分鐘 300 次請求。併發:8 個請求。主體大小:8 MB。錯誤 401 表示金鑰無效,402 表示無餘額,429 表示超出速率限制。

上下文窗口總計為 100,000 token。無 SLA 或認證。僅限加密貨幣充值。

常見問題

無限 token AI 真的無審查嗎?

是的。該模型不會拒絕合法的成人、虛構或爭議性話題。唯一的硬性限制是不包含涉及未成年人的性內容。

我如何為 API 付費?

僅加密貨幣。USDT (TRC20) 或 USDC (Base)。每次入金最低 $20,最高 $500。自 $50 起適用額外信用額度。

上下文視窗的大小是多少?

提示詞與補全合計 100,000 tokens。每次請求最大輸出為 16,000 tokens,若未指定則為 2,048。

保護您的 API 金鑰

註冊、取得金鑰,更新基礎 URL。設定完成。

取得 API 金鑰