Grok · Best AI for
Best Grok model for editing existing code
Only xAI models, scored against every current AI on the same tests, so you can see which one to pick and how it stacks up.
Answer: Grok 4.7 (46/100 · $3 per 1M tokens)

Grok 4.7. It scores 46/100 for editing existing code, #9 among all 13 current models (the overall leader, Gemini 4 Carbon, scores 91).
All 2 Grok models for editing existing code
Score = share of all of today's AI models it beats on this job's tests (100 = best of all). Bar in coral = the overall #1, for reference.
Score, price and memory side by side
Cost per job = one long request (≈ 20K tokens read, 2K written), using list API prices.
Quick answers
Which Grok model is best for editing existing code?
Grok 4.7. It scores 46/100 for editing existing code, #9 among all 13 current models (the overall leader, Gemini 4 Carbon, scores 91).
About Grok 4.7 →What's the runner-up?
Grok 4.6, scoring 26 at $3 per million tokens.
See the details →How does it compare with the overall best for editing existing code?
Gemini 4 Carbon scores 91 vs 46, but costs about 1.3× as much per token.
Best AI for editing existing code →How are these ranked?
Each model's score is the share of current AI models it beats on the editing existing code tests, weighted towards newer and harder tests. Only xAI models, scored against every current AI on the same tests, so you can see which one to pick and how it stacks up.
How scores work →More ways to pick for editing existing code
Grok for other jobs
24 jobs · scores update automatically from public test results · data as of November 21, 2026