跳到正文 Chat

Command API

5 个 Command 模型,一个兼容 OpenAI 的接口、一个预付余额,按官方价按量计费。

获取 API Key 全部 5 个 Command 模型

官方价

$0.30 / $1.50 每百万输入 / 输出 token

Command A+

Command 模型和价格 5

模型上下文价格折扣
Command A+cohere/command-a-plus192K输入 $0.30 / 输出 $1.50(每百万 tokens)—
Command Acohere/command-a256K输入 $2.50 / 输出 $10.00(每百万 tokens)—
Command R7B (12-2024)cohere/command-r7b-12-2024128K输入 $0.0375 / 输出 $0.15(每百万 tokens)—
Command R (08-2024)cohere/command-r-08-2024128K输入 $0.15 / 输出 $0.60(每百万 tokens)—
Command R+ (08-2024)cohere/command-r-plus-08-2024128K输入 $2.50 / 输出 $10.00(每百万 tokens)—

价格截至 2026年11月5日。官方价:模型厂商的挂牌价。第 1–3 档:OceanToken 按累计充值给出的长期折扣,不是限时特价。

调用 Command API

任何兼容 OpenAI 的 SDK 都能用:Base URL 设成 https://api.oceantoken.ai/v1,填你的 OceanToken key,模型 ID 照原样写。

Python
from openai import OpenAI
# 在 OceanToken 控制台创建 API Key
client = OpenAI(base_url="https://api.oceantoken.ai/v1",
                api_key="YOUR_API_KEY")
reply = client.chat.completions.create(
    model="cohere/command-a-plus",
    messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)

为什么在 OceanToken 用 Command

  • 一个 API key、一个预付余额,用 73 家厂商的 近 500 个模型。
  • 兼容 OpenAI:只改 Base URL 和 key,代码不用动。
  • 预付制,没有订阅费和平台费。每个 API key 都可以单独设消费上限。

常见问题

Command API 多少钱?

在 OceanToken,Command A+ 的价格是 输入 $0.30 / 输出 $1.50(每百万 tokens)。最便宜的 Command 模型是 Command R7B (12-2024),输入 $0.0375 / 输出 $0.15(每百万 tokens)。所有模型都从预付余额按量扣费,不用订阅。

这些是官方的 Command 模型吗?

是。按模型自己的名字调用,用的就是那个模型。每个模型页都把官方价和我们的价格并排列出,调用之前就能看到。

怎么调用 Command API?

在 OceanToken 控制台创建 API key,Base URL 设成 https://api.oceantoken.ai/v1,填模型 ID,例如 cohere/command-a-plus。OpenAI 官方 SDK 和任何兼容 OpenAI 的客户端都能用。

用 Command 需要订阅吗?

不需要。用银行卡充值,每次请求按模型价格扣费。购买的额度 12 个月内有效。

获取 API Key 全部模型

其他模型 API

Kimi API · MiniMax API · Claude API · GPT API · Gemini API · Grok API · Mistral API · Llama API · Gemma API · Nemotron API · Hunyuan API · Seed API · Sonar API · Nova API · Veo API · Kling API · Wan API · Hailuo API · Nano Banana API · Seedream API · GPT Image API · FLUX API · Qwen Image API · Grok Imagine API · Recraft API · MAI Image API · Whisper API · Voyage API