API PRICES

xAI · grok-4

Provider prices, cheapest first

Browse all models

xAI · grok-4 official price: not yet recorded. Cheapest relay: api.bianxie.ai, group "default" 1.5625 USD_CREDIT per million total tokens (credit price, not cash, observed 2026-10-16). 34 sites have comparable prices; 71 sites list this model.Relay blended price uses 75% input and 25% output.

Price ranges per million tokens

Relay USD credit prices · Lowest 1.5625 · median 6 · highest 60 · 17 quotes USD / per million tokens, site credit

Relay CNY credit prices · Lowest 2.4 · median 6 · highest 27 · 10 quotes CNY / per million tokens, site credit

Official prices are the vendor's cash prices. Inference providers also list cash prices and can be compared directly. Relays list prices in site credit; what you actually pay depends on each site's top-up rate, so they cannot be compared with official prices directly.

Unit: USD credits per 1M tokens. These are site-credit prices; actual cost depends on each site’s top-up rate.

Searching…

Browse all providers

Blended price = input × 75% + output × 25%, without cache.

Price range: lowest 1.5625 · median 6 · highest 60 (17 quotes, USD credits per million total tokens)

sites have comparable prices3471 sites list this model; approximately 18 operators
Lowest input price1.25USD credits / 1M
Median of each provider’s lowest price3USD credits / 1M

Relays

Prices below are in site credit, not cash.

#ProviderPlan / conditionsInput ↑USD credits / 1MOutput USD credits / 1MCache readUSD credits / 1MBlendedUSD credits / 1MDetails
Recent price
01api.bianxie.aiAsk or discussCollected:
Collected this cycle
View 1 plans
default
default
Operator pending verification
1.252.5—1.5625Median price ÷ this price: 3.8×Full prices and sources
02api.hopeai.ccAsk or discussCollected:
Collected this cycle
View 1 plans
default
Default group [machine translation]Original: 默认分组
Operator pending verification
22—2Median price ÷ this price: 3×Full prices and sources
02happyapi.orgAsk or discussCollected:
Collected this cycle
View 2 plans
1 more site of the same company

Basis: identical quotes, same status-page name, logo or server address. Counted as one company in the ranking; this is not a legal finding.

default
Default group [machine translation]Original: 默认分组
Operator pending verification
2100.34Median price ÷ this price: 1.5×Full prices and sources
04hk.apitoken.aiAsk or discussCollected:
Collected this cycle
View 4 plans
bi
bi
Operator pending verification
312—5.25Median price ÷ this price: 1.1×Full prices and sources
04aigcbest.topAsk or discussCollected:
Collected this cycle
View 2 plans
2 more sites of the same company

Basis: identical quotes, same status-page name, logo or server address. Counted as one company in the ranking; this is not a legal finding.

default
⭐ Recommended | all-model automatic load optimization [machine translation]Original: ⭐ 推荐 | 全模型自动负载优化
Operator pending verification
3150.756Median price ÷ this price: 1×Full prices and sources
04airouter.cloudAsk or discussCollected:
Collected this cycle
View 1 plans
default
Default group [machine translation]Original: 默认分组
Operator pending verification
315—6Median price ÷ this price: 1×Full prices and sources
04api.ai-gaochao.cnAsk or discussCollected:
Collected this cycle
View 17 plans
Evan
Evan
Operator pending verification
3150.756Median price ÷ this price: 1×Full prices and sources
04api.eido.topAsk or discussCollected:
Collected this cycle
View 1 plans
default
Default group [machine translation]Original: 默认分组
Operator pending verification
315—6Median price ÷ this price: 1×Full prices and sources
04api.xhuoai.comAsk or discussCollected:
Collected this cycle
View 2 plans
default
Default group, supports all common models, OpenAI special-price channel (AZ Microsoft channel) Claude Code, Gemini stable channel (GCP/Velax), top value-for-money choice, 20% of list price, rate multiplier 1.0 [machine translation]Original: 默认分组,支持所有常用模型,OpenAI特价渠道(AZ微软渠道)Claude Code,Gemini稳定渠道(GCP/Velax),性价比首选,2折,倍率1.0
Operator pending verification
315—6Median price ÷ this price: 1×Full prices and sources
04api.xistree.hkAsk or discussCollected:
Collected this cycle
View 1 plans
default
Default group [machine translation]Original: 默认分组
Operator pending verification
315—6Median price ÷ this price: 1×Full prices and sources
04poloai.topAsk or discussCollected:
Collected this cycle
View 1 plans
2 more sites of the same company

