APIMODELSAPIMODELS
All
Models/Grok 4.7
SpaceXSI

Grok 4.7 API

grok-4.7

Grok 4.7 is the newest Grok model from SpaceXSI (formerly xAI), released 21 September 2026 and recommended by SpaceXSI for code and chat, with 500K context, image input and four reasoning levels. Call grok-4.7 on APIMODELS at $1.50 / $4.50 per 1M tokens, 25% below SpaceXSI's $2 / $6; failed requests are not billed.

Newest GrokCoding & AgentsTool Calling500K ContextVision
Input$1.50
Output$4.50
per 1M tokens

API Documentation

View complete API reference with all parameters and examples.

View Docs

Full API Documentation

View complete API reference with streaming, thinking, and more.

View Documentation

Pricing

Input
$1.50
per 1M tokens
Output
$4.50
per 1M tokens

Billing: Cost = (input_tokens * input_price + output_tokens * output_price) / 1,000,000

25% Below SpaceXSI Official

Prompts under 200K tokens: $1.50 input / $4.50 output / $0.375 cached per 1M, against SpaceXSI's $2.00 / $6.00 / $0.50. From 200K tokens (cached ones count), the whole request: $3.00 / $9.00 / $0.75 against $4.00 / $12.00 / $1.00. Checked 1 Dec 2026

Newest Grok, Larger Base Model

Released 21 Sep 2026. SpaceXSI: a new, larger base model than Grok 4.6 and a longer RL run on multi-hour tasks; recommended by SpaceXSI for code and chat

Ahead of Grok 4.6 in SpaceXSI Tests

CursorBench 4.0 46.3% vs 40.4%, Terminal-Bench 4.0 37.6% vs 20.3%, GDPval Elo 1,695 vs 1,605 (4.7 at xhigh, 4.6 at high; published by SpaceXSI)

500K Context, Image Input

Text and images in, text out; function calling and structured outputs; knowledge cutoff May 2026 (per SpaceXSI docs)

Verified on APIMODELS

Tested 1 Dec 2026: chat completions with streamed usage, parallel tool calls while streaming, image_url input, /v1/responses, prompt caching and reasoning_effort

Know Before You Call

Reasoning is always on (default high) and bills as output. No live web search on /v1/chat/completions. Failed requests are not billed

Grok 4.7 on APIMODELS: what works and what does not

Grok 4.7 (grok-4.7) runs on APIMODELS through the OpenAI-compatible /v1/chat/completions and /v1/responses with one API key. The table separates what we tested ourselves on 1 December 2026 from what comes from SpaceXSI's documentation.

FeatureOn APIMODELSSource
/v1/chat/completions, non-streaming and streamingWorks; with stream_options.include_usage the last chunk carries token usageTested 1 Dec 2026
Parallel tool calls while streamingWorks; several tool_calls in one streamed responseTested 1 Dec 2026
Image inputWorks via image_url; SpaceXSI accepts JPEG, PNG, WebP and ICO up to 25 MiB per imageTested 1 Dec 2026; limits from SpaceXSI docs
/v1/responsesWorksTested 1 Dec 2026
Prompt cachingWorks; cached input is billed at $0.375 per 1M tokensTested 1 Dec 2026
reasoning_effortlow, medium, high (default) or xhigh; reasoning cannot be turned off and "none" returns 400Tested 1 Dec 2026; "none" behaviour from SpaceXSI docs
Structured outputsListed by SpaceXSI for this modelSpaceXSI docs; not tested here
Live web search on /v1/chat/completionsNot availableTested 1 Dec 2026
OutputText only, no image, audio or video outputSpaceXSI docs
Context window500,000 tokensSpaceXSI docs
Knowledge cutoffMay 2026SpaceXSI docs
presence_penalty, frequency_penalty, stopNot supported by current Grok reasoning modelsSpaceXSI docs
Minimal streaming request with token usage
curl https://api.apimodels.app/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.7",
    "reasoning_effort": "medium",
    "stream": true,
    "stream_options": {"include_usage": true},
    "messages": [{"role": "user", "content": "Write a SQL query that returns the ten most recent orders for each customer."}]
  }'

