아니요 필터 GPT API 문서
몇 분 안에 비차단 API에 코드를 연결하세요. 기본 URL을 삽입하고 키를 설정하면 기업식 거부 없이 원본 텍스트 응답을 받을 수 있습니다.
Base URL 및 인증
모든 요청의 base URL은 https://api.gptfilterno.com/v1. 유효한 API 키가 필요합니다. Authorization header. 사용 Bearer sk-... 형식입니다. 키는 계정당 한 번만 사용 가능하며, 새 키가 이전 키를 대체합니다.
첫 번째 요청
POSTリクエストを送信 /v1/chat/completions 모델 uncensored. 모델은 합법적인 콘텐츠에 대해 안전 거부 없이 직접 답변합니다.
입력 텍스트가 들어가면 텍스트가 나옵니다. 앱을 구축하기 전에 연결성을 테스트하는 데 사용하세요.
스트리밍 시 마지막 청크에 토큰 사용량이 포함됩니다.
Python SDK 통합
공식 openai Python 라이브러리. 베이스 URL을 엔드포인트로 변경하세요. API 키를 환경 또는 클라이언트 구성에 설정하세요.
호출 chat.completions.create() 모델 uncensored. 필요에 따라 temperature, top_p 및 기타 매개변수를 전달하세요.
이 방식은 uncensored 텍스트 생성이 필요한 모든 Python 앱에서 작동합니다.
Node SDK 통합
다음 설치 openai Node 패키지를 설치하세요. 클라이언트를 기본 URL과 API 키로 구성하세요.
호출 chat.completions.create() 모델 uncensored. 응답은 표준 OpenAI 호환 객체입니다.
제한 없는 LLM 출력이 필요한 Node.js 서버나 스크립트에 이 기능을 사용하세요.
스트리밍 응답
stream을 true로 설정하여 스트리밍 활성화 stream: trueAPI는 Server-Sent Events(SSE)를 반환합니다.
각 청크에는 부분 텍스트와 토큰 사용 데이터가 포함됩니다. 실시간 출력을 위해 청크가 도착하는 대로 처리합니다.
긴 응답의 경우 지각된 지연 시간을 줄입니다.
제한 사항 및 오류
컨텍스트 창은 총 100,000 토큰입니다. 요청당 최대 출력은 16,000 토큰입니다.
속도 제한은 분당 300회 요청입니다. 동시 요청 최대치는 8개입니다.
오류에는 잘못된 키에 대한 401, 부족해진 크레딧에 대한 402, 속도 제한 초과에 대한 429가 포함됩니다. 오류는 무료입니다.
cURL
curl https://api.gptfilterno.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "list the core features of the current release"}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.gptfilterno.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.gptfilterno.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)받기 your API key in seconds
가입하고, 키를 복사한 후 엔드포인트를 업데이트하세요. 완료되었습니다.