AI 导读
grok 4.6 已可在 API 中使用,采用 OpenAI 兼容格式,可直接作为替换使用。配图示例代码显示,把 baseURL 设为 https://api.x.ai/v1、model 填 grok-4.6、apikey 用 XAI_API_KEY,即可通过 OpenAI SDK 发起调用并打印输出。
正文
if you like grok 4.6, you can also use it in the api! it's an openai compatible format, so you can just use it as a drop in replacement https://t.co/NGAwTQIVca
来源:@ericzakariasson · x.com