freeaiapi.aiSign Up

Grok API — up to 30% cheaper

Get free Grok API key

Call Grok models with the OpenAI SDK and share one balance across every model.

Models
8
From
$0.70 /M input
Below official
up to 30%
Prices updated
2026-11-26

Grok API pricing

Live prices next to the official list price

xAI: grok-4

−30% vs official

grok-4 is a text and chat model from xAI, available through one freeaiapi.ai API key and billed from your prepaid balance.

by xai$2.10/M input tokens$10.50/M output tokens

grok-4-20-non-reasoning is a text and chat model from xAI, available through one freeaiapi.ai API key and billed from your prepaid balance.

by xai$0.875/M input tokens$1.75/M output tokens

xAI: grok-4-20-reasoning

−30% vs official

grok-4-20-reasoning is a text and chat model from xAI, available through one freeaiapi.ai API key and billed from your prepaid balance.

by xai$0.875/M input tokens$1.75/M output tokens

xAI: grok-4.3

−30% vs official

grok-4.3 is a text and chat model from xAI, available through one freeaiapi.ai API key and billed from your prepaid balance.

by xai$0.875/M input tokens$1.75/M output tokens$0.14/M cached input

xAI: grok-4.5

−30% vs official

Grok 4.5 is xAI's frontier model for coding, agents and knowledge work, trained with expanded science, engineering and maths data.

by xai$1.40/M input tokens$4.20/M output tokens$0.21/M cached input

xAI: grok-4.6

−30% vs official

Grok 4.6 builds on Grok 4.5 with a focus on long-running agents and more ambitious interactive and visual work.

by xai$1.40/M input tokens$4.20/M output tokens$0.35/M cached input

xAI: grok-4.7

−30% vs official

Grok 4.7 is xAI's latest frontier model for coding, agent tasks and knowledge work.

by xai$1.40/M input tokens$4.20/M output tokens$0.35/M cached input

grok-build-0.1 is a text and chat model from xAI, available through one freeaiapi.ai API key and billed from your prepaid balance.

by xai$0.70/M input tokens$1.40/M output tokens

Call Grok models with the OpenAI SDK

Change the base URL and key — nothing else

curl https://api.freeaiapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $FREEAIAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Grok API FAQ

Is this the official xAI API?

No. freeaiapi.ai is an independent API gateway. You get one OpenAI-compatible key that routes to xAI and other models, billed from a prepaid balance.

Do I need a credit card to start?

No. Sign up, connect Telegram and join our channel to unlock $1 trial credit. Create an API key and make your first request. Add funds when you want to keep going.

Does it work with the OpenAI SDK?

Yes. Point any OpenAI SDK or OpenAI-compatible tool at https://api.freeaiapi.ai/v1 and use your freeaiapi.ai key. No code changes beyond the base URL and key.

Other model APIs

Get your free Grok API key

No card required. One key for every model, up to 30% below official pricing.

Get free API key

Not affiliated with xAI. Grok is a trademark of xAI.