Grok 4.7 costs LKR 1,340 per million input tokens and LKR 4,020 per million output tokens on Roar AI, billed in Sri Lankan rupees on one invoice. 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 LKR 8,040. 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. Rates in Sri Lankan rupees are set each month. These are the rates for December 2026, and your invoice uses the same rates.
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 | LKR 1,340 | LKR 4,020 | Coding and knowledge work. |
| GPT-6.2 Sol | LKR 670 | LKR 3,350 | Dependable coding and agent work. |
| Claude Sonnet 5.5 | LKR 670 | LKR 3,350 | Everyday coding with fewer tokens. |
| DeepSeek V4.1 Flash | LKR 65.33 | LKR 261 | 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.
Roar AI provides access to Grok 4.7 through the Roar AI gateway, with usage billed in LKR and no foreign card needed. Developers can use Grok 4.7 alongside other supported models without maintaining a separate integration for every provider.
xAI has published no Sinhala or Tamil test results for Grok 4.7. Test it on your own messages in either language first.
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 Sri Lanka.
Roar AI’s locally hosted model is separate and is labelled as such: if a workload has to stay in the country, Qwen 3.8 27B LK runs on our own server in Colombo.
Input is LKR 1,340 per 1M tokens; output is LKR 4,020 per 1M tokens. For example, 1,000 requests with 3,000 input and 1,000 output tokens each cost LKR 8,040. Rates in Sri Lankan rupees are set each month. These are the rates for December 2026, and your invoice uses the same rates.
Yes. Grok 4.7 usage is billed in LKR on one monthly invoice with every other model you use, so there is no foreign card or separate xAI account to set up.
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, billed in Sri Lankan rupees.