Models

grok-4.7-fast

LLMs Text

grok-4.7-fast on 4AICode

Use model ID grok-4.7-fast (xAI) through the 4AICode relay. Prices below come from the repository snapshot of the public model-rates API; the console remains the source of truth if rates change.

Model ID

grok-4.7-fast

Pricing

Meter4AICode (USD / 1M tokens)Official reference
Input$4$4
Output$12$12
Cache read$1—
Cache write (5m)$4—
Cache write (1h)$4—

Snapshot pricing only. Always confirm the live rate in the dashboard before budgeting.

Compatibility

  • Vendor / channel: xAI / grok
  • Billing mode: per token
  • Suggested endpoints: chat_completions
  • Capabilities: Streaming

Example request

POST /v1/chat/completions HTTP/1.1
Host: relay.4aicode.com
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." }
  ]
}

Next steps

  1. Create a token in Token management.
  2. Point your client base_url to https://relay.4aicode.com (or https://relay.4aicode.net for mainland routing).
  3. Set model to grok-4.7-fast.