Cohere
نماذج Command من Cohere مبنية لخدمة RAG: تضمين وإعادة ترتيب ودردشة مستندات طويلة بمفتاح واحد. لا تنتهي صلاحية مفتاح التجربة ولا يطلب بطاقة، لكن ترخيصه للنماذج الأولية لا للإنتاج.
نماذج Command من Cohere مبنية لخدمة RAG: تضمين وإعادة ترتيب ودردشة مستندات طويلة بمفتاح واحد. لا تنتهي صلاحية مفتاح التجربة ولا يطلب بطاقة، لكن ترخيصه للنماذج الأولية لا للإنتاج.
1,000 طلب شهرياً و20 في الدقيقة، ويصل Command A (command-a-03-2025) إلى 256K سياق. وCommand A+ هو command-a-plus-05-2026. المسار بصيغة OpenAI هو /compatibility/v1؛ بينما واجهة Cohere الخاصة تقع على /v2.
- نماذج مجانية
- 12
- السياق الأقصى
- 256K
- الطبقة المجانية
- 1,000 طلب شهرياً
- المتطلب
- بريد إلكتروني، بلا بطاقة
نقطة النهاية
عنوان URL الأساسي
https://api.cohere.com/compatibility/v1متغير البيئة
COHERE_API_KEYحد السرعة
20 requests/minute, 1,000 requests/month- متوافق مع OpenAI
- SDK رسمي: Cohere SDK
- نص
- صور
أمثلة الكود
npm install openaiimport OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://api.cohere.com/compatibility/v1',
apiKey: process.env.COHERE_API_KEY
})
const response = await client.chat.completions.create({
model: 'command-a-03-2025',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install openaiimport os
from openai import OpenAI
client = OpenAI(
base_url="https://api.cohere.com/compatibility/v1",
api_key=os.environ["COHERE_API_KEY"],
)
response = client.chat.completions.create(
model="command-a-03-2025",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)curl https://api.cohere.com/compatibility/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COHERE_API_KEY" \
-d '{
"model": "command-a-03-2025",
"messages": [{"role": "user", "content": "Explain closures in one paragraph."}]
}'npm install cohere-aiimport { CohereClientV2 } from 'cohere-ai'
const cohere = new CohereClientV2({ token: process.env.COHERE_API_KEY })
const response = await cohere.chat({
model: 'command-a-03-2025',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.message.content?.[0].text)pip install cohereimport os
import cohere
client = cohere.ClientV2(api_key=os.environ["COHERE_API_KEY"])
response = client.chat(
model="command-a-03-2025",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.message.content[0].text)جدير بالمعرفة
- المفتاح المجاني مفتاح تجريبي: جيد للنماذج الأولية، غير مرخّص للإنتاج.
- نقطة v2 الخاصة بـCohere تقع على /v2 — أما /compatibility/v1 فهي بصيغة OpenAI.
- معرّف Command A هو command-a-03-2025 (256K). أما command-a-218b فليس معرّف API.
النماذج التي تحصل عليها مجاناً12
- Command A
command-a-03-2025 - Command A+
command-a-plus-05-2026 - Command R+
command-r-plus-08-2024 - Command R
command-r-08-2024 - Command R7B
command-r7b-12-2024 - Command A Reasoning
command-a-reasoning-08-2025 - Command A Translate
command-a-translate-08-2025 - Embed V4
embed-v4.0 - Embed English V3
embed-english-v3.0 - Embed Multilingual V3
embed-multilingual-v3.0 - Rerank V3.5
rerank-v3.5 - Rerank English V3
rerank-english-v3.0