We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

SpaceXAI: Grok 4.20

x-ai/grok-4.20
TextInput: text · image · fileToolsReasoning2MAdded Mar 31, 2026

Try SpaceXAI: Grok 4.20 now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

SpaceXAI: Grok 4.20 at a glance

  • Input price is 178% higher than the median of 434 Text models.
  • Context window of 2,000,000 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • Supports reasoning effort control.
  • Accepts images as input (vision).
  • A typical request (1,000 input / 500 output tokens) costs about $0.00875.

About SpaceXAI: Grok 4.20

SpaceXAI: Grok 4.20 is a text model from xAI, listed on api14 under the model id x-ai/grok-4.20. It is a reasoning model, which means it is built to work through problems step by step rather than only producing an immediate answer. The provider describes it as combining a low hallucination rate with strict prompt adherence, and it is positioned around speed and agentic tool calling. Its knowledge cutoff is 2025-09-01, so anything after that date is outside what the model learned during training.

The model accepts text, images and files as input, and it returns text. Its context window is 2,000,000 tokens, with a maximum output of 1,800,000 tokens. That combination of a very large context and a very large output ceiling means you can supply long documents, large codebases, image inputs and file attachments in a single request, and still leave room for a substantial generated response. Because it is a reasoning model, it can also expose its reasoning, which is useful when you need to inspect how an answer was reached rather than only reading the final text.

Those capabilities point to a fairly specific set of use cases. Long context work such as reviewing entire repositories, contracts, research bundles or multi file datasets fits naturally, since you do not have to chunk aggressively. Image and file inputs make it suitable for document understanding, where a request mixes a scanned page or screenshot with instructions. Agentic tool calling and structured outputs suit pipelines that need the model to call functions, return machine readable results, or drive multi step workflows. Reasoning output helps in debugging, evaluation and any task where the intermediate steps matter.

You call it through api14's OpenAI-compatible API using the model id x-ai/grok-4.20, so existing OpenAI SDK clients and HTTP patterns work with minimal changes. The supported request parameters are include_reasoning, logprobs, max_tokens, reasoning, response_format, seed, structured_outputs, temperature, tool_choice, tools, top_logprobs and top_p. In practice, tools and tool_choice cover function calling, response_format and structured_outputs cover JSON and schema constrained replies, reasoning and include_reasoning control the reasoning behaviour, and seed, temperature, top_p, logprobs and top_logprobs give you control over sampling and token level inspection.

There is no stated limitation in the facts beyond the knowledge cutoff and the text only output modality. If your task requires audio or video output, or knowledge after 2025-09-01 without retrieval, another model or an added retrieval layer may fit better. For text generation, long context analysis, document and image understanding, and tool driven agent workflows, Grok 4.20 is a reasonable default to evaluate.

How to call the SpaceXAI: Grok 4.20 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "x-ai/grok-4.20".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "x-ai/grok-4.20",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

include_reasoninglogprobsmax_tokensreasoningresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_logprobstop_p

Specifications

Context length
2,000,000
Max output
1,800,000
Input
text, image, file
Output
text
Knowledge cutoff
2025-09-01

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

SpaceXAI: Grok 4.20: frequently asked questions

How much does the SpaceXAI: Grok 4.20 API cost?
SpaceXAI: Grok 4.20 costs Input $4.38 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of SpaceXAI: Grok 4.20?
SpaceXAI: Grok 4.20 reads up to 2,000,000 tokens per request: prompt, history and documents together. It writes up to 1,800,000 output tokens per response.
What can SpaceXAI: Grok 4.20 do?
SpaceXAI: Grok 4.20 accepts text, image, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call SpaceXAI: Grok 4.20 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "x-ai/grok-4.20". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to SpaceXAI: Grok 4.20?
Comparable Text models at a similar price: SpaceXAI: Grok 4.3, SpaceXAI: Grok 4.20 Multi-Agent, StepFun: Step 5 Preview. Each runs through the same API key, so switching is one string.

SpaceXAI: Grok 4.20 community

New topic

This community has no topics yet. Open the first one about SpaceXAI: Grok 4.20.