Not every request succeeds. A call can fail on a server error or a content-safety refusal; failed requests are never billed, and we do not publish a success rate. Retry with backoff in your own code instead of showing the first failure to your users.

Grok 4.7 price on APIMODELS vs SpaceXSI official

Grok 4.7 costs $1.50 per 1M input tokens, $4.50 per 1M output tokens and $0.375 per 1M cached input tokens on APIMODELS, 25% below each of SpaceXSI's official rates for prompts under 200K tokens (checked on 1 December 2026). Once a prompt reaches 200K tokens, cached tokens included, the whole request bills at $3.00 / $9.00 / $0.75 against SpaceXSI's $4.00 / $12.00 / $1.00, also 25% below. Reasoning tokens count as output.

Per 1M tokensSpaceXSI officialAPIMODELSDifference
Input (prompt under 200K tokens)$2.00$1.5025% lower
Cached input (under 200K)$0.50$0.37525% lower
Output (under 200K)$6.00$4.5025% lower
Prompt of 200K+ tokens, whole request: input / cached / output$4.00 / $1.00 / $12.00$3.00 / $0.75 / $9.0025% lower

One code-review call: 10,000 input tokens and 2,000 output tokens, reasoning included

$0.024

10,000 × $1.50 / 1M = $0.015 for input, plus 2,000 × $4.50 / 1M = $0.009 for output.

The same call with 8,000 of the input tokens served from cache

$0.015

2,000 × $1.50 / 1M = $0.003, plus 8,000 × $0.375 / 1M = $0.003 for cached input, plus $0.009 for output.

A long-document call: a 250,000-token prompt and 4,000 output tokens, so the whole request is on the 200K+ tier

$0.786

250,000 × $3.00 / 1M = $0.75 for input, plus 4,000 × $9.00 / 1M = $0.036 for output.

grok-4.6 costs the same on APIMODELS in both tiers, and grok-4.5 is $1.275 / $4.25 per 1M tokens. You pay only for the tokens you use, and failed requests are not billed.

Grok 4.7 vs Grok 4.6, GPT-5.6 Sol and Claude Fable 5.1 in SpaceXSI's published results

These scores come from the table in SpaceXSI's Grok 4.7 launch post of 21 September 2026. SpaceXSI ran Grok 4.7 at xhigh effort (high on DeepSWE v1.1), Grok 4.6 at high, and GPT-5.6 Sol and Claude Fable 5.1 at their maximum settings. They are vendor-published numbers, not our own tests.

BenchmarkGrok 4.7 (xhigh)Grok 4.6 (high)GPT-5.6 Sol (max)Claude Fable 5.1 (max)
CursorBench 4.0 (software engineering)46.3%40.4%41.7%51.8%
DeepSWE v1.1 (software engineering)71.0% (high)65.2%72.7%70.0%
EEBench (electrical engineering)64.0%53.0%39.4%56.4%
AA Briefcase v1.1 (multi-hour office work)1,6571,5461,4871,678
Terminal-Bench 4.0 (multi-hour terminal work)37.6%20.3%37.3%57.9%
Harvey Legal Agent Benchmark (legal work)19.6%15.8%2.5%6.7%
HealthBench Professional (clinical reasoning)56.7%48.5%60.5%62.1%

Grok 4.7 is ahead of Grok 4.6 on all seven rows and has the top score in the table on EEBench and the Harvey Legal Agent Benchmark. Claude Fable 5.1 scores higher on CursorBench 4.0, AA Briefcase v1.1, Terminal-Bench 4.0 and HealthBench Professional, and GPT-5.6 Sol scores higher on DeepSWE v1.1 and HealthBench Professional. In the same post SpaceXSI reports a GDPval Elo of 1,695 for Grok 4.7 against 1,605 for Grok 4.6.

On APIMODELS, Grok 4.7 and Grok 4.6 both cost $1.50 / $4.50 per 1M tokens. To compare them on your own prompts, change the model field and run both.

Grok 4.6 model page →

Sources for Grok 4.7

