API Dokümantasyonu: Hızlı Başlangıç
Mevcut OpenAI-uyumlu istemci kodunuzu uç noktamıza yerleştirin ve içerik reddi olmadan sansürsüz modelimiz üzerinden metin işleyin.
Temel URL ve Kimlik Doğrulama
İstemleri uncensored uç noktasına yönlendirmek için temel URL'mizi kullanın. API anahtarınızı içine ekleyin Authorization header. Bu, herhangi bir standart OpenAI SDK ile çalışır.
Temel URL: https://api.deepseeksincensura.com/v1
Başlık: Authorization: Bearer YOUR_API_KEY
Anahtarınızı Google veya e-posta ile anında oluşturun.
İlk İstek: Metin Üretimi
Şuraya bir POST isteği gönderin /v1/chat/completions metin çıktısı almak için. Model kimliği uncensored.
Bu uç nokta meti girdisini işler ve meti döndürür. Resimleri, sesi veya embeddingleri desteklemez.
Hatalar ve reddetmeler ücretsizdir. Yalnızca tüketilen tokenlar için ödeme yaparsınız.
cURL
curl https://api.deepseeksincensura.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Summarize the provided log file content"}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.deepseeksincensura.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.deepseeksincensura.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);Akış
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 anahtarınızı anında alın
Kaydolun, anahtarınızı kopyalayın ve uç nokta URL'sini güncelleyin. İşte bu kadar.