APIMart
Back to all models

Grok 4.3 API

xAIModel ID grok-4.3Text model

Use Grok 4.3 to pick the right tool and arguments for a support ticket, turn order emails into fixed JSON fields, or answer a question across a whole policy handbook.

Max input
1,000,000 tokens
Max output
1,000,000 tokens
Input → output
Text, Image → Text
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Grok 4.3 API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Grok 4.3.

Try Grok 4.3 with your own material

Tool-calling agents

Describe your tools with the standard tools parameter and let Grok 4.3 choose which one to call and with what arguments. Log each call and check the arguments against your API schema before it runs anything that changes data.

Example: Which tool should handle this ticket?

Material

Tools
get_order(order_id) · refund_order(order_id, reason) · update_address(order_id, address)
Customer
Order 58213 arrived with a cracked screen. I’d like my money back, please.

PromptUsing the available tools and the customer message, choose one tool call and fill in its arguments. If information is missing, ask for it instead of guessing.

Sample answer · written by hand to show the reasoning

Call refund_order with order_id "58213" and reason "Item arrived damaged (cracked screen)". The customer gave the order number and a clear reason, so no follow-up question is needed. If your policy requires a photo for damage refunds, call get_order first and ask for the photo before refunding.

About the Grok 4.3 API

  • Fast, with strong tool calling

    xAI describes Grok 4.3 as a fast, reliable model with strong tool calling and instruction following, and prices it below Grok 4.6 and 4.7 per token.

  • 1M-token context

    Grok 4.3 has a 1,000,000-token context window, twice that of Grok 4.5, 4.6 and 4.7, so a full handbook or a long log fits in one request.

  • Reasoning you can switch off

    Reasoning effort defaults to low and can be set to none. Since May 15, 2026, xAI redirects retired IDs such as grok-3 and grok-4-1-fast to grok-4.3.

  • Grok 4.3 API key and access

    You don’t need a separate Grok 4.3 API key: one APIMart key works for every model. Check the Grok 4.3 pricing table on this page, then call an OpenAI Chat Completions-compatible endpoint with the model ID grok-4.3.

How to call the Grok 4.3 API

To call Grok 4.3, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-4.3",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Grok 4.3 access details

Model IDgrok-4.3
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Grok 4.3 API request parameters

Grok 4.3 uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use grok-4.3 for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Grok 4.3 API pricing

The Grok 4.3 API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input10Credits~$19.5Credits~$0.959Credits~$0.912.5Credits~$1.2520%
Cached input1.6Credits~$0.161.52Credits~$0.1521.44Credits~$0.1442Credits~$0.220%
Output20Credits~$219Credits~$1.918Credits~$1.825Credits~$2.520%

Prices are for reference only. View full pricing

Why call Grok 4.3 API through APIMart

  • 20% below official pricing

    Grok 4.3 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below xAI's official prices, and cached input costs just $0.16 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Grok 4.3, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Grok 4.3 with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which xAI model should you choose?

Base prices per 1M tokens (USD). Your Grok 4.3 API key works for every model in the table; just change the model parameter.

Differences between xAI models
ComparisonGrok 4.3 CurrentGrok 4.5Grok 4.6Grok 4.7
Best forTool calling, Instruction following, 1M-token contextCoding agents, Engineering workflows, Knowledge workLong-running agents, Interactive front-end work, Knowledge workAgentic coding, Legal and office work, Engineering calculations
Max input1,000,000 tokens500,000 tokens500,000 tokens500,000 tokens
Max output1,000,000 tokens500,000 tokens128,000 tokens128,000 tokens
Knowledge cutoff———May 2026
Input price$1$1.6$1.6$1.6
Output price$2$4.8$4.8$4.8

Grok 4.3 FAQ

Should I use Grok 4.3 or Grok 4.7?

Use Grok 4.3 for high-volume work such as tool calling, extraction and long-document questions, where a lower per-token price, a 1,000,000-token context window and the option to switch reasoning off matter most. Use Grok 4.7, which xAI calls the most capable model it has built, for hard coding and long-running agent tasks; its context window is 500,000 tokens and reasoning is always on. Both share one API key on APIMart, so you only change the model parameter.

Can I turn off reasoning on Grok 4.3?

Yes. According to xAI’s docs, Grok 4.3 reasoning effort defaults to low and can be set to none to turn reasoning off; low, medium and high give it progressively more room to think. For simple extraction or classification, none or low keeps replies fast.

My code still calls grok-3 or grok-4-1-fast. What should I change?

On xAI’s own API, since May 15, 2026, requests to grok-3, grok-4-0709, grok-4-fast-reasoning, grok-4-fast-non-reasoning, grok-4-1-fast-reasoning and grok-4-1-fast-non-reasoning are redirected to grok-4.3 and billed at its rates; reasoning IDs run at low effort and non-reasoning IDs at none. On APIMart, set the model parameter to grok-4.3, and set reasoning effort to none or low to match the behaviour you had before.

Can Grok 4.3 access real-time information?

Not by itself. According to xAI’s docs, Grok models have no real-time knowledge unless xAI’s server-side search tools (Web Search and X Search) are enabled. The examples on this page do not include search tools, so when you need current information, put the relevant material in the request.

Why is the APIMart output limit different from xAI’s documentation?

xAI does not publish a fixed text output limit for Grok 4.3; its docs give only the 1,000,000-token context window. For calls through APIMart, use the limit shown on this page: 1,000,000 tokens per request.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Grok 4.3 in the text category to start exploring.

Which model ID does the Grok 4.3 API use?

Set model to grok-4.3. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of Grok 4.3?

On APIMart, Grok 4.3 accepts up to 1,000,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Grok 4.3 can output up to 1,000,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Grok 4.3 API cost?

The Grok 4.3 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $1 per million input tokens and $2 per million output tokens. Diamond: $0.9 per million input tokens and $1.8 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.