NewHow we catch a seller listing the wrong model, and refund you if one does.

Cheapest Grok API: below xAI on 4 of 4 models (November 2026)

Updated November 20, 2026, 11:00 UTC. MartLLM prices are read live when the page is built (every hour); other providers' prices were checked November 19, 2026 or read from their public price lists at build. MartLLM wrote this page and is one of the providers in it.

On November 20, 2026, MartLLM was below xAI’s own price on both input and output for 4 of the 4 Grok models we compared, with MartLLM’s card fee added. Among the real-time prices in the table, MartLLM was lowest on 5 of the 5 models. MartLLM prices are the best seller’s price now; they move during the day.

Some MartLLM prices here are more than 70% below list. They are what buyers were billed, not errors. Why so cheap?

ProviderHow you payPrice against xAI’s
MartLLMPer token, prepaid; 5.5% + $0.50 card fee when adding creditBelow it on 4 of 4 models (card fee added)
xAI APIPer token, direct from xAIThe list price
OpenRouterPrepaid credit; 5.5% when buying creditAgainst xAI’s price: the same on 4 of 4
Vercel AI GatewayCredit in your Vercel accountAgainst xAI’s price: the same on 4 of 4
RequestyPrepaid; 5% on model costs, added when you top upAgainst xAI’s price: the same on 4 of 4

MartLLM first, then xAI’s own API, then the other providers that list these models. The table below shows, model by model, who is lowest. An empty cell means we could not confirm it on the provider's own pages.

Grok prices, model by model ($ per 1M input / output tokens)

ModelMartLLMxAIOpenRouterVercel AI GatewayRequesty
Grok 4.7Why so cheap?$0.5674 / $1.7021$2.00 / $6.00$2.00 / $6.00$2.00 / $6.00$2.00 / $6.00
Grok 4.3Why so cheap?$0.0124 / $0.0248$1.25 / $2.50$1.25 / $2.50$1.25 / $2.50$1.25 / $2.50
Grok 4.20 Multi-Agent Beta$0.639 / $1.2735$1.25 / $2.50
Grok 4.5Why so cheap?$0.567 / $1.6984$2.00 / $6.00$2.00 / $6.00$2.00 / $6.00$2.00 / $6.00
Grok 4.6$0.9999 / $2.9954$2.00 / $6.00$2.00 / $6.00$2.00 / $6.00$2.00 / $6.00

MartLLM: the best seller’s price, read November 20, 2026; the 5.5% card fee is not in the cell. xAI: its own pricing page, checked November 19, 2026; an empty cell means its page does not list that model. OpenRouter, Vercel AI Gateway and Requesty: each one’s public model list, read when this page was built.

Each provider, good and bad

MartLLM

Pick it if: You want Grok below xAI’s price, billed per request with no plan, and the same key for every other model.

Watch for: Requests go to third-party providers, not to xAI directly: if you need xAI’s own data terms, use its API. The price is a market price and can be higher when the lower-priced sellers are busy (cap it with provider.max_price).

Source: MartLLM Grok prices (live, November 20, 2026)

xAI API

Pick it if: You want xAI’s own service and its newest Grok models first.

Watch for: A prompt of 200k tokens or more is billed at double the price for every token in the request.

Source: xAI pricing (checked 2026-11-19)

OpenRouter

Pick it if: You already use OpenRouter for other models and want automatic failover.

Watch for: Its 5.5% credit fee comes on top of the prices in the table.

Source: OpenRouter pricing, its model list (checked 2026-11-19)

Vercel AI Gateway

Pick it if: Your app runs on Vercel or uses the AI SDK.

Watch for: No markup on provider token prices, so no saving per token either.

Source: Vercel AI Gateway pricing, its model list (checked 2026-11-19)

Requesty

Pick it if: You want routing rules, fallbacks and per-team spend limits.

Watch for: The 5% top-up fee comes on top of the prices in the table.

Source: Requesty pricing, its model list (checked 2026-11-19)

How to switch to MartLLM

MartLLM takes OpenAI-style requests: change the base URL, the key and the model id (Grok ids on MartLLM start with x-ai/).

python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.martllm.com/v1",  # was: https://api.x.ai/v1
    api_key="ull_your_key_here",
)

resp = client.chat.completions.create(
    model="x-ai/grok-4.7",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

No MartLLM fee on requests. Adding credit by card costs 5.5% + $0.50.

Questions

Does the Grok API cost more for long prompts?

Yes. xAI bills a request whose prompt reaches 200k tokens at the higher rate for all of its tokens; for Grok 4.7 that is $4 / $12 per 1M instead of $2 / $6.

Does MartLLM work with the xAI SDK or the OpenAI SDK?

Use the OpenAI SDK: set base_url to https://api.martllm.com/v1, use a MartLLM key and a model id such as x-ai/grok-4.7.

Can I cap what a Grok request costs on MartLLM?

Yes. Send provider.max_price with the most you will pay per million tokens; the request only goes to sellers at or under it.

Are there other fees on MartLLM?

No MartLLM fee on requests. Adding credit by card costs 5.5% + $0.50.