
Grok 4
About Grok 4
Grok 4 es el último modelo de razonamiento de xAI, con una ventana de contexto de 256k. Admite la llamada paralela a herramientas, salidas estructuradas y entradas tanto de imágenes como de texto.
Grok 4 es un modelo de chat de xAI, disponible en Eden AI a través de 1 endpoint en 1 proveedor, desde 3 $ por millón de tokens de entrada y 15 $ por millón de tokens de salida, con una ventana de contexto de hasta 256K tokens.
Providers and prices
1 endpoints from 1 providers, cheapest first, in USD per million tokens. Every one is called with the same Eden AI key: pin one with its endpoint ID, or let Eden AI route for you.

Performance
Performance figures appear here once Grok 4 has enough traffic on Eden AI to report them without exposing any single customer.
Estimate your monthly cost
Enter your expected volume to compare every endpoint at once.
Call Grok 4 with Eden AI
Use the model ID to let Eden AI pick an endpoint, or an endpoint ID from the table above to pin one.
import requests
response = requests.post(
"https://api.edenai.run/v3/chat/completions",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "grok-4",
"messages": [{"role": "user", "content": "Hello!"}],
},
)
print(response.json())
curl https://api.edenai.run/v3/chat/completions \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "grok-4", "messages": [{"role": "user", "content": "Hello!"}]}'
const response = await fetch("https://api.edenai.run/v3/chat/completions", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "grok-4",
messages: [{ role: "user", content: "Hello!" }],
}),
});
console.log(await response.json());
Questions about Grok 4
On Eden AI, prices for this model start at $3 per million input tokens and $15 per million output tokens. Prices differ by endpoint; the providers table lists each one.
Up to 256K tokens, depending on the endpoint.
1 endpoints from 1 providers, available in: Estados Unidos. All of them are called with the same Eden AI API key.
More from xAI
Other xAI models you can call with the same key.



.png)