Grok 4.7

Neural Network

SpaceXAI's Grok 4.7 is a flagship model for code and agentic tasks that verifies its own work

Specifications

Input
text, images, documents
Output
text
Context size
500 000 tokens
Max answer length
450 000 tokens
Reasoning effort
low, medium, high, extra high
Capabilities
function calling
1,92 $

Prompt cost

(per 1M tokens)

5,76 $

Answer cost

(per 1M tokens)

*Prices are shown for API usage via ECO providers.
bothub
BotHub: Try neural networks for freebot

Caps remaining: 0 CAPS
Code example and API for Grok 4.7We offer full access to the OpenAI API through our service. All our endpoints fully comply with OpenAI endpoints and can be used both with plugins and when developing your own software through the SDK.Create API key
import OpenAI from 'openai';
const openai = new OpenAI({
  apiKey: '<your bothub access token>',
  baseURL: 'https://openai.bothub.chat/v1'
});


// Sync - Text generation 

async function main() {
  const chatCompletion = await openai.chat.completions.create({
    messages: [{ role: 'user', content: 'Say this is a test' }],
    model: 'grok-4.7:batch',
  });
} 

// Async - Text generation 

async function main() {
  const stream = await openai.chat.completions.create({
    messages: [{ role: 'user', content: 'Say this is a test' }],
    model: 'grok-4.7:batch',
    stream: true
  });

  for await (const chunk of stream) {
    const part: string | null = chunk.choices[0].delta?.content ?? null;
  }
} 
main();
illustaration

How it works Grok 4.7?

Grok 4.7 is SpaceXAI's flagship model, succeeding Grok 4.6, built for code, agentic scenarios, and applied knowledge work. Its strength lies in long-term development tasks: the model maintains context during extensive edits, verifies its own output, and refines changes to a working state rather than stopping at the first draft. In BotHub, this model opens in a single window alongside others: you can switch between Grok 4.7 and other models, compare responses, and avoid rewriting integrations if using the unified OpenAI-compatible API. Access from Russia requires no VPN or foreign cards; payment is in rubles on a pay-as-you-go basis, and purchased tokens do not expire. Data is transmitted with AES-GCM encryption and is not stored. Teams have access to contracts, invoices, electronic document management (EDO), an admin panel, and limits. The model is useful for refactoring large projects, debugging, long agentic chains, analytics, document preparation, engineering tasks requiring self-verification, and knowledge work involving large volumes of material.

Frequently asked questions about Grok 4.7

You can use generated results for commercial purposes. You own all rights to the content you create. The only restriction: make sure your prompt does not include copyrighted third-party material. You are responsible for respecting the rights to any input data.

The model works with text, images, and documents, supporting function calling and structured output. A context window of up to 500,000 tokens allows loading large materials in full without splitting. It is suitable for parsing documentation, code analysis, extracting data from tables and scans, and batch processing tasks via API.

The output limit is 450,000 tokens with an input context of up to 500,000 tokens. This means you can generate a long report, a voluminous document, or a large code fragment in one pass without breaking the work into stages. The exact volume in characters depends on the language and text structure.

There is no specific mention of a step-by-step reasoning mode in our data, so we cannot promise it. However, the model has an EFFORT parameter that sets the depth of query processing. For multi-step tasks, it makes sense to test the behavior with your own examples.

Yes, function calling and structured JSON output are supported. The model can be connected to external services and databases, and responses can be received in a format that is immediately parsable by code. This is convenient for agents, automation of integrations, and extracting fields from documents according to a specified schema.

Images and documents, yes; the model accepts them as input along with text, which is convenient for parsing scans, tables, and PDFs. There is no information in our data regarding audio and video, so we cannot confirm their support; such scenarios should be tested separately with your files.

There are no specific measurements for the Russian language in our data, so we do not provide a specific rating. The model is designed to work with text in various languages, but whether the result suits your needs is best verified with your own examples—instructions, documents, and code.

Support ServiceOpen from 10:00 to 18:00 MSK