API 文件:Quick Start
將您現有的 OpenAI 相容客戶端程式碼置入我們的端點,透過我們的無審查模型處理文字,且無內容審查。
基礎 URL 與驗證
使用我們的 Base URL 將請求路由到 uncensored 端點。在 Authorization 標頭。此設定與任何標準 OpenAI SDK 搭配使用。
基礎 URL: https://api.deepseeksincensura.com/v1
標頭: Authorization: Bearer YOUR_API_KEY
透過 Google 或電子郵件立即生成您的金鑰。
首次請求:文字生成
向以下網址發送 POST 請求 /v1/chat/completions 接收文字輸出。模型 ID 為 uncensored.
此端點處理文字輸入並返回文字。它不支援影像、音訊或嵌入。
錯誤與拒絕均免費。您只需為已消耗的 token 付費。
cURL
curl https://api.deepseeksincensura.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Summarize the provided log file content"}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.deepseeksincensura.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.deepseeksincensura.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 金鑰
註冊、複製您的金鑰、更新端點網址。就是這樣。