Model facts, SpaceXSI prices and benchmark scores on this page come from SpaceXSI's own pages, checked on 1 December 2026; SpaceXSI's developer docs now live at docs.grok.com. The APIMODELS prices and everything marked as tested are our own.

  • Grok API docs: models and pricing ↗

    grok-4.7 at $2.00 input / $6.00 output per 1M tokens, 500K context, described as the most capable model SpaceXSI has built and recommended for code and chat; knowledge cutoff May 2026. Checked 2026-12-01.

  • Grok API docs: grok-4.7 model page ↗

    Text and image input, text output; function calling, structured outputs and reasoning; efforts low to xhigh with high as the default; cached input $0.50; from 200K prompt tokens, $4.00 input / $1.00 cached / $12.00 output. Checked 2026-12-01.

  • Grok API docs: release notes ↗

    21 September 2026 entry: grok-4.7 is available on SpaceXSI's API, with a 500K context window and no text output limit. Checked 2026-12-01.

  • Grok API docs: reasoning ↗

    Default effort high on grok-4.7; reasoning cannot be disabled and "none" returns 400; presence_penalty, frequency_penalty and stop are not supported. Checked 2026-12-01.

  • Grok 4.7 launch post ↗

    21 September 2026: a new, larger base model than Grok 4.6 and a longer reinforcement-learning run; source of the benchmark table and the GDPval Elo figures above. Checked 2026-12-01.

TL;DR Grok 4.7 is a SpaceXSI large language model, callable via APIMODELS' unified API (model name `grok-4.7`). Pricing: Input: $1.50, Output: $4.50 per 1M tokens. One API key for all image / video / LLM / audio models.

About Grok 4.7

Grok 4.7 is a Large Language Model API provided by SpaceXSI. Grok 4.7 is the newest Grok model from SpaceXSI (formerly xAI), released on the company's API on 21 September 2026. On APIMODELS it costs $1.50 per 1M input tokens and $4.50 per 1M output tokens, with cached input at $0.375, for prompts under 200K tokens — 25% below SpaceXSI's official $2.00 / $6.00 / $0.50 for that tier (checked on 1 December 2026). Once a prompt reaches 200K tokens, cached tokens included, the whole request bills at $3.00 input / $9.00 output / $0.75 cached, against SpaceXSI's $4.00 / $12.00 / $1.00 — again 25% lower. Both tiers are the same as grok-4.6 here. SpaceXSI calls it the most capable model it has built and recommends it for code and chat. According to SpaceXSI's documentation it has a 500,000-token context window, takes text and images and returns text, supports function calling and structured outputs, and offers four reasoning-effort levels: low, medium, high (the default) and xhigh. Its knowledge cutoff is May 2026. SpaceXSI says Grok 4.7 is built on a new, larger base model than Grok 4.6, trained with a longer reinforcement-learning run weighted toward tasks that take hours, and that it checks its own work more carefully. In SpaceXSI's published results (Grok 4.7 at xhigh effort, Grok 4.6 at high) it scores 46.3% on CursorBench 4.0 against 40.4%, 37.6% on Terminal-Bench 4.0 against 20.3%, and 1,695 GDPval Elo against 1,605. On 1 December 2026 we verified it on APIMODELS through the OpenAI-compatible /v1/chat/completions, both streaming and non-streaming (stream_options.include_usage returns usage), with parallel tool calls while streaming, image input via image_url, prompt caching billed at the cached rate, and reasoning_effort; /v1/responses works too. Reasoning is always on and reasoning tokens are billed as output, so a bill can be larger than the visible answer. Live web search does not run on /v1/chat/completions. Not every request succeeds, and failed requests are never billed. Through APIMODELS platform, you can access this model via a unified API with transparent pay-as-you-go pricing. Current pricing: Input: $1.50, Output: $4.50 per 1M tokens.

