xAI APIStableChecked 2026-07-17Official source ↗

Grok 4.5 pricing, context window, and cost calculator

xAI's current flagship text and image model with source-tracked short-context, long-context, and cached-input pricing.

Verified fields

Quick facts

API access providerxAI API
Model creatorxAI
API model IDgrok-4.5
Default input / 1M$2.00
Default output / 1M$6.00
Context window500,000
Default profilestandard / short context
Acceptstext, image
Producestext
Knowledge cutoff2026-02-01
StatusStable

Supported capabilities

  • Streaming
  • Function calling
  • Structured outputs
  • Prompt caching
  • Batch API
  • Reasoning

Only capabilities explicitly tracked from provider documentation are shown.

Source-tracked rates

Verified pricing profiles

Amounts are USD per 1M tokens unless the column states an hourly storage unit.

ProfileInput / 1MCached input / 1MOutput / 1MNotes
standard / short contextDefault$2.00 USD$0.50 USD$6.00 USDUsed for default estimates.
standard / long context$4.00 USD$1.00 USD$12.00 USDTracked separately; select explicitly when modeling this profile.
Workload estimate

Grok 4.5 cost calculator

Change the workload assumptions. The calculator uses the same shared pricing resolver as StackLens Compare.

Estimated monthly total$50.00
Monthly input cost
$20.00
Monthly output cost
$30.00
Per 1,000 requests
$5.00
Active profile
standard / short context

Estimate excludes untracked provider-specific charges.

Explicit assumptions

Common workload examples

Input only

1M input tokens

$2.00 under the standard.short_context profile, excluding output and other charges.

Output only

1M output tokens

$6.00 under the standard.short_context profile, excluding input and other charges.

Default workload

10,000 monthly requests

At 1,000 input and 500 output tokens per request: $50.00 under standard / short context.

Cache scenario

50% cached input

The same default workload with 50% cached input is estimated at $42.50. Cache savings apply only to the tracked cached-input rate.

Verification

Sources and methodology

Pricing and limits are source-tracked and may change. Verify current values with the provider before making production purchasing decisions.

Calculator profile rule: standard.short_context is the verified default. xAI does not currently publish a separate maximum-output figure for Grok 4.5, so StackLens leaves that field unverified. Server-side tool invocation charges are not included in token-only estimates.