Cohere

Cohere API

Access Cohere instantly with Puter.js, and add AI to any app in a few lines of code without backend or API keys.

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.chat("Explain AI like I'm five!", {
    model: "cohere/command-r-plus-08-2024"
}).then(response => {
    console.log(response);
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain AI like I'm five!", {
            model: "cohere/command-r-plus-08-2024"
        }).then(response => {
            console.log(response);
        });
    </script>
</body>
</html>

List of Cohere Models

Chat

Command A

cohere/command-a

Command A is Cohere's flagship enterprise language model with 111 billion parameters and a 256K token context window, released in March 2025. Built for complex agentic workflows, it leads on tool-use benchmarks including BFCL-v3 and Tau-bench, and performs on par with GPT-4o on MMLU and SQL tasks. It is particularly strong at multi-step tool calling — including knowing when not to invoke a tool, a critical quality for production agents. Supporting 23 languages with 150% higher throughput than Command R+, it's a strong choice for developers building RAG pipelines, autonomous agents, or multilingual enterprise applications.

Chat

Command R7B (12-2024)

cohere/command-r7b-12-2024

Command R7B is Cohere's smallest and fastest model in the R series, with 7 billion parameters and a 128K token context window. Despite its compact size, it ranked first among similarly-sized open-weights models on the HuggingFace Open LLM Leaderboard, leading across IFEval, BBH, GPQA, MuSR, and MMLU. It supports native tool use, multi-step agentic workflows, and RAG across 23 languages, with particular strength in code tasks including SQL and code translation. For API developers, it's the best option when latency and cost are priorities and a full-scale model isn't required.

Chat

Command R (08-2024)

cohere/command-r-08-2024

Command R 08-2024 is a 32-billion-parameter generative language model from Cohere, optimized for complex reasoning, retrieval-augmented generation, multilingual tasks, and tool use across a 128K token context window. Compared to its predecessor, this version delivers approximately 50% higher throughput and 20% lower latency while showing competitive performance on math, code, and reasoning tasks. It supports 23 languages. For API developers, it is a practical mid-tier option that balances capability and cost — well-suited for question answering, summarization, and RAG-based applications.

Chat

Command R+ (08-2024)

cohere/command-r-plus-08-2024

Command R+ 08-2024 is Cohere's 104-billion-parameter enterprise-grade language model, updated in August 2024 with enhanced multi-step tool use, improved instruction following, and stronger structured data analysis. Benchmark scores include 80 on MMLU, 50 on HumanEval, and 88 on GSM8K. On public tool-use benchmarks, the Command R+ line has outperformed GPT-4-Turbo. It supports a 128K context window and 23 languages. Developers building complex pipelines that require reliable tool orchestration and citation-quality RAG will find it a strong fit for demanding agentic and enterprise use cases.

Frequently Asked Questions

What is this Cohere API about?

The Cohere API gives you access to models for AI chat. Through Puter.js, you can start using Cohere models instantly with zero setup or configuration.

Which Cohere models can I use?

Puter.js supports a variety of Cohere models, including Command A, Command R7B (12-2024), Command R (08-2024), and more. Find all AI models supported by Puter.js in the AI model list.

How much does it cost?

With the User-Pays model, users cover their own AI costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.

What is Puter.js?

Puter.js is a JavaScript library that provides access to AI, storage, and other cloud services directly from a single API. It handles authentication, infrastructure, and scaling so you can focus on building your app.

Does this work with React / Vue / Vanilla JS / Node / etc.?

Yes — the Cohere API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building. See the documentation for more details.