Dolphin 제한 없는 LLM API 문서
비검열 LLM API 키를 받고 즉시 OpenAI 호환 엔드포인트로 요청을 보내세요.
https://api.dolphinuncensoredllm.com/v1uncensored
인증 및 Base URL
API 키는 호스팅된 인프라로의 모든 요청을 인증합니다. 이 키는 Google 또는 이메일 비밀번호로 로그인한 후 'API 키 받기' 페이지에서 확인할 수 있습니다. 이 문자열은 사전 지불된 크레딧에 대한 전체 접근 권한을 부여하므로 비밀로 유지하세요.
기본 URL로 SDK 또는 HTTP 클라이언트를 설정하세요. 기본 OpenAI 엔드포인트를 이 주소로 대체하여 호출이 우리의 무장비 모델로 라우팅되도록 보장합니다.
https://api.dolphinuncensoredllm.com/v1
chat.completions 엔드포인트
텍스트 출력을 받기 위해 프롬프트를 chat completions 엔드포인트로 전송하세요. 이 표준 엔드포인트는 시스템 지시사항과 사용자 메시지를 받습니다. 모든 요청에서 model ID를 uncensored로 지정해야 합니다.
curl 명령어를 사용한 기본 요청입니다:
curl -X POST https://api.dolphinuncensoredllm.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Tell me a dark story."}],
"max_tokens": 500
}'
Python SDK 통합
공식 OpenAI Python 라이브러리를 사용하여 당사 API와 상호작용하세요. base URL과 API 키로 클라이언트를 초기화합니다. 이렇게 하면 chat.completions.create과 같은 익숙한 메서드를 사용할 수 있습니다.
다음 코드는 간단한 텍스트 생성 요청을 보여줍니다:
import openai
client = openai.OpenAI(
base_url="https://api.dolphinuncensoredllm.com/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Explain quantum computing."}],
max_tokens=1024
)
Node.js 클라이언트 설정
OpenAI npm 패키지를 설치하고 기본 URL을 사용하도록 구성합니다. 이렇게 하면 Node.js 애플리케이션이 올바른 Uncensored 모델로 요청을 보냅니다.
자격 증명과 메시지를 사용하여 클라이언트를 초기화합니다:
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.dolphinuncensoredllm.com/v1',
apiKey: 'YOUR_API_KEY'
});
const response = await client.chat.completions.create({
model: 'uncensored',
messages: [{ role: 'user', content: 'Write code for a scraper.' }]
});
스트리밍 응답 및 토큰 수
stream 파라미터를 true로 설정하여 스트리밍을 활성화하세요. 이는 토큰을 점진적으로 반환하여 긴 출력의 지각된 지연 시간을 개선합니다. 스트림의 마지막 청크에는 전체 토큰 사용량 통계가 포함됩니다.
이 방식은 실시간 인터페이스에 특히 적합합니다:
const stream = await client.chat.completions.create({
model: 'uncensored',
messages: [{ role: 'user', content: 'Write a long poem.' }],
stream: true
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content || '');
}
오류 코드 및 속도 제한
문제가 발생하면 특정 HTTP 상태 코드를 받게 됩니다. 401 오류는 API 키가 유효하지 않거나 누락되었음을 의미합니다. 402 오류는 사전 지불 크레딧 잔액이 요청에 부족함을 나타냅니다.
Rate limits는 인프라를 보호합니다. 키당 분당 300개의 요청을 보낼 수 있습니다. 이를 초과하면 429 Too Many Requests 오류가 발생합니다. 동시에 8개의 요청을 보낼 수도 있습니다. 프롬프트와 완료를 합친 컨텍스트 윈도우는 총 100,000 토큰입니다.
cURL
curl https://api.dolphinuncensoredllm.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Summit the meeting notes to bullet points"}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.dolphinuncensoredllm.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.dolphinuncensoredllm.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)자주 묻는 질문
요청을 인증하는 방법은?
API 키를 Authorization 헤더에 Bearer 토큰으로 포함하세요. 이 키는 Google 또는 이메일로 로그인한 후 대시보드에서 생성합니다. 이 키는 선불 크레딧을 제어하므로 안전하게 보관하세요.
컨텍스트 윈도우 크기는 얼마인가요?
이 모델은 100,000개의 토큰 컨텍스트 윈도우를 지원합니다. 이 제한은 입력 프롬프트와 생성된 출력의 합계 총합에 적용됩니다. 이 제한을 초과하면 오류가 발생합니다.
요율 제한에 도달하면 어떻게 되나요?
분당 300회 요청을 초과하면 429 상태 코드를 받게 됩니다. 또한 8개의 동시 요청을 실행할 수 있습니다. 추가 스로틀링을 피하려면 재시도 전에 몇 초간 기다리세요.
API 키 받기
가입, 키 복사, 기본 URL 업데이트. 이것뿐입니다.