语言模型/xAI/Grok 4.20 Multi-Agent
xAItext1 条线路

Grok 4.20 Multi-Agent

Grok 4.20 Multi-Agent by xAI, through an OpenAI-compatible chat completions API.

grok-4.20-multi-agent-0309获取 API 密钥

价格 美元 / 每百万 token

Token每 100 万 token
输入$1.25
缓存输入$1.25
缓存写入(5 分钟)$1.25
缓存写入(1 小时)$1.25
输出$2.50

推理 token 按输出计费。每个回答的 usage 中都带有 cost_usd,即从你的余额中扣除的金额;没有得到回答的请求费用为 $0.00。

请求

curl
curl https://api.revana.si/v1/chat/completions \
  -H "Authorization: Bearer $REVANA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-4.20-multi-agent-0309","messages":[{"role":"user","content":"Write a haiku about routing."}]}'
Python
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.revana.si/v1", api_key=os.environ["REVANA_API_KEY"])
reply = client.chat.completions.create(
    model="grok-4.20-multi-agent-0309",
    messages=[{"role": "user", "content": "Write a haiku about routing."}],
)
print(reply.choices[0].message.content)

任意 OpenAI SDK 都可使用:把 base URL 设为 https://api.revana.si/v1。流式输出、工具调用等内容见 chat completions 文档。

详情

模型 id
grok-4.20-multi-agent-0309
开发商
xAI
接口
POST /v1/chat/completions
流式输出
支持(服务器发送事件)
线路
1

1 条线路

目前只有一条线路。没有得到回答的请求不会扣费。

About the Grok 4.20 Multi-Agent API

How much does the Grok 4.20 Multi-Agent API cost?

Grok 4.20 Multi-Agent costs $1.25 per million input tokens, $1.25 per million cached input tokens and $2.50 per million output tokens on Revana. You pay from prepaid credit for the tokens each request used, with no subscription or minimum.

How do I call Grok 4.20 Multi-Agent from code?

Use any OpenAI SDK with base URL https://api.revana.si/v1 and your Revana API key, and set model to "grok-4.20-multi-agent-0309". POST /v1/chat/completions takes the OpenAI request body, streamed or not.

请求失败了会怎样?

没有得到回答的请求不产生任何费用。

Is Grok 4.20 Multi-Agent on Revana the same model?

是的。Revana 会把你的请求原样传给 xAI 的模型,并以 OpenAI 格式返回它的回答,以及它报告的用量和该请求的费用。

xAI 的更多模型

也提供面向智能体的 Markdown 版本。所有语言模型和价格:llms.json。