20% off all GPT ๐ŸŽ‰ 30% off DeepSeekLearn more

xAI: Grok 4.7

Chat
x-ai/grok-4.7

Grok 4.7 is xAI's reasoning model succeeding Grok 4.6, intended for coding, agentic tool use, and general chat. It supports always-on reasoning, function calling, structured outputs, and prompt caching. Context window: 500K tokens, output: 65,536 tokens. Requests with at least 200K prompt tokens use the long-context billing rate. The Ofox catalog exposes text input and text output for this model. Accessible through Ofox via the OpenAI-compatible Chat Completions endpoint, with model capabilities and pricing shown in the live catalog.

Context Window
500K
Max Output Tokens
66K
Released
2026-09-21
Capabilities
Function CallingReasoningPrompt Caching
Available Providers
xAI
Supported Protocols
openai

Providers

xAIprovider.type: "grok"
Input Tokens
$2/M
Output Tokens
$6/M
Cache Read
$0.5/M
Protocols
openai/v1/chat/completions

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.run/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="x-ai/grok-4.7",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Uptime & Status

Frequently Asked Questions

xAI: Grok 4.7 on Ofox.ai costs $2/M per million input tokens and $6/M per million output tokens. Pay-as-you-go, no monthly fees.