Key Features

  • 25% Below SpaceXSI Official -- Prompts under 200K tokens: $1.50 input / $4.50 output / $0.375 cached per 1M, against SpaceXSI's $2.00 / $6.00 / $0.50. From 200K tokens (cached ones count), the whole request: $3.00 / $9.00 / $0.75 against $4.00 / $12.00 / $1.00. Checked 1 Dec 2026
  • Newest Grok, Larger Base Model -- Released 21 Sep 2026. SpaceXSI: a new, larger base model than Grok 4.6 and a longer RL run on multi-hour tasks; recommended by SpaceXSI for code and chat
  • Ahead of Grok 4.6 in SpaceXSI Tests -- CursorBench 4.0 46.3% vs 40.4%, Terminal-Bench 4.0 37.6% vs 20.3%, GDPval Elo 1,695 vs 1,605 (4.7 at xhigh, 4.6 at high; published by SpaceXSI)
  • 500K Context, Image Input -- Text and images in, text out; function calling and structured outputs; knowledge cutoff May 2026 (per SpaceXSI docs)
  • Verified on APIMODELS -- Tested 1 Dec 2026: chat completions with streamed usage, parallel tool calls while streaming, image_url input, /v1/responses, prompt caching and reasoning_effort
  • Know Before You Call -- Reasoning is always on (default high) and bills as output. No live web search on /v1/chat/completions. Failed requests are not billed

Use Cases

Coding Agents and Repository Changes

SpaceXSI recommends Grok 4.7 for code, and in its published results it scores 46.3% on CursorBench 4.0, up from 40.4% for Grok 4.6. Limit: the context is 500K tokens, so very large monorepos still need file selection.

Long Agent Loops With Tools

Define functions and let Grok 4.7 call several of them in parallel inside one streamed response, which we verified on 1 Dec 2026. Limit: reasoning is always on, and its tokens bill as output at $4.50 per 1M ($9.00 once the prompt reaches 200K tokens).

Professional Documents and Knowledge Work

SpaceXSI reports 64.0% on EEBench and 19.6% on the Harvey Legal Agent Benchmark, ahead of Grok 4.6 on both. Limit: these are vendor numbers, so test on your own documents before relying on it.

Questions About Screenshots and Scans

Send an image as image_url in the same chat request and ask about a UI, a chart or a photographed page; image input is verified on APIMODELS. Limit: the output is text only.

Assistants With Long System Prompts

Keep the same long system prompt or reference pack at the start of every request: the repeated prefix is cached and bills at $0.375 per 1M input tokens instead of $1.50. Limit: only an identical prefix is cached, and cached tokens still count toward the 200K-token mark, above which the whole request bills at $3.00 / $9.00 (cached $0.75).

Not for Live News or Web Research

Live web search does not run on /v1/chat/completions, and SpaceXSI lists a May 2026 knowledge cutoff. For answers grounded in current sources, use a model with web search on /v1/responses, such as qwen4-max, with the same key.

Why APIMODELS

  • Unified API -- One API key to access all models, no need to register on multiple platforms
  • Transparent Pricing -- Pay-as-you-go with per-call pricing published on every model page, ideal for indie developers and startups
  • Instant Access -- Start right after signup; pay by card, PayPal, Alipay or USDT
  • Full Documentation -- Detailed API docs with code examples in cURL, Python, and Node.js

Frequently Asked Questions

What is the difference between APIMODELS and the official SpaceXSI API?

It is the same Grok 4.7 model, served through the APIMODELS multimodal API gateway. One API key and one balance cover it and every other model, so you do not need a separate account with each provider; failed calls are not charged, and where a model runs on more than one channel, a failed request moves to another one automatically.

How much does the Grok 4.7 API cost, and how does it compare with SpaceXSI?

On APIMODELS grok-4.7 costs $1.50 per 1M input tokens, $4.50 per 1M output tokens and $0.375 per 1M cached input tokens when the prompt is under 200K tokens; SpaceXSI lists $2.00 / $6.00 / $0.50 for that tier (checked on 1 December 2026), so all three rates are 25% lower here. Once a prompt reaches 200K tokens, cached tokens included, the whole request is billed at $3.00 / $9.00 / $0.75 against SpaceXSI's $4.00 / $12.00 / $1.00 — again 25% lower. Both tiers are the same as grok-4.6 on APIMODELS; grok-4.5 is $1.275 / $4.25. You pay as you go, only for the tokens you use, and failed requests are never billed.

How do I call grok-4.7? Show the shortest example.

