mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-25 16:42:16 +03:00
Validated on the combined 12-PR batch board: check:docs-all passes (docs-sync, doc-links over 855 links, fabricated-docs strict). 26-file Turkish documentation suite at full parity with consistent terminology. Thank you @ismailcelik-tr!
7.3 KiB
7.3 KiB
title, version, lastUpdated
| title | version | lastUpdated |
|---|---|---|
| API Referansı | 3.8.50 | 2026-08-23 |
API Referansı (Türkçe)
🌐 Languages: 🇺🇸 English · 🇸🇦 ar · 🇧🇬 bg · 🇧🇩 bn · 🇨🇿 cs · 🇩🇰 da · 🇩🇪 de · 🇪🇸 es · 🇮🇷 fa · 🇫🇮 fi · 🇫🇷 fr · 🇮🇳 gu · 🇮🇱 he · 🇮🇳 hi · 🇭🇺 hu · 🇮🇩 id · 🇮🇹 it · 🇯🇵 ja · 🇰🇷 ko · 🇮🇳 mr · 🇲🇾 ms · 🇳🇱 nl · 🇳🇴 no · 🇵🇭 phi · 🇵🇱 pl · 🇵🇹 pt · 🇧🇷 pt-BR · 🇷🇴 ro · 🇷🇺 ru · 🇸🇰 sk · 🇸🇪 sv · 🇰🇪 sw · 🇮🇳 ta · 🇮🇳 te · 🇹🇭 th · 🇹🇷 tr · 🇺🇦 uk-UA · 🇵🇰 ur · 🇻🇳 vi · 🇨🇳 zh-CN
Tüm OmniRoute API uç noktaları için eksiksiz referans dokümantasyonu.
İçindekiler
- Sohbet Tamamlama (Chat Completions)
- Özel Başlıklar (Custom Headers)
- Gömme (Embeddings)
- Görsel Üretimi (Image Generation)
- Ses ve Medya API'leri
- Modelleri Listeleme (List Models)
- Uyumluluk Uç Noktaları
- Arama API'si (Search API)
- WebSocket Akışı
- Anlamsal Önbellek (Semantic Cache)
- Pano ve Yönetim API'leri
- Kombo Yönetimi
- Webhook'lar
- Kayıtlı Anahtarlar (Otomatik Yönetim)
- Ajanlar Protokolü (ACP)
- Yetenekler ve Bellek API'leri
- Kimlik Doğrulama
Sohbet Tamamlama (Chat Completions)
POST /v1/chat/completions
Authorization: Bearer your-api-key
Content-Type: application/json
{
"model": "cc/claude-opus-4-6",
"messages": [
{"role": "user", "content": "Python'da bir fonksiyon yaz..."}
],
"stream": true
}
Özel Başlıklar
| Başlık | Yön | Açıklama |
|---|---|---|
X-OmniRoute-No-Cache |
İstek | Önbelleği atlamak için true ayarlayın |
x-omniroute-no-memory |
İstek | Bu istek için bellek ve yetenek enjeksiyonunu atlamak için true ayarlayın |
X-OmniRoute-Progress |
İstek | İlerleme olayları için true ayarlayın |
X-Session-Id |
İstek | Harici oturum yakınlığı için yapışkan oturum anahtarı |
Idempotency-Key |
İstek | Tekilleştirme anahtarı (5 saniyelik pencere) |
X-OmniRoute-Cache |
Yanıt | HIT veya MISS (akışsız modda) |
X-OmniRoute-Idempotent |
Yanıt | İstek tekilleştirilmişse true |
X-OmniRoute-Version |
Yanıt | OmniRoute derleme sürümü (her zaman bulunur) |
X-OmniRoute-Decision |
Yanıt | Yönlendirme izi: strategy=<ad>; provider=<alias>; latency_ms=<n> |
Gömme (Embeddings)
POST /v1/embeddings
Authorization: Bearer your-api-key
Content-Type: application/json
{
"model": "text-embedding-3-small",
"input": "Vektör haline getirilecek metin"
}
Görsel Üretimi (Image Generation)
POST /v1/images/generations
Authorization: Bearer your-api-key
Content-Type: application/json
{
"prompt": "Güneş batarken fütüristik bir şehir",
"n": 1,
"size": "1024x1024"
}
Arama API'si (Search API)
POST /v1/search
Authorization: Bearer your-api-key
Content-Type: application/json
{
"query": "OmniRoute AI gateway nedir?",
"provider": "perplexity"
}
Uyumluluk Uç Noktaları
- OpenAI Responses:
POST /v1/responses - Anthropic Messages:
POST /v1/messages - Gemini Native:
POST /v1beta/models/{model}:generateContent - Ollama Chat:
POST /v1/api/chat - Token Sayımı:
POST /v1/messages/count_tokens