Home / Model Explorer / Grok 4.7

Grok 4.7 API

xAIChatReasoningTool calling

Conversational Reasoning · Code and Content Creation

Overview

About this model

Grok 4.7 is a conversational and reasoning model in the xAI Grok series, aimed at problem analysis, content creation, code assistance, and agent applications. It supports text interaction and tool calling, and can be integrated through OpenAI-compatible Chat Completions and Responses interfaces.

Capabilities

Capability matrix

TextSupported
Vision—
Audio—
ToolsSupported
JSONSupported
ReasoningSupported

Pricing and groups

Routes and pricing

Grok route0.16× official price (save 84%)Operational

Supports grok4.7 (context >200k incurs double billing for long contexts; please manage your context usage reasonably).

Input

$0.32 / 1M

Output

$0.96 / 1M

Cache read

$0.08 / 1M

Cache write

— / 1M

Recent availabilityPast 24 hours · Active probes100%
24h ago16h ago8h agoNow

Prices are in USD per million tokens. This page shows a public price snapshot. Before sending a request, check the Model Explorer for current prices. The console shows account-specific routes and charges.

How to compare prices · How to interpret performance metrics

Snapshot: . Availability reflects active probes over the past 24 hours; performance reflects actual calls.

API

Integration example

Use a Yomi API key that can access this model and route. Check the endpoint and request parameters when switching models or protocols.

Set the environment variable YOMI_API_KEY.

Quick start · Pricing and billing · Protocol reference · Chat Completions · Responses API

Python · OpenAI SDK
# pip install openai
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.yomiapi.com/v1",
    api_key=os.environ["YOMI_API_KEY"],
)

resp = client.chat.completions.create(
    model="grok-4.7",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
curl · OpenAI compatible
curl 'https://api.yomiapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $YOMI_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "grok-4.7",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}'
curl · Responses API
curl 'https://api.yomiapi.com/v1/responses' \
  -H "Authorization: Bearer $YOMI_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "grok-4.7",
  "input": "Hello"
}'

Connect to Grok 4.7 now

Create an API key in the console and select an available route.

Get an API key