ko ▾
bestuncensoredmodel.comUncensored 생성을 위한 OpenAI-compatible API

Uncensored ai API 문서

표준 OpenAI 호환 API를 사용하여 최고의 uncensored 모델을 애플리케이션에 통합하세요. 표준 채팅 완료 요청을 보내고 합법적인 성인 콘텐츠에 대한 거부 없이 제한 없는 텍스트 응답을 받으세요.

인증 및 Base URL

대시보드에서 API 키를 생성하세요. 베이스 URL은 https://api.bestuncensoredmodel.com/v1. 다음에 키를 전달하세요 Authorization 모든 요청에 대한 header. 이 설정은 모든 표준 OpenAI 호환 클라이언트 라이브러리와 함께 작동합니다. Google 또는 이메일로 즉시 키를 받으세요.

채팅 완료 엔드포인트

다음으로 메시지 전송 /v1/chat/completions 엔드포인트입니다. 모델 ID는 uncensored역할과 콘텐츠 필드가 있는 표준 메시지 구조를 허용합니다. 요청은 다른 벤더를 거치지 않고 직접 처리됩니다. 필터링이 필요 없는 텍스트 생성 작업에는 이를 사용하세요.

curl https://api.bestuncensoredmodel.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "explain memory allocation in C"}]
  }'

스트리밍 응답 및 토큰

stream을 true로 설정하여 스트리밍 활성화 stream: true실시간 토큰 전달을 위해 서버 전송 이벤트(SSE)를 받습니다. 토큰 사용량 세부 정보는 스트림의 마지막 청크에 나타납니다. 이 방법은 긴 출력의 지각된 지연 시간을 줄여줍니다. 스트리밍은 공식 SDK를 통해 완전히 지원됩니다.

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)

Python

from openai import OpenAI

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

검색 your API key

가입하고, 키를 복사한 후, 베이스 URL을 업데이트하세요. 이것으로 충분합니다.