Grok model on ScaleMax
Grok 4.7 API
Call Grok 4.7 with the model ID grok-4.7 through ScaleMax's OpenAI-compatible API. It costs $2.40 per million input tokens and $7.20 per million output tokens, prepaid, with no subscription.
Mid price · Reads images · 500K context
- Model ID
grok-4.7- Maker
- Grok
- Input / 1M tokens
- $2.40
- Output / 1M tokens
- $7.20
- Context window
- 500,000 tokens
- Max output
- 65,500 tokens
Grok 4.7 pricing
ScaleMax publishes one customer rate per model and deducts each completed request from your prepaid balance at that rate: $2.40 per 1M input tokens and $7.20 per 1M output tokens for Grok 4.7. Long prompts above 200,000 tokens bill at $4.80 / $14.40 per 1M.
What typical requests cost at the standard rate (token counts are illustrative sizes):
| Request | Size | Cost per request | Per $25 of credit |
|---|---|---|---|
| Chat reply | 2,000 tokens in, 600 out | $0.00912 | about 2,741 requests |
| Coding-agent step | 40,000 tokens in (files + history), 2,000 out | $0.11 | about 226 requests |
| Long-document pass | 200,000 tokens in, 4,000 out | $0.509 | about 49 requests |
The Starter credit pack costs $2.50 and adds $25 of usage credit (larger packs add more per dollar — see how pricing works). Prompt-cache reads, where the model supports caching, can bill below the input rate.
Pay by UPI, PayU or Cashfree (UPI, cards, net banking), Cryptomus (crypto) or PayPal. Prices on this page are in US dollars; India checkout shows rupees. See what ₹1,000 buys for token packs.
How to call Grok 4.7
Create a key in the dashboard, export it as SCALEMAX_API_KEY, and send grok-4.7 as the model. OpenAI-compatible clients use the base URL https://api.scalemax.pro/v1. Token pack keys use /token/v1 instead of /v1.
curl https://api.scalemax.pro/v1/chat/completions \
-H "Authorization: Bearer $SCALEMAX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"messages": [{"role": "user", "content": "Explain this error in one line."}],
"max_tokens": 300
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.scalemax.pro/v1",
api_key=os.environ["SCALEMAX_API_KEY"],
)
reply = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Explain this error in one line."}],
max_tokens=300,
)
print(reply.choices[0].message.content)Keep the key server-side. Call GET /v1/models with your key to see every model it can use; the quick start covers errors and streaming.
Capabilities and limits
- Context window: 500,000 tokens (500K-token).
- Maximum output: 65,500 tokens per response.
- Supports: Reads images, Tool / function calling, Reasoning effort control.
- Streaming: server-sent events on every route.
Works in
Any OpenAI-compatible client: Cursor, Cline, Roo Code, Kilo Code, OpenCode, Continue, Aider, Zed and Hermes Agent, with the model ID above. Setup steps for each are on the integrations page.
Other Grok models
| Model | Model ID | Input / 1M | Output / 1M | Context |
|---|---|---|---|---|
| Grok 4.7 | grok-4.7 | $2.40 | $7.20 | 500,000 |
| Grok 4.5 | grok-4.5 | $2 | $6 | 500,000 |
| Grok 4.6 | grok-4.6 | $2 | $6 | 500,000 |
Lower-cost alternatives
Models from other makers with a lower output rate. Quality differs by task — test on your own prompts before switching.
| Model | Model ID | Input / 1M | Output / 1M | Context |
|---|---|---|---|---|
| Qwen 3.8 Max | qwen3.8-max | $2 | $6 | 1,000,000 |
| GLM 5.2 v2 | glm-5.2-v2 | $1.75 | $5.50 | — |
| GLM 5.3 (v2) | glm-5.3-v2 | $1.75 | $5.50 | — |
All models, with their IDs and rates, are on the model list.
Grok 4.7 API questions
What is the API model ID for Grok 4.7?
Use grok-4.7. Send it as the "model" field to https://api.scalemax.pro/v1/chat/completions.
How much does the Grok 4.7 API cost?
$2.40 per 1M input tokens and $7.20 per 1M output tokens at the published ScaleMax rate, with a higher long-prompt rate of $4.80 / $14.40. A Pay as you go key is prepaid: each completed request is deducted from your credit.
What is the context window of Grok 4.7?
500,000 tokens, with up to 65,500 output tokens per response.
Can I use Grok 4.7 in Cursor, Cline or Roo Code?
Yes. Add ScaleMax as an OpenAI-compatible provider with the base URL https://api.scalemax.pro/v1 and the model ID grok-4.7. Your key must include this model.
Can I pay for Grok 4.7 from India in rupees?
Yes. ScaleMax is prepaid and checkout accepts UPI, cards and net banking in INR, as well as crypto. There is no subscription.
Use Grok 4.7 in your tools
Start calling Grok 4.7
Get a prepaid key, copy the model ID, and send your first request in a couple of minutes.