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