Grok 4.20 Multi-Agent
Grok 4.20 Multi-Agent by xAI, through an OpenAI-compatible chat completions API.
grok-4.20-multi-agent-0309APIキーを取得料金 100万トークンあたりのUSD
| トークン | 100万トークンあたり |
|---|---|
| 入力 | $1.25 |
| キャッシュされた入力 | $1.25 |
| キャッシュの書き込み(5分) | $1.25 |
| キャッシュの書き込み(1時間) | $1.25 |
| 出力 | $2.50 |
推論トークンは出力として課金されます。各回答の usage には、残高から引かれた金額である cost_usd が含まれ、回答のないリクエストは$0.00です。
リクエスト
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."}]}'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でも動作します。ベースURLを https://api.revana.si/v1 に設定してください。ストリーミング、ツールなどの詳細は、Chat Completionsのドキュメントをご覧ください。
詳細
grok-4.20-multi-agent-0309POST /v1/chat/completions1つのルート
現在、ルートは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のその他のモデル
- Grok 4.3 入力100万トークンあたり$1.25/出力$2.50
- Grok 4.5 入力100万トークンあたり$0.60/出力$1.80
- Grok 4.6 入力100万トークンあたり$2.00/出力$6.00
- Grok 4.7 入力100万トークンあたり$0.60/出力$1.80
- Grok 4.20 (non-reasoning) 入力100万トークンあたり$1.25/出力$2.50
- Grok 4.20 (reasoning) 入力100万トークンあたり$1.25/出力$2.50
- Grok Build 0.1 入力100万トークンあたり$1.00/出力$2.00