TensaHub › OpenRouter

Cohere: Command A+

واجهة برمجة النموذج cohere/command-a-plus لدى OpenRouter, $0.3 / $1.5 لكل مليون رمز, سياق 192,000 رمز. أمثلة بـ curl وPython وJavaScript، واختبار مباشر.

اختبر وقيّم في الفهرس

Command A+ is Cohere's flagship model for enterprise agentic workflows. It accepts text and image inputs with a 192K context window, supports native tool calling with strict tool schemas, structured...

النوع
نموذج
المزوّد
OpenRouter
معرّف النموذج
cohere/command-a-plus
التسعير
مدفوع
سعر الإدخال / الإخراج
$0.3 / $1.5 لكل مليون رمز
الوصول دون مفتاح
لا
متغيّر المفتاح
OPENROUTER_API_KEY
عنوان URL الأساسي (متوافق مع OpenAI)
https://openrouter.ai/api/v1
السياق
192,000 رمز
المدخلات
نص, صورة
الميزات
الاستدلال, مخرجات JSON, استدعاء الأدوات
تقييم المطوّرين
لم يُقيَّم بعد
التوثيق
https://openrouter.ai/cohere/command-a-plus

أمثلة برمجية

cURL

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -d '{"model":"cohere/command-a-plus","messages":[{"role":"user","content":"مرحبًا، عرّف بنفسك في جملة واحدة."}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
r = client.chat.completions.create(
    model="cohere/command-a-plus",
    messages=[{"role": "user", "content": "مرحبًا، عرّف بنفسك في جملة واحدة."}],
)
print(r.choices[0].message.content)

JavaScript

// npm install openai
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://openrouter.ai/api/v1', apiKey: process.env.OPENROUTER_API_KEY })
const r = await client.chat.completions.create({
  model: 'cohere/command-a-plus',
  messages: [{ role: 'user', content: 'مرحبًا، عرّف بنفسك في جملة واحدة.' }],
})
console.log(r.choices[0].message.content)

توليد شيفرة الدمج →

عمليات بحث شائعة

الأسئلة الشائعة

هل واجهة Cohere: Command A+ مجانية؟

لا: Cohere: Command A+ واجهة مدفوعة ($0.3 / $1.5 لكل مليون رمز).

كيف أستدعي Cohere: Command A+ من شيفرتي؟

يوفّر Cohere: Command A+ واجهة متوافقة مع OpenAI على العنوان https://openrouter.ai/api/v1: استخدم أي مكتبة OpenAI ‏(Python أو JavaScript…) مع عنوان URL الأساسي هذا. معرّف النموذج: cohere/command-a-plus. تتوفّر شيفرة جاهزة (بث، JSON، إعادة محاولة) في صندوق أدوات المطوّر.

ما حجم نافذة السياق في Cohere: Command A+؟

يقبل Cohere: Command A+ حتى 192,000 رمز من السياق (الرسالة والسجل).

ما بدائل Cohere: Command A+؟

واجهات مشابهة في الفهرس: Cohere: Command A, Cohere: Command R7B (12-2024), Cohere: Command R (08-2024), Cohere: Command R+ (08-2024).

بدائل