Basis: identical quotes, same status-page name, logo or server address. Counted as one company in the ranking; this is not a legal finding.

grok
Grok reverse-engineered account pool [machine translation]Original: Grok逆号池
Operator pending verification
3150.756Median price ÷ this price: 1×Full prices and sources
04sg.uiuiapi.comAsk or discussCollected:
Collected this cycle
View 1 plans
default
⭐ Default (mixed channels) | Azure + official models [machine translation]Original: ⭐ 默认(混渠道)| Azure + 官模型
Operator pending verification
3150.756Median price ÷ this price: 1×Full prices and sources
04xinsuanai.comAsk or discussCollected:
Collected this cycle
View 4 plans
default
Default group [machine translation]Original: 默认分组
Operator pending verification
315—6Median price ÷ this price: 1×Full prices and sources
04zen-ai.topAsk or discussCollected:
Collected this cycle
View 2 plans
default
✨az official relay + others, 1 yuan per dao (US dollar) [machine translation]Original: ✨az官转+其他模型, 1元一刀
Operator pending verification
315—6Median price ÷ this price: 1×Full prices and sources
15api.luoqianyi.qzz.ioAsk or discussCollected:
Collected this cycle
View 1 plans
default
Default group [machine translation]Original: 默认分组
Operator pending verification
55—5Median price ÷ this price: 1.2×Full prices and sources
16ai.ufoai.onlineAsk or discussCollected:
Collected this cycle
View 1 plans
Grok[official relay] [machine translation]Group on site: Grok[官转]
Grok[official relay], 29% cheaper than official [machine translation]Original: Grok[官转],比官方便宜29%
Operator pending verification
30150—60Median price ÷ this price: 0.1×Full prices and sources
16leetai.storeAsk or discussCollected:
Collected this cycle
View 1 plans
openrouter
Name on site: x-ai/grok-4
OpenRouter group [machine translation]Original: OpenRouter分组
Operator pending verification
301507.560Median price ÷ this price: 0.1×Full prices and sources
Older price
01api.openai-ch.topAsk or discussCollected:
Carried previous price
Not updated this time; showing the previous price
View 5 plans
Azure-Ⅰ
Azure 0.2x rate multiplier group [machine translation]Original: Azure 0.2倍率分组
Operator pending verification
0.630.151.2Median price ÷ this price: 5×Full prices and sources
How this ranking works

All per-token prices: 97,455 prices from 871 sites (about 765 companies). 89,631 are ranked, from 861 sites (about 755 companies); 7,824 more are listed separately and not ranked. Prices collected up to 2026-10-17.

This model has 179 recorded prices; 76 can be compared directly (74 ranked, 2 listed separately). Not comparable yet: billed per request or another unit 37, price not parsed yet 29, scope of the official doc price not confirmed 16, ratio looks unset 15, display unit not confirmed 2, tiered by rules (see Tiered prices) 2

51 recent · 5 stale (older than 10 days, or not updated by this refresh) · 0 unverified timestamps. Minimum and median only count recent paid prices; older prices stay in the table. 0 zero-valued pairs are separately unverified, without proof of free eligibility. Timing does not verify payment, upstream identity or quality.

Prices are converted to site credits using each site’s published ratio. What you actually pay depends on its top-up rate. Input, output and cache prices in each row come from the same plan. Several sites run by the same company take one place in the ranking: its cheapest plan, with the other sites listed under it. We judge “same company” by identical prices, status pages or homepage code; this is not a legal finding. To see every site’s prices, choose “All plans” or filter by provider.

“Self-declared unofficial channel” means the plan name itself says “reverse-engineered” or similar. We have not verified their source or quality. Minimum and median only count regular plans.

Full methodology →

Switch model

Sources not accepted this cycle and reasons

FAQ

Which API is cheapest for xAI · grok-4?

api.bianxie.ai, group "default", 1.5625 USD credit per million total tokens, observed 2026-10-16. 34 sites have comparable prices.

How do I use xAI · grok-4 in Claude Code or Codex?

Install Grandet Skill, then say "Connect the cheapest xAI · grok-4 API to Claude Code for me". Install Skill →