ko ▾
체험 키 받기

Cursor API 문서 및 빠른 시작

이 무검열 LLM은 OpenAI 호환 API에서 실행되므로, 자체 Cursor API 키를 사용하거나 직접 통합을 위해 새 키를 생성할 수 있습니다.

인증 및 Base URL 설정

클라이언트를 기본 URL로 가리키세요 https://api.cursorapi.cc/v1 인증 헤더에 키를 전달합니다. 시스템은 표준 Bearer 토큰 인증을 사용하므로 엔드포인트를 업데이트하면 모든 OpenAI SDK가 바로 작동합니다.

/v1/chat/completions으로 요청 전송

다음으로 첫 번째 프롬프트를 보내세요 POST /v1/chat/completions 모델 ID를 uncensored. 이 모델은 합법적인 성인 또는 논쟁적인 콘텐츠에 대해 거부 없이 답변하여 출력에 대한 완전한 제어를 제공합니다. 오류는 무료이므로 실제 토큰 사용량에 대해서만 지불하며, 침묵 실패에 크레딧을 낭비하지 않습니다.

cURL

curl https://api.cursorapi.cc/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Summarize the key differences between the two models."}]
  }'

Python

from openai import OpenAI

client = OpenAI(base_url="https://api.cursorapi.cc/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.cursorapi.cc/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 키를 즉시 받으세요

가입하고, 키를 복사한 후, 베이스 URL을 업데이트하세요. 간단한 설정입니다.

체험 키 받기