API 문서
표준 OpenAI 호환 엔드포인트를 사용하여 온라인 NSFW LLM API로 시작하세요. 제로 구성으로 몇 초 안에 첫 번째 프롬프트를 보내세요.
Base URL 및 인증
NSFW LLM 온라인 API는 단일 기본 URL에서 작동합니다: https://api.nsfwllmonline.com/v1인증은 다음을 통해 전달된 Bearer 토큰에 의존합니다: Authorization header. 계정당 하나의 활성 키를 받으며, 이 키는 선불 잔액을 유지하지 않고도 대시보드를 통해 즉시 재생성할 수 있습니다.
- Base URL:
https://api.nsfwllmonline.com/v1 - 헤더:
Authorization: Bearer YOUR_API_KEY
curl https://api.nsfwllmonline.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Return 200 ok json"}]
}'
채팅 완료 엔드포인트
사용 POST /v1/chat/completions 텍스트를 생성합니다. 모델 ID로 uncensored 콘텐츠 필터 없이 응답하도록 조정된 오픈 웨이트 모델에 접근하세요. API는 표준 메시지 구조를 허용하므로 맥락이 풍부한 대화나 단순한 단방향 쿼리를 구축할 수 있습니다.
from openai import OpenAI
client = OpenAI(base_url="https://api.nsfwllmonline.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)
지원되는 파라미터
temperature 및 top_p와 같은 표준 매개변수를 사용하여 생성 동작을 제어하세요. temperature, top_p, 그리고 stop. JSON 출력을 강제할 수 있습니다. response_format 또는 설정하세요. seed 재현성을 위해 이 모델은 입력과 출력을 합쳐 100,000개의 토큰을 처리할 수 있는 컨텍스트 창을 지원합니다.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.nsfwllmonline.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을 true로 설정하여 스트리밍 활성화 stream: trueAPI는 실시간 토큰 전달을 위해 Server-Sent Events(SSE)를 반환합니다. 토큰 사용량 메타데이터는 마지막 청크에만 나타나므로 응답 스트림을 차단하지 않고도 정확한 사용량 추적이 가능합니다.
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)
함수 호출 & JSON 모드
사용 tool_choice 및 tools 함수 호출 기능. 엄격한 구조화된 출력을 위해 설정 response_format 수신하여 {"type": "json_object"}. 이는 수동 정규식 정리 없이 자동화된 파이프라인을 위한 신뢰할 수 있는 파싱을 보장합니다.
속도 제한 및 할당량
각 키는 분당 300개의 요청과 8개의 동시 요청을 허용합니다. 본문 크기가 8 MB를 초과하는 요청은 거부됩니다. 일반적인 오류에는 401 잘못된 키, 402 미납 잔액 부족, 및 429 속도 제한을 위해. 검열 없는 모델은 미성년자를 포함한 성적인 콘텐츠는 거부하지만 기타 합법적인 성인 주제는 허용합니다.