Grok 4.3 API

x-ai/grok-4-3
Grok 4.3 is a fast multimodal AI model built for real-time reasoning, coding, live web awareness, and large-context workflows.
Context
1M tokens
Input
$1.625 / 1M tokens
Output
$3.25 / 1M tokens
Released
May 5, 2026

How to use Grok 4.3 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to x-ai/grok-4-3.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "x-ai/grok-4-3",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "x-ai/grok-4-3",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"x-ai/grok-4-3","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Grok 4.3 API Pricing

TypePrice
Input
$1.625 / 1M tokens
Output
$3.25 / 1M tokens
Cached input
$0.26 / 1M tokens

Grok 4.3 Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Humanity's Last Exam
35%
Expert-level questions across many domainsSourceJuly 12, 2026
GPQA Diamond
90.1%
Google-proof graduate science questions (hardest subset)SourceJuly 12, 2026
Intelligence
25.4
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Coding
42.2
Composite score across standardised coding evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026

Overview

What is Grok 4.3 API?

Where the Grok 4.20 series introduced the four-agent collaboration architecture and a 2M-token context window, Grok 4.3 focused on refining what that foundation actually costs to run — and made a strong argument that intelligence and affordability don't have to trade off against each other.

On the Artificial Analysis Intelligence Index, Grok 4.3 scores 53, well above the peer-group average of 34, while costing roughly 20% less to evaluate than its predecessor, Grok 4.20. That's a rare combination. Most model upgrades either push performance at the expense of price, or cut cost at the expense of quality. Grok 4.3 moves both metrics in the right direction simultaneously.

Model specifications

Core technical parameters you need before writing a single line of integration code.

Context window
1,000,000 tokens (1M)
Output speed
207 t/s well above reasoning-tier median (60 t/s)
Time to first token
12.65s
Input modalities
Text + Image JPG and PNG accepted
Output modalities
Text Structured output & JSON mode supported
Knowledge cutoff
Nov 2024 Use search tools for real-time data
Function calling
Yes Full tool use support
Release date
Apr 30, 2026

Benchmark performance

How Grok 4.3 stacks up on the benchmarks that actually matter for production applications.

AA Intelligence Index
53 / 100 Peer average: 34 — places Grok 4.3 significantly above median
GDPval-AA Agentic ELO
1,500 ELO +321 ELO vs. Grok 4.20 — largest single benchmark gain
Output generation speed
207 t/s Reasoning-tier median: 60 t/s — Grok 4.3 is ~3.4× faster
AA-Omniscience Accuracy
+8 pts vs. 4.20 Gains in factual accuracy; small trade-off in non-hallucination rate
Cost efficiency (Intelligence Index)
$395 total ~20% cheaper than Grok 4.20 to run the full eval suite

Key capabilities

Native reasoning

Grok 4.3 includes a deliberate reasoning mode that works through multi-step problems before delivering a final answer. It slows latency slightly but measurably improves accuracy on math, code debugging, and complex analysis chains — the kind where getting it right once beats getting it fast and wrong.

Vision (image input)

The model accepts JPEG and PNG images alongside text in any order. This covers document parsing, chart interpretation, screenshot analysis, and visual question answering. Images found during search operations are billed per image token; images passed directly in messages follow standard pricing.

Structured output & JSON mode

Grok 4.3 supports strict structured output — you define a JSON schema and the model conforms to it, eliminating the need for post-processing parsers or retry logic. This is particularly useful for pipelines that ingest model output programmatically, from CRM automation to data extraction.

Real-time search integration

Out of the box, Grok's training data cuts off at November 2024. Enable the Web Search or X Search server-side tools to bring in live data — breaking news, trending topics, up-to-date pricing, or anything else that's changed since the model's knowledge cutoff.

Long context — 1M tokens

A 1-million-token context window means you can feed in entire codebases, lengthy legal documents, research libraries, or extended conversation histories without chunking. RAG pipelines, compliance tools, and large-scale document analysis all benefit from not having to pre-filter what goes into the prompt.

API Pricing

Up to 200K Context Tokens
  • Input: $1.625 / 1M tokens
  • Cached Input: $0.26 / 1M tokens
  • Output: $3.25 / 1M tokens
Over 200K Context Tokens
  • Input: $3.25 / 1M tokens
  • Cached Input: $0.52 / 1M tokens
  • Output: $6.50 / 1M tokens

What to build with it

Grok 4.3 works well across a wide range of production scenarios. Here's where it genuinely earns its place.

01 Agentic workflows

Grok 4.3's 321-point ELO jump on GDPval-AA signals something real about agentic capability. Tasks requiring multi-step tool calls, self-directed planning, and error recovery are exactly where this model has improved most. Orchestration pipelines, research agents, and autonomous code review bots are strong fits.

02 Legal & contract analysis

A 1M-token context window changes what's possible for document-heavy workloads. Rather than chunking a 400-page contract into fragments, you feed it whole — and get analysis that understands cross-references, contradictions, and clause dependencies that chunk-based approaches miss.

