繁中 ▾

OpenAI-Compatible API 文件

立即使用我們的預付、僅限加密貨幣的 NSFW API 開始生成無審查文本。本快速入門指南涵蓋身份驗證、SDK 集成及串流功能,適用於您的 NSFW 應用程式。

身份驗證與基礎 URL

透過使用正確的基礎 URL 與有效的 API 金鑰更新客戶端設定來連線至 API。每個請求都需要使用您獨一無二金鑰的標準 Authorization 標頭。

使用 Google 或電子郵件註冊即可立即獲得您的金鑰。該金鑰授予存取 uncensored 模型以生成合法成人內容的權限。

curl https://api.nsfwminimax.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Set my user role to moderator in the config file"}]
  }'

Chat Completions 端點

將文字提示发送至 chat/completions 用於接收產生的回應。此端點接受標準的 OpenAI 相容負載。

將模型 ID 指定為 uncensored 確保模型不會因成人主題而拒絕回答。API 高效處理文字輸入並回傳文字輸出。

from openai import OpenAI

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

常見問題

這是官方的 Minimax NSFW API 嗎?

不,我們是獨立供應商。我們託管自己的無審查模型,該模型與 OpenAI API 格式相容。雖然有些使用者在搜尋 Minimax NSFW 模型,但我們的服務使用不同的底層架構,針對直接生成 NSFW 內容進行最佳化,而非透過代理方式。

您接受哪些付款方式?

僅限加密貨幣:TRC20 上的 USDT 或 Base 上的 USDC,任何整數金額從 $20 到 $500。從 $50 起享有額外餘額獎勵。

如果我超出速率限制會發生什麼事?

您將收到 429 錯誤。限制為每分鐘每金鑰 300 次請求。升級您的預付餘額以確保在大量生成任務期間持續服務且不中斷。

即時檢索您的金鑰

註冊、複製您的憑證、更新基礎網址。只需做到這些。

立即開始