POST https://api.apimodels.app/v1/chat/completions with Authorization: Bearer YOUR_API_KEY and the body {"model":"grok-4.7","messages":[{"role":"user","content":"..."}]}. It is the standard OpenAI format, so openai-python and openai-node work once base_url is https://api.apimodels.app/v1. For streaming add "stream": true, plus "stream_options": {"include_usage": true} if you want token usage in the final chunk. /v1/responses accepts grok-4.7 too. No SpaceXSI account is needed, and the same APIMODELS key reaches the other 180+ models on the site.

What changed from Grok 4.6, and which one should I use?

SpaceXSI says Grok 4.7 is built on a new, larger base model, trained with a longer reinforcement-learning run on tasks that take hours, and checks its own work more carefully. In SpaceXSI's published results (4.7 at xhigh effort, 4.6 at high) it scores 46.3% vs 40.4% on CursorBench 4.0, 37.6% vs 20.3% on Terminal-Bench 4.0, 71.0% (4.7 at high on this one) vs 65.2% on DeepSWE v1.1, and 1,695 vs 1,605 GDPval Elo. Both cost $1.50 / $4.50 here, so grok-4.7 is the sensible default for new work; keep grok-4.6 where a workflow is already tuned on it, and use grok-4.5 ($1.275 / $4.25) when price matters more than depth. Switching is a one-field change.

Which reasoning-effort levels does Grok 4.7 have, and how are reasoning tokens billed?

reasoning_effort takes low, medium, high or xhigh, and high is the default. Per SpaceXSI's docs, reasoning cannot be turned off on grok-4.7, and "none" is rejected with a 400 error. Reasoning tokens are billed as output — $4.50 per 1M, or $9.00 once the prompt reaches 200K tokens — so a short answer can cost more than its visible length suggests; low or medium is enough for simple calls. We confirmed on APIMODELS on 1 December 2026 that reasoning_effort is applied.

Do tool calling, streaming and image input work?

Yes. On 1 December 2026 we tested grok-4.7 on APIMODELS with non-streaming and streaming chat completions, several tool calls issued in parallel inside one streamed response, and an image passed as image_url. SpaceXSI also lists structured outputs for this model. Existing OpenAI function-calling code works as written: send tools and tool_choice, then read tool_calls.

How does prompt caching work, and what does a cached token cost?

Repeated prompt prefixes, such as a long system prompt or the earlier turns of a conversation, are cached, and cached input tokens bill at $0.375 per 1M instead of $1.50 ($0.75 instead of $3.00 once a prompt reaches 200K tokens; cached tokens count toward that threshold). We confirmed on 1 December 2026 that cached tokens are billed at that rate on APIMODELS. Keep the start of each request identical and put the part that changes at the end to get more cache hits.

What are the limits of Grok 4.7?

The context window is 500,000 tokens and the output is text only; SpaceXSI lists May 2026 as the knowledge cutoff. Live web search does not work on /v1/chat/completions, so do not rely on it for current events. SpaceXSI documents presence_penalty, frequency_penalty and stop as unsupported on current Grok reasoning models. Not every request succeeds: a server error or a content-safety refusal can fail a call, and failed requests are not billed.

What can Grok 4.7 do?

Grok 4.7 supports: Newest Grok, Coding & Agents, Tool Calling, 500K Context, Vision. See the APIMODELS docs for full parameters and call examples.

Can I use the Grok 4.7 API from any country, including mainland China?

Yes. APIMODELS does not restrict access by country: the site and the API answer requests from anywhere, and apimodels.app and api.apimodels.app are reachable directly from mainland China without a proxy. You call Grok 4.7 with one APIMODELS key, so you do not need a separate account with the model's developer.

What payment methods are supported? Can I pay with PayPal or crypto?

Yes to both. You can top up with a card (Visa, Mastercard and others, through Stripe), PayPal, Alipay, or USDT on TRON (TRC20) or BNB Smart Chain (BEP20). Card, PayPal and Alipay top-ups are credited immediately; USDT is credited once the transfer confirms on-chain. Auto top-up is optional, and a $50 top-up adds a $1 bonus ($3 on a $100 top-up). The balance is in USD and billed per use, with no subscription.

Related models

Related reading

How to get access, regional availability, and how this model compares with its alternatives.