03 Real-time content intelligence

With X Search enabled, Grok 4.3 can answer questions about what's happening right now — trending topics, social sentiment, breaking industry news. Media teams, investment analysts, and market researchers have an edge here that static-knowledge models simply can't match.

04 Code generation & review

The reasoning mode is particularly valuable for debugging and architecture review — it works through the problem visibly rather than pattern-matching to an answer. Developers using Grok 4.3 in their CI/CD pipelines report better explanations alongside the fixes, which matters when a junior engineer has to understand what changed and why.

05 Data extraction pipelines

Strict JSON mode and reliable schema adherence make Grok 4.3 a sensible choice for structured extraction jobs — invoice parsing, form digitization, database population from unstructured reports. You define the schema once; the model conforms to it consistently.

06 High-throughput batch jobs

At 207 tokens per second — more than three times faster than the reasoning-model median — Grok 4.3 handles volume. Classification jobs, summarization queues, and nightly report generation run meaningfully faster, which translates directly into lower wall-clock time and more predictable billing.

How Grok 4.3 compares

An honest side-by-side across the dimensions that matter most when choosing a flagship model for production.

Grok 4.3
Claude Sonnet 4.6
GPT-5.4 mini
Gemini 3.1 Pro
Intelligence Index
53
~51
~49
~50
Context window
1M tokens
200K
128K
1M tokens
Output speed
207 t/s
~75 t/s
~120 t/s
~80 t/s
Image input
✓
✓
✓
✓
Function calling
✓
✓
✓
✓
Real-time web search
✓
✓
–
✓

Frequently asked questions

Is Grok 4.3 an upgrade over Grok 4.20?

Yes, .xAI now recommends grok-4.3 for all API use cases. It scores higher on the Intelligence Index, costs less to run, and shows dramatically better agentic task performance. The only scenario where you might stay on 4.20 is if you've already benchmarked it against your specific production prompts and measured better results there. But for most teams, 4.3 is the better choice.

What's the difference between grok-4.3 and grok-4.3-latest?

The bare grok-4.3 alias points to the current stable version. The grok-4.3-latest alias tracks the most recent checkpoint, which may include improvements but also introduces the possibility of behavior changes. For regulated or audited applications, pin to a date-stamped model string.

Can I use Grok 4.3 for real-time search tasks?

The base model's knowledge cuts off at November 2024. To incorporate live data, you need to enable server-side search tools — either Web Search (general web indexing) or X Search (real-time posts from X, formerly Twitter). These are billed as tool invocations in addition to token usage. Without them, the model will not have access to current events.

How should I handle the verbose output tendency?

The most effective approach is explicit prompting — tell the model what length you want. Instructions like "respond in three sentences or fewer," "use bullet points with no explanations," or "give the final answer only, no working shown" all work reliably. You can also use max_tokens as a hard ceiling, though combining that with an explicit length instruction in the system prompt gives more predictable results.

‍

Uptime and performance

  • Uptime (24h): 100%
  • Uptime (7d): 100%
  • Availability (24h): 100%
  • Error rate (24h): 0%

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

Grok 4.3 is documented as being suited to contract review, case law research, credit agreement analysis, and financial document Q&A. It is also described as useful for conversational AI, search, chat, and multi-turn workflows.

It is further documented for advanced logic, math, scientific analysis, and multi-step investigations. Another documented use case is agentic workflows that combine reasoning with actions such as web search, code execution, and data retrieval.

It is also described as well suited for long-document analysis and multi-step agent tasks. In addition, it is documented for building reliable, production-grade systems that require automation, data analysis, and end-to-end task orchestration.

Playground

You can try this model in the browser before writing any code: open the AI/ML API playground, select the model and send a prompt. Nothing has to be installed locally — an API key is all you need. The same request is shown as cURL, Python and JavaScript in the code examples on this page, so a prompt that works in the playground can be copied straight into an application.

Open the playground

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.Machine-readable API summary for LLM agents (llms.txt)

Grok 4.3 vs other models

ModelInputOutputContextBest for
Grok 4.3
This page
$1.625 / 1M tokens
$3.25 / 1M tokens
1M tokens
Coding + agents
$6.5 / 1M tokens
$39 / 1M tokens
1M tokens
Reasoning + agents
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Balanced coding + agents
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.95 / 1M tokens
$11.7 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

Grok 4.3 has a 1,000,000 tokens context window and can return up to 1,000,000 tokens.

Grok 4.3 takes image, text as input and returns text.

Use x-ai/grok-4-3 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

Grok 4.3 is priced at input $1.625 / 1M tokens, output $3.25 / 1M tokens, cached input $0.26 / 1M tokens.

Yes, Grok 4.3 can stream responses as they are generated.

Yes, Grok 4.3 accepts image input alongside text.

Grok 4.3 was built by xAI .

Start building with Grok 4.3

Get API Key
1000+ models, one API.