Cohere (Command & Rerank)Cohere
顶尖企业级大模型与 Rerank 重排序引擎,Trial 试用 Key 永久免费提供基础额度,RAG 开发必备。
核心免费额度
Trial Key 1000次/月 (10-20 RPM)永久免费
开发者可创建永久免费的 Trial API Key,调用 Command R+ 与业界最强 Rerank 模型。
刷新周期:每月刷新
申领条件与风控要求
手机验证免绑手机
信用卡绑定免绑信用卡
网络环境全球直连
并发限制RPM 无特殊限制 · TPM 无限制
免费可用模型
command-r-pluscommand-rrerank-v3.5
10 秒快速接入代码
from openai import OpenAI
# 1. 初始化客户端(使用 Cohere (Command & Rerank) 专属 API 接口地址)
client = OpenAI(
api_key="YOUR_API_KEY", # 填入申请到的 Cohere (Command & Rerank) API Key
base_url="https://api.cohere.ai/v1"
)
# 2. 发起对话请求(使用官方免费支持的模型)
response = client.chat.completions.create(
model="command-r-plus",
messages=[
{"role": "user", "content": "你好!请用一句话介绍你自己。"}
]
)
print(response.choices[0].message.content)curl https://api.cohere.ai/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "command-r-plus",
"messages": [{"role": "user", "content": "你好!"}]
}'import OpenAI from "openai";
// 1. 初始化客户端
const openai = new OpenAI({
apiKey: "YOUR_API_KEY",
baseURL: "https://api.cohere.ai/v1",
});
// 2. 发起请求
const response = await openai.chat.completions.create({
model: "command-r-plus",
messages: [{ role: "user", content: "你好!" }],
});
console.log(response.choices[0].message.content);避坑提示与风控防范
- Trial Key 严禁用于生产高并发环境。
