API del modello cohere/command-a-plus su OpenRouter, $0.3 / $1.5 per milione di token, contesto 192.000 token. Esempi in curl, Python e JavaScript, test dal vivo.
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...
- Tipo
- Modello
- Fornitore
- OpenRouter
- ID del modello
cohere/command-a-plus- Prezzo
- A pagamento
- Prezzo input / output
- $0.3 / $1.5 per milione di token
- Accesso senza chiave
- No
- Variabile della chiave
OPENROUTER_API_KEY- URL di base (compatibile OpenAI)
https://openrouter.ai/api/v1- Contesto
- 192.000 token
- Input
- Testo, Immagine
- Funzioni
- Ragionamento, Output JSON, Chiamata di strumenti
- Valutazione degli sviluppatori
- Non ancora valutato
- Documentazione
- https://openrouter.ai/cohere/command-a-plus
Esempi di codice
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":"Ciao, presentati in una frase."}]}'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": "Ciao, presentati in una frase."}],
)
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: 'Ciao, presentati in una frase.' }],
})
console.log(r.choices[0].message.content)
Genera il codice di integrazione →
Ricerche popolari
Domande frequenti
L’API di Cohere: Command A+ è gratuita?
No: Cohere: Command A+ è un’API a pagamento ($0.3 / $1.5 per milione di token).
Come chiamo Cohere: Command A+ dal mio codice?
Cohere: Command A+ offre un’API compatibile con OpenAI all’indirizzo https://openrouter.ai/api/v1: usa qualsiasi SDK OpenAI (Python, JavaScript…) con questo URL di base. Identificatore del modello: cohere/command-a-plus. Codice pronto all’uso (streaming, JSON, nuovi tentativi) è disponibile nella cassetta degli attrezzi per sviluppatori.
Qual è la finestra di contesto di Cohere: Command A+?
Cohere: Command A+ accetta fino a 192.000 token di contesto (messaggio e cronologia).
Quali sono le alternative a Cohere: Command A+?
API simili nel catalogo: Cohere: Command A, Cohere: Command R7B (12-2024), Cohere: Command R (08-2024), Cohere: Command R+ (08-2024).
Alternative
- Cohere: Command A — A pagamento
- Cohere: Command R7B (12-2024) — A pagamento
- Cohere: Command R (08-2024) — A pagamento
- Cohere: Command R+ (08-2024) — A pagamento