首页/grok-4.20-0309-reasoning
grok-4.20-0309-reasoning

grok-4.20-0309-reasoning

grok-4.20-0309-reasoning
Grok 4.20 is our newest flagship model with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering consistently precise and truthful responses.
价格
输入$1.9/百万 tokens$2/百万 tokens
输出$5.7/百万 tokens$6/百万 tokens
阶梯计费
每次请求输入长度输入Cached reads输出价格
0 < tokens <= 200,000$2$0.2$6
200,000 < tokens <= 2,000,000$4$0.4$12

使用以下代码示例来集成我们的API:

1from openai import OpenAI
2
3client = OpenAI(
4    api_key="<Your API Key>",
5    base_url="https://api.highwayapi.ai/openai"
6)
7
8response = client.chat.completions.create(
9    model="grok-4.20-0309-reasoning",
10    messages=[
11        {"role": "system", "content": "You are a helpful assistant."},
12        {"role": "user", "content": "Hello, how are you?"}
13    ],
14    max_tokens=2000000,
15    temperature=0.7
16)
17
18print(response.choices[0].message.content)

信息

提供商
量化
-

支持的功能

上下文长度
2000000
最大输出
2000000
函数调用
支持
结构化输出
支持
推理
支持
serverless
支持
Input Capabilities
text, image
Output Capabilities
text
联系我们