Grok 4.7 is a flagship model from xAI, available here under the exact model id “grok-4.7”. It heads the Grok line-up here, above Grok 4.6 and Grok 4.7 Fast. xAI released it on 21 Sept 2026, and it has been on One AI API Key since 8 Oct 2026.
xAI documents tools, vision, reasoning, structured output and prompt caching for it, and it reads images as well as text.
It costs $1.40 per million input tokens and $4.20 per million output tokens, so output is 3× the input rate. That is 30% below the market rate of $2 input and $6 output per million tokens, the lowest public price we found at other API gateways. On the use cases below, output makes up 15% of the bill for research, 15% for tool calling and 1% for long context, so trimming the context you send saves more than capping the answer.
Cached input bills at $0.50 per million tokens, 64% below the standard input rate, which pays off when the same system prompt or documents go out on every request.
Above 200k prompt tokens, every token of the request bills at 2× these rates: one 300k-token prompt with a 2k-token answer costs $0.8568, while 200k tokens with the same answer cost $0.2884. Splitting large inputs below the threshold keeps the base rates.
It is served through the OpenAI-compatible format at https://api.oneaiapikey.com/v1, so any SDK or tool that lets you set a custom base URL, for example Codex CLI, Cursor and Cline, can use it. It is not offered on the Anthropic Messages endpoint; pick an Anthropic-format model for Claude Code.