Cohere: Rerank 4 Fast - API لـمصر، بالجنيه المصري
مباشرcohere
rerank-4-fastCohere's AI search foundation model for enhancing the relevance of information surfaced within search and RAG systems.
Modality
Rerank
Context window
33K Tokens
أقصى Output
29K Tokens
المنطقة
US
منشور
27 أكتوبر 2026
الأسعار
السعر
0.135 ج.م لكل عملية بحث
يُبلغ المزوّد عن المبلغ الفعلي المخصوم مع كل استجابة.
- 0.135 ج.م لكل عملية بحث: استعلام واحد مع ما يصل إلى 100 مستند، والمستند الذي يزيد على 500 Token مع الاستعلام يُحتسب أكثر من مستند.
- يُبلغ المزوّد عن التكلفة الدقيقة مع كل رد، وهي ما تدفعه.
استخدمه عبر واجهة API
تشغيل خدمات الذكاء الاصطناعي
POST /v1/rerank — Rerank متوافق مع Cohere: استدعِه عبر HTTP؛ إذ لا توفّر حزم OpenAI SDK أي دالة له.
import httpx
response = httpx.post(
"https://backend.sovereigneg.com/v1/rerank",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "rerank-4-fast",
"query": "What is the capital of Egypt?",
"documents": [
"Paris is the capital of France.",
"Cairo is the capital of Egypt.",
"Madrid is the capital of Spain.",
],
"top_n": 3,
},
timeout=30,
)
print(response.json())const response = await fetch("https://backend.sovereigneg.com/v1/rerank", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "rerank-4-fast",
query: "What is the capital of Egypt?",
documents: [
"Paris is the capital of France.",
"Cairo is the capital of Egypt.",
"Madrid is the capital of Spain.",
],
top_n: 3,
}),
})
console.log(await response.json())curl https://backend.sovereigneg.com/v1/rerank \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "rerank-4-fast",
"query": "What is the capital of Egypt?",
"documents": [
"Paris is the capital of France.",
"Cairo is the capital of Egypt.",
"Madrid is the capital of Spain."
],
"top_n": 3
}'الأسئلة الشائعة
ما حجم الـ Context window في Cohere: Rerank 4 Fast؟
يدعم Cohere: Rerank 4 Fast Context window بحجم 32,768 Tokens (33K).
أين يُستضاف Cohere: Rerank 4 Fast؟
يُخدَم Cohere: Rerank 4 Fast من US (مستضاف في الولايات المتحدة).