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

What is the Grok API and how do I use it?

The Grok API is xAI’s API for its Grok models: a key is created at console.x.ai, and the base URL is https://api.x.ai/v1. The same models are also served through MartLLM’s OpenAI-compatible API at https://api.martllm.com/v1: on November 20, 2026, 7 Grok models were taking requests there. Grok 4.20 Beta cost $0.375 per million input tokens and $0.75 per million output tokens. A request that fails is not billed. Credit is prepaid, from $5, with no subscription.

Prices as of November 20, 2026, 11:00 UTC. This page is rebuilt every hour.

ModelInput / 1M tokensOutput / 1M tokensBelow list price
Grok 4.20 Beta$0.375$0.7573.5%
Grok 4.7$0.5674$1.702171.6%
Grok 4.3$0.0124$0.024899.1%
Grok 4.20 Multi-Agent Beta$0.639$1.273555%
Grok 4.5$0.567$1.698475%
Grok Build 0.1$1.05$2.10
Grok 4.6$0.9999$2.995456%

MartLLM: the price a request is billed at now, no fee added. Other prices from each provider's public price list: xAI API docs · every model and price →

More questions

Which SDK works with Grok models on MartLLM?

The OpenAI SDK (chat completions and the Responses API) and the Anthropic SDK (/v1/messages). Set the base URL to https://api.martllm.com/v1, use your MartLLM key and put the model id from the table in the request.

Is a MartLLM key the same as a Grok key?

No. A MartLLM key works only at https://api.martllm.com/v1, where one key calls Grok models and the rest of the catalog. A key made at the maker’s own site works only on the maker’s API.

How do I pay on MartLLM?

Prepaid credit by card or PayPal, from $5, with no subscription. A request that fails is not billed, and every request is listed with its cost in Dashboard → Activity.