Grok 4.7 costs Rp 74,000 per million input tokens and Rp 222,000 per million output tokens on Roar AI, charged in Indonesian rupiah. xAI’s current flagship, a coding upgrade on Grok 4.6.
These are API prices for building with Grok 4.7, billed by what you use. They are not the price of a Grok plan.
Example: 1,000 requests with 3,000 input and 1,000 output tokens each cost Rp 444,000. Every rate is published and stays the same from one request to the next. See every model, or estimate a monthly bill with the token calculator, in US dollars.
Rates as of 1 December 2026. The IDR conversion rate is set each month. The published rate for December 2026 also applies when you top up by card.
grok-4.7For teams already on Grok, yes: it is a straight upgrade on Grok 4.6. xAI’s own coding results improved across the board.
Compare it with care against other labs. Independent testing put it well behind GPT-6 Astra and Claude on Terminal-Bench, and it writes more than twice the tokens of Grok 4.6 per task, so a low rate can still mean a high bill. Measure the cost of a real task before you commit.
| Model | Input | Output | Choose it for |
|---|---|---|---|
| Grok 4.7 | Rp 74,000 | Rp 222,000 | Coding and knowledge work. |
| GPT-6.2 Sol | Rp 37,000 | Rp 185,000 | Dependable coding and agent work. |
| Claude Sonnet 5.5 | Rp 37,000 | Rp 185,000 | Everyday coding with fewer tokens. |
| DeepSeek V4.1 Flash | Rp 3,608 | Rp 14,430 | Low-cost coding on an open model. |
Prices per 1M tokens.
Grok 4.7 replaced Grok 4.6 on 21 September 2026, aimed at coding and at finishing longer knowledge-work jobs. xAI reports gains across its own coding tests, including 71.0% on DeepSWE, up from 65.2%.
Independent testing is less generous. On Terminal-Bench 4.0 xAI reports 38.0% with its own harness; Artificial Analysis measured about 26%, against about 60% for GPT-6 Astra. It places Grok 4.7 at 35 on its Intelligence Index v5.
It reads text and images in a window of 500K tokens, and thinks at four effort levels from low to xhigh.
Access Grok 4.7 through the Roar AI gateway with your Roar AI API key, and pay for usage from your IDR-funded credit balance. Requests from Indonesia enter through Roar AI’s Singapore gateway.
Use the OpenAI SDK you already have: point it at Roar AI and set the model name. Read the docs.
from openai import OpenAI
client = OpenAI(base_url="https://api.roar-ai.com/v1", api_key="roar_live_…")
reply = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Summarise this contract in plain English."}],
)Grok 4.7 is a frontier model, and requests are processed on international infrastructure, outside Indonesia. The model directory says where each model is processed.
Input is Rp 74,000 per 1M tokens; output is Rp 222,000 per 1M tokens. For example, 1,000 requests with 3,000 input and 1,000 output tokens each cost Rp 444,000. The IDR conversion rate is set each month. The published rate for December 2026 also applies when you top up by card.
Yes. Roar AI charges card top-ups in IDR at its published monthly rate. Usage draws from the same credit balance as your other models. No separate xAI account is needed.
No. xAI does not publish the weights, so it is only available through an API like this one.
Grok 4.7 can read up to 500K tokens in one request.
It reads images directly. You can still send it a PDF: Roar AI turns each page into text first, at no extra charge.
Create a free account, get an API key and call Grok 4.7 with the OpenAI SDK. Top up your credits in rupiah.