模型

grok-4.7-fast

LLMs Text

grok-4.7-fast 模型与价格

在 4AICode 上调用 grok-4.7-fast(xAI)。下方价格来自仓库内公开费率快照(与 /api/billing/model-rates 同源);若控制台价格有更新,以控制台为准。

模型 ID

grok-4.7-fast

价格

计费项4AICode(USD / 1M tokens)官方参考价
输入$4$4
输出$12$12
Cache 读取$1—
Cache 写入(5 分钟)$4—
Cache 写入(1 小时)$4—

本页为构建时快照,预算请以控制台实时价格为准。

兼容性

  • 厂商 / 通道:xAI / grok
  • 计费方式:按 token
  • 常用端点:chat_completions
  • 能力:流式

调用示例

POST /v1/chat/completions HTTP/1.1
Host: relay.4aicode.net
Authorization: Bearer sk-4ai-xxxxxxxxxxxxxxxx
content-type: application/json

{
  "model": "grok-4.7-fast",
  "stream": true,
  "messages": [
    { "role": "user", "content": "Write a hello world in Go." }
  ]
}

接入步骤

  1. 在 Token 管理 创建密钥。
  2. 将客户端 base_url 指向 https://relay.4aicode.net(国际网络可用 https://relay.4aicode.com)。
  3. 请求里把 model 设为 grok-4.7-fast。

相关页面