API 文件:Quick Start
使用標準 OpenAI SDK 開始使用我們的無審查 LLM 生成文本。本快速入門指南將引導您完成驗證、基本請求和串流功能,使用 deepseek 無審查 API。
基礎 URL 與驗證
向我們的特定基礎 URL 發送請求。在 Authorization header。無效的金鑰會立即返回 401 錯誤。
聊天完成端點
使用標準的聊天完成端點進行文字生成。將您的模型 ID 作為 uncensored.系統接受用於內容控制的標準參數。
這是一個入門的基本請求:
curl https://api.deepseekapiprice.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Check the current rate for deepseek r1 per token."}]
}'
可用參數與設定
使用標準參數控制輸出風格。設定 temperature 用於隨機性,以及 top_p 用於核採樣。您也可以定義 stop 序列或強制使用 JSON 模式。這些設定允許對無審查的 LLM 行為進行精確控制。
範例 Python 整合:
from openai import OpenAI
client = OpenAI(base_url="https://api.deepseekapiprice.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.deepseekapiprice.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)常見問題
這是官方的 DeepSeek API 嗎?
否。我們在自己的伺服器上運行自己的無審查模型。我們是與 OpenAI SDK 相容的獨立服務,並非官方的 DeepSeek 供應商。
上下文視窗的大小是多少?
該模型支援 100,000 token 的上下文視窗。這包括輸入與輸出 token 的總和。
您接受哪些付款方式?
僅限加密貨幣:TRC20 上的 USDT 或 Base 上的 USDC,任何整數金額從 $20 到 $500。從 $50 起享有額外餘額獎勵。
一步完成金鑰生成
註冊、複製金鑰、指向您的用戶端。就是這樣。