20% em todo GPT 🎉 30% no DeepSeekSaiba mais

xAI: Grok 4.7

Chat
x-ai/grok-4.7

Grok 4.7 is xAI's latest reasoning model, succeeding Grok 4.6 for coding, agentic tool use, and general chat. It supports a 500K-token context window with always-on reasoning, function calling, structured outputs, and prompt caching; requests of 200K prompt tokens or more are billed at the long-context rate.

Janela de Contexto
500K
Tokens Máx de Saída
66K
Lançamento
2026-09-21
Capacidades
Function CallingRaciocínioPrompt Caching
Provedores Disponíveis
xAI
Protocolos Suportados
openai

Providers

xAIprovider.type: "grok"
Tokens de Entrada
$2/M
Tokens de Saída
$6/M
Leitura de Cache
$0.5/M
Protocols
openai/v1/chat/completions

Exemplos de Código

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)

Disponibilidade e status

Perguntas Frequentes

xAI: Grok 4.7 na Ofox.ai custa $2/M por milhão de tokens de entrada e $6/M por milhão de tokens de saída. Pague por uso, sem mensalidade.