TensaHub › Hugging Face Inference

command-a-plus-05-2026-bf16 · Cohere

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

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

CohereLabs/command-a-plus-05-2026-bf16 served by Cohere through the Hugging Face router (fp8 quantization).

النوع
نموذج
المزوّد
Hugging Face Inference
الاستضافة
Cohere
معرّف النموذج
CohereLabs/command-a-plus-05-2026-bf16:cohere
التسعير
مدفوع
سعر الإدخال / الإخراج
$0.3 / $1.5 لكل مليون رمز
الوصول دون مفتاح
لا
متغيّر المفتاح
HF_TOKEN
عنوان URL الأساسي (متوافق مع OpenAI)
https://router.huggingface.co/v1
السياق
192,000 رمز
المدخلات
نص, صورة
الميزات
استدعاء الأدوات, مخرجات JSON
زمن الاستجابة
أول رمز 346 ms · 143 رمز/ث · التوافر 100%
تقييم المطوّرين
لم يُقيَّم بعد
التوثيق
https://huggingface.co/CohereLabs/command-a-plus-05-2026-bf16

أمثلة برمجية

cURL

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

Python

# pip install openai
import os
from openai import OpenAI

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

JavaScript

// npm install openai
import OpenAI from 'openai'

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

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

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

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

هل واجهة command-a-plus-05-2026-bf16 · Cohere مجانية؟

لا: command-a-plus-05-2026-bf16 · Cohere واجهة مدفوعة ($0.3 / $1.5 لكل مليون رمز).

كيف أستدعي command-a-plus-05-2026-bf16 · Cohere من شيفرتي؟

يوفّر command-a-plus-05-2026-bf16 · Cohere واجهة متوافقة مع OpenAI على العنوان https://router.huggingface.co/v1: استخدم أي مكتبة OpenAI ‏(Python أو JavaScript…) مع عنوان URL الأساسي هذا. معرّف النموذج: CohereLabs/command-a-plus-05-2026-bf16:cohere. تتوفّر شيفرة جاهزة (بث، JSON، إعادة محاولة) في صندوق أدوات المطوّر.

ما حجم نافذة السياق في command-a-plus-05-2026-bf16 · Cohere؟

يقبل command-a-plus-05-2026-bf16 · Cohere حتى 192,000 رمز من السياق (الرسالة والسجل).