Command A
Tool use
Command A is Cohere's most performant model to date, excelling at tool use, agents, retrieval augmented generation (RAG), and multilingual use cases.
Model id — paste this in your code
cohere/command-aPricing · per 1M tokens
Show prices in
Input750 DA$3.00
Output3,000 DA$12.00
Cached input0 DA$0
Context window256KMax output: 8K
Capabilities
- Tool use — Can call your functions / tools
Estimate your cost
Estimated cost
Use this model
Create an account, top up in dinars and call it with your key:
from openai import OpenAI
client = OpenAI(
base_url="https://dzrouter.com/v1",
api_key="sk-dz-…",
)
reply = client.chat.completions.create(
model="cohere/command-a",
messages=[{"role": "user", "content": "Salam!"}],
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://dzrouter.com/v1",
apiKey: process.env.DZROUTER_API_KEY,
});
const reply = await client.chat.completions.create({
model: "cohere/command-a",
messages: [{ role: "user", content: "Salam!" }],
});
console.log(reply.choices[0].message.content);curl https://dzrouter.com/v1/chat/completions \
-H "Authorization: Bearer $DZROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "cohere/command-a",
"messages": [{"role": "user", "content": "Salam!"}],
"stream": true
}'from anthropic import Anthropic
client = Anthropic(
base_url="https://dzrouter.com",
api_key="sk-dz-…",
)
msg = client.messages.create(
model="cohere/command-a",
max_tokens=1024,
messages=[{"role": "user", "content": "Salam!"}],
)
print(msg.content[0].text)Start building with AI today
Create your account, top up from 500 DA and send your first request in minutes.
Create a free account