Grok 4.7
A closer look at capability and cost.
Input$2.00
$1.40/ 1M
official Output$6.00
$4.20/ 1M
official Demo price history.30 days
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.cheapllm.com/v1",
api_key=os.getenv("CHEAPLLM_API_KEY"),
)
client.chat.completions.create(
model="x-ai/grok-4.7",
messages=[
{"role": "user",
"content": "Hi"},
],
)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.cheapllm.com/v1",
apiKey: process.env.CHEAPLLM_API_KEY,
});
client.chat.completions.create({
model: "x-ai/grok-4.7",
messages: [
{ role: "user", content: "Hi" },
],
});curl https://api.cheapllm.com/v1/chat/completions \
-H "Authorization: Bearer $CHEAPLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "x-ai/grok-4.7",
"messages": [{"role": "user", "content": "Hello!"}]
}'- Context
- 500K
- Output
- —
- Tools
- Supported
- Vision
- Supported