Base URL 및 인증
모든 요청은 클라이언트를 다음에 연결하여 시작하세요 https://api.nofilteraichatbot.com/v1 인증 헤더에 API 키를 포함합니다.
대시보드에서 Google 또는 이메일 자격 증명을 사용하여 키를 생성한 후 다음으로 전달하세요. Bearer YOUR_API_KEY 각 호출을 인증하기 위해 사용합니다.
첫 번째 요청
연결성 및 모델 동작을 확인하기 위해 채팅 completion 엔드포인트에 첫 번째 프롬프트를 보내세요.
이 예제는 uncensored 모델입니다.
curl https://api.nofilteraichatbot.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Get the temperature in Tokyo"}]
}'
Python 통합
핵심 로직을 수정하지 않고 우리 API와 상호작용하려면 공식 OpenAI Python 라이브러리를 사용하세요.
기본 URL을 당사 uncensored 추론 엔진으로 요청을 라우팅하세요.
from openai import OpenAI
client = OpenAI(base_url="https://api.nofilteraichatbot.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 통합
JavaScript 환경에서 SDK를 초기화하여 텍스트 생성을 원활하게 처리하세요.
기본 URL을 재정의하여 트래픽을 특정 엔드포인트로 유도해야 합니다.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.nofilteraichatbot.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: true 실시간으로 부분 응답을 받으세요.
최종 청크에는 정확한 청구 추적을 위한 토큰 사용량 요약이 포함되어 있습니다.
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)
속도 제한 및 제약 조건
각 API 키는 분당 300회 요청과 최대 8개의 동시 요청을 지원합니다.
컨텍스트 윈도우는 100,000 토큰을 지원하며 요청 본문은 8 MB 미만이어야 합니다.