ko ▾
Chatgptapipricing

개발자 중심 비검열 API

Chatgptapipricing계정 열기

Uncensored API 빠른 시작 가이드

콘텐츠 필터 없이 텍스트를 생성하기 위해 기존 코드베이스에 OpenAI 호환 API를 연결하세요. 월 구독료나 숨겨진 수수료 없이 토큰 사용량만큼만 지불합니다.

필수 조건 및 베이스 URL

전용 베이스 URL로 요청을 보내는 것으로 시작하세요. 표준 OpenAI SDK와 호환되는 단일 비제한 모델 ID를 제공합니다.

  • Base URL: https://api.chatgptapipricing.com/v1
  • 모델 ID: uncensored

대시보드에서 API 키가 필요합니다. 엔드포인트는 표준 채팅 완료만 지원합니다.

Auth header configuration

API 키를 Authorization 모든 요청에 대한 header. 다음을 사용하세요 Bearer 계정을 인증하는 스키마입니다.

  • 헤더: Authorization: Bearer YOUR_API_KEY

이 키를 안전하게 보관하세요. 계정 설정에서 언제든지 새 키를 생성할 수 있습니다.

첫 채팅 완료 보내기

/v1/chat/completions으로 POST 요청을 보내세요. /v1/chat/completions 시스템 및 사용자 메시지를 사용합니다. API는 프롬프트를 기반으로 텍스트 응답을 반환합니다.

입력 토큰 비용 $0.15 100만 토큰당. 출력 토큰 비용은 $0.50 100만 토큰당. 오류는 크레딧을 소모하지 않습니다.

curl https://api.chatgptapipricing.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Calculate the total tokens for this input string"}]
  }'

ストリーミングレスポンスの処理

stream을 true로 설정하여 스트리밍 활성화 stream: true 요청에 포함됩니다. API는 실시간 토큰 전송을 위해 서버 전송 이벤트(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)

Python

from openai import OpenAI

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

즉시 키를 받으세요.

가입하고, 키를 복사한 후 기본 URL을 업데이트하세요. 그게 끝입니다.

계정 열기문서 보기