필수 조건: SDK 및 키
이메일 또는 Google 로그인만으로 계정을 생성하세요. 이 키는 무장 해제된 AI 채팅봇 엔드포인트로의 모든 요청을 인증합니다. 언제든지 새 키를 생성할 수 있으며, 이는 이전 키를 대체합니다. 선불 크레딧에 대한 전체 접근 권한을 제공하므로 키를 안전하게 보관하세요.
Base URL 구성
클라이언트를 HTTPS://api.unfilteredchatbotapi.com/v1로 연결하세요. 이 base URL은 모든 표준 OpenAI 호환 SDK와 함께 작동합니다. Authorization 헤더에 API 키도 설정해야 합니다. 시스템은 인증을 위해 Bearer 토큰 형식을 기대합니다. 이 단일 엔드포인트는 다른 벤더로 라우팅하지 않고 uncensored 모델을 제공합니다. 코드에서 모델 이름을 변경할 필요가 없습니다. 고정되어 있습니다.
첫 번째 요청 보내기
메시지를 사용하여 /v1/chat/completions으로 POST 요청을 보내세요. 모델 ID는 항상 "uncensored"입니다. role과 content 필드가 있는 messages 배열에 콘텐츠를 보내세요. API는 합법적인 성인 주제에 대한 표준 안전 거부 없이 텍스트 응답을 반환합니다. 연결 및 응답 품질을 확인하려면 이 간단한 구조를 사용하세요. 페이로드가 8 MB 미만인지 확인하세요. 처리 중 오류가 발생해도 크레딧이 소모되지 않습니다.
cURL
curl https://api.unfilteredchatbotapi.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "What is the capital of France?"}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.unfilteredchatbotapi.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.unfilteredchatbotapi.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)