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

Grok 4 API

x-ai/grok-4Text

Grok 4 on the MartLLM market. Made by xAI. 2,000,000 token context.

Not available right now. Requests to this model are refused until a provider serves it again.

Use one of these instead, served now:

Grok 4 API FAQ

How much does the Grok 4 API cost?

Grok 4 is in the MartLLM catalog, but no provider is serving it right now.

How do I call Grok 4 via API?

Use any OpenAI-compatible SDK: set the base URL to https://api.martllm.com/v1, your MartLLM API key, and model "x-ai/grok-4". Anthropic SDKs work via https://api.martllm.com/v1/messages.

Is Grok 4 OpenAI-compatible on MartLLM?

Yes. Every model on MartLLM, including Grok 4, is served through one OpenAI-compatible endpoint. Set the base URL and key in your existing client.

Compared with other providers: Cheapest Grok API

More xAI models