即插即用的無審查 OpenAI API 替代方案
OpenAI API 替代方案:獨立指南
OpenAI 聊天補全端點的直接、無審查替代品。變更基礎 URL 和金鑰,即可在不需模型路由複雜度的情況下獲得無限生成能力。
- POST /v1/chat/completions
- 100k 上下文視窗
- $0.15 輸入 / $0.50 輸出
一個請求即可試用
curl https://api.openaiapialternative.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.openaiapialternative.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)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.openaiapialternative.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);https://api.openaiapialternative.com/v1
- $0.15每 1M 輸入 token
- $0.50輸出 token / 1M
- 100,000token 上下文
- $0.50試用額度
- 300每分鐘請求數
- uncensoredhttps://api.openaiapialternative.com/v1
指南
關於接入、價格和整合的實用文章。
給開發者的 OpenAI 替代方案:金鑰與 SDK 設定
OpenAI 替代模型:單一無審查文字 API
OpenRouter 替代方案:單一無審查 API 的優勢