Grok 4.5 是 xAI Grok 推出的 深度推理 · 工具调用 · 结构化输出模型,上下文窗口 500,000 tokens,单次最大输出 500,000 tokens。
原厂描述:xAI's Grok model for chat, coding, agentic tools, and lower hallucination risk
grok-4.5数据来源:models.dev。
# Python OpenAI SDK 调用示例 import openai client = openai.OpenAI( api_key="your-api-key", base_url="https://api.eake.cn/v1" ) response = client.chat.completions.create( model="md-xai-grok-4-5", messages=[ {"role": "user", "content": "你好!"} ], temperature=0.7, max_tokens=2048 ) print(response.choices[0].message.content)
https://api.eake.cn/v1
完全兼容 OpenAI API 格式,可直接使用官方 SDK 调用