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.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
| Benchmark | Score | What it measures | Source | Retrieved |
|---|---|---|---|---|
| Humanity's Last Exam | 35% | Expert-level questions across many domains | Source | July 12, 2026 |
| GPQA Diamond | 90.1% | Google-proof graduate science questions (hardest subset) | Source | July 12, 2026 |
| Intelligence | 25.4 | Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial Analysis | Source | September 12, 2026 |
| Coding | 42.2 | Composite score across standardised coding evaluations, measured independently by Artificial Analysis | Source | September 12, 2026 |
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.
Core technical parameters you need before writing a single line of integration code.
How Grok 4.3 stacks up on the benchmarks that actually matter for production applications.
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.
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.
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.
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.
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.
Grok 4.3 works well across a wide range of production scenarios. Here's where it genuinely earns its place.
01 Agentic workflowsGrok 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 analysisA 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 intelligenceWith 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 & reviewThe 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 pipelinesStrict 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 jobsAt 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.
An honest side-by-side across the dimensions that matter most when choosing a flagship model for production.
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.
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.
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.
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.
Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.
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.
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 playgroundLorem 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)
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Grok 4.3 This page | Coding + agents | |||
| Reasoning + agents | ||||
| Balanced coding + agents | ||||
| Long-context, multimodal & agentic workflows | ||||
| Reasoning + agents |
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 .