Grok Code API Pricing

Lowest
$0.0276
from LaoZhang API·/ 1M tokens
Use Now →
4 providers·4 live(Updated 1h ago)

Grok Code has 4 API providers. The lowest input price is $0.0276/1M tokens from LaoZhang API. 4 providers auto-refresh every 6 h (Updated 1h ago).

No first-party price is tracked for Grok Code on this page yet — below is a comparison of 4 hosting providers. Beyond price, hosts differ meaningfully in throughput, rate limits, and reliability, so a small trial run is worth it before committing.

At today's lowest rate, processing 1M input + 1M output tokens costs about $0.0690. The table below lists current per-provider quotes.

Compare Grok Code API Prices Across Providers

ProviderInput / 1MAPI
Relay / Aggregator
LaoZhang APIRelayLowest🇨🇳支付宝微信Live
$0.0276
Try →
UiUiAPIRelayLowest🇨🇳支付宝微信VisaMCLive
$0.0276
Try →

Frequently Asked Questions

How is Grok Code API pricing calculated?

LLM APIs are billed per 1M input and output tokens separately. Official providers set the base price; relay providers typically offer 20–80% discounts.

What is the cheapest way to access Grok Code API?

The lowest current input price is $0.0276 per 1M tokens from LaoZhang API. Prices update in real time — bookmark this page for the latest rates.

Can I use Grok Code API from China?

Providers marked 🇨🇳 in the table support China-mainland access. Check each provider's documentation for details.

How often is Grok Code API pricing updated?

4 sources on this page are live-scraped every ~6 hours (Updated 1h ago).

How reliable is the Grok Code API pricing data?

Live-scraped prices come directly from provider APIs and are generally accurate. Manually maintained prices are sourced from official pricing pages and periodically verified. For critical decisions, confirm the latest price via the provider's official link.

How can I tell if a price is live-scraped or manually maintained?

Each provider row shows a small label next to the name: a green "Live" badge means prices are automatically fetched on a schedule; a gray "Manual" badge means human-curated. Live data not refreshed in 24+ hours turns amber.

Related

All Language Model APIsVideo Generation APIsAudio & Speech APIsImage Generation APIs
← Back to AI API Pricing