it's free*.ai

Cohere

Cohere 的 Command 模型为 RAG 而生:一个密钥搞定嵌入、重排序和长文档对话。试用密钥永不过期、不要卡,但许可只允许原型,不允许生产。

Cohere 的 Command 模型为 RAG 而生:一个密钥搞定嵌入、重排序和长文档对话。试用密钥永不过期、不要卡,但许可只允许原型,不允许生产。

每月 1,000 次请求、每分钟 20 次,Command A(command-a-03-2025)可达 256K 上下文。Command A+ 是 command-a-plus-05-2026。OpenAI 形状的路径是 /compatibility/v1;Cohere 自家 API 在 /v2。

免费模型
12
最大上下文
256K
免费额度
每月 1,000 次请求
注册要求
只要邮箱,不要卡

端点

接口地址https://api.cohere.com/compatibility/v1
环境变量COHERE_API_KEY
速率限制20 requests/minute, 1,000 requests/month

代码示例

npm install openai
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://api.cohere.com/compatibility/v1',
  apiKey: process.env.COHERE_API_KEY
})

const response = await client.chat.completions.create({
  model: 'command-a-03-2025',
  messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})

console.log(response.choices[0].message.content)

值得注意

你能免费使用的模型12