ko ▾
$0.151M 입력 토큰당
제한 없음
$0.50트라이얼 크레딧

제한 없음OpenAI-Compatible API 문서

OpenAI-Compatible API 문서

베이스 URL에 요청을 보내고 원시 텍스트를 받으며 구독 요금 없이 확장할 수 있는 제한 없는 LLM API를 시작하세요.

https://api.unrestrictedaichatgpt.com/v1uncensored

인증 및 Base URL

서비스 접근을 위해 제공된 기본 URL과 API 키를 사용하세요. 키는 모든 요청의 인증을 처리합니다.

  • Base URL: https://api.unrestrictedaichatgpt.com/v1
  • 헤더: Authorization: Bearer YOUR_API_KEY

대시보드에서 즉시 키를 받으세요.

curl https://api.unrestrictedaichatgpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Run python script to sum column in csv file"}]
  }'

채팅 완료 엔드포인트

다음으로 메시지 전송 /v1/chat/completions 엔드포인트입니다. 모델 ID는 uncensored.

요청은 텍스트 응답을 반환합니다. 다음을 통해 출력 길이를 제어할 수 있습니다. max_tokens.

from openai import OpenAI

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

스트리밍 응답 (SSE)

stream을 true로 설정하여 스트리밍 활성화 stream: true. 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)

파라미터: Temperature, Top P 및 JSON 모드

조정 temperature 및 top_p 창의성을 제어합니다. 사용 response_format: {"type": "json_object"} 구조화된 출력을 위해.

設定 max_tokens 응답 길이를 제한합니다.

함수 호출 & 도구

요청에 도구를 정의하세요. 모델은 구조화된 도구 호출을 반환합니다.

사용 tool_choice 특정 동작을 강제합니다.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.unrestrictedaichatgpt.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);

속도 제한 및 제약 조건

분당 300회 요청, 동시 요청 8회. 최대 본문 크기: 8MB. 컨텍스트 창: 100,000 토큰. 오류는 무료입니다. 환불은 제공되지 않습니다.

자주 묻는 질문

컨텍스트 윈도우 크기는 얼마인가요?

이 모델은 입력과 출력을 합쳐 100,000 토큰 컨텍스트 윈도우를 지원합니다. 요청당 출력은 최대 16,000개의 토큰까지 지정할 수 있습니다.

오류를 어떻게 처리하나요?

자주 발생하는 오류에는 401 (잘못된 키), 402 (크레딧 없음) 및 429 (속도 제한)가 포함됩니다. 오류는 선불 크레딧을 소모하지 않습니다.

공식적인 OpenAI API입니까?

아니요. 다른 검열 없는 모델을 사용하는 OpenAI 호환 API입니다. 동일한 SDK를 사용하되 베이스 URL과 키를 변경하세요.