API Dokümanları
Dizginsiz AI, OpenAI ile uyumlu bir API sunar. OpenAI konuşan her araç, base URL'yi ve anahtarı değiştirerek çalışır.
Base URL
https://uncensored.kadiryaren.dev/v1Yetkilendirme
Authorization: Bearer sk-uai-…Anahtarı panelden oluştur; yalnızca bir kez gösterilir.
Hızlı test (curl)
curl https://uncensored.kadiryaren.dev/v1/chat/completions \
-H "Authorization: Bearer sk-uai-..." \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3-flash",
"messages": [{"role": "user", "content": "merhaba"}]
}'Python (resmi SDK)
pip install openai
import os
from openai import OpenAI
client = OpenAI(
base_url="https://uncensored.kadiryaren.dev/v1",
api_key=os.environ["DIZGINSIZ_API_KEY"],
)
resp = client.chat.completions.create(
model="deepseek-v4.1-flash",
messages=[{"role": "user", "content": "merhaba"}],
)
print(resp.choices[0].message.content)stream = client.chat.completions.create(
model="glm-5.3-uncensored",
messages=[{"role": "user", "content": "bir deneme"}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")Endpoint'ler
| Metot | Yol | Açıklama |
|---|---|---|
| GET | /v1/models | Kullanılabilir modeller ve fiyatlar |
| POST | /v1/chat/completions | Chat completion (stream + usage destekli) |
OpenCode yapılandırması
Projenin köküne opencode.json olarak kaydet:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"dizginsiz": {
"npm": "@ai-sdk/openai-compatible",
"name": "Dizginsiz AI",
"options": { "baseURL": "https://uncensored.kadiryaren.dev/v1" },
"models": { "glm-5.3-flash": { "name": "GLM-5.3 Flash" } }
}
},
"model": "dizginsiz/glm-5.3-flash"
}Bildiğimiz çalışan araçlar
Unjailed CLI, OpenCode, Codex, Cursor, Cline, Roo Code, Continue, Open WebUI, LibreChat, SillyTavern, aichat ve daha fazlası.