Black FridayYearly cloud servers from $9.99, renewing at the same price.See deals

xAI

x-ai/grok-4.1 API

Call x-ai/grok-4.1 by xAI through one OpenAI-compatible API. Keep your SDK, change the base URL, and pay per token from your Yeap balance.

New LLM API accounts get $5 of free credit.

Quick start

Call x-ai/grok-4.1 in a few lines

Use any OpenAI SDK or plain HTTP. Point the base URL at Yeap Cloud and set the model name.

curl https://llm.yeap.cloud/v1/chat/completions \
  -H "Authorization: Bearer $YEAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-4.1",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

x-ai/grok-4.1 variants

Same model with a different reasoning effort, mode or snapshot. Use the exact name in the model field.

ModelInput / 1M tokensOutput / 1M tokens
x-ai/grok-4.1-thinking$1.80$9