xAI Global API · Standard text rates

    Grok API Cost Calculator

    Estimate standard xAI API text charges from your average input and output tokens per request and total requests per day. Enter the full prompt and response averages your application sends and receives.

    Prices checked . The xAI rate card lists its latest update as October 10, 2026.

    [ AI Cost Calculator ]
    1

    Select your model

    2

    Set your usage

    Average tokens sent to the model in one request

    Include reasoning or thinking tokens if your provider bills them as output. This estimate does not infer them.

    All requests across your app for one day, not requests per user

    3

    Review results

    Estimate for Grok 4.7 at public standard text rates checked October 17, 2026.

    Per Request$0.002200
    Per day$2.20
    Per month$66.00

    Cost at different volumes

    Each row keeps the same token assumptions.

    Total requests per dayRequests / monthMonthlyAnnual
    1003.0K$6.60$80.30
    1.0K30.0K$66.00$803.00
    10.0K300.0K$660.00$8,030.00
    100.0K3.0M$6,600.00$80,300.00

    Monthly estimates use 30 days. Annual estimates use 365 days.

    Estimate covers public standard text input and output rates only. If your provider bills reasoning or thinking tokens as output, include them in your output-token estimate; this calculator does not infer them. It excludes cached-token pricing, batch discounts, external tools and search, embeddings, vector stores, hosting and infrastructure, negotiated discounts, free-tier credits, and image, audio, video, or voice usage.

    Save your results

    Get your cost estimate sent to your inbox. We'll also send tips on how to reduce your AI spending.

    No spam. Unsubscribe any time.

    xAI Grok Global API Pricing

    Public direct API text rates in USD per 1 million tokens. Checked Oct 17, 2026.

    The rates below reflect today’s effective price. Scheduled changes are shown in the model notes.

    View official pricing

    Grok 4.7

    Active
    Context
    500K
    Input / 1M
    $2.00
    Output / 1M
    $6.00
    • At or above 200,000 input tokens, $4.00 input and $12.00 output apply to the full request.

    Grok Build 0.1

    Active
    Context
    256K
    Input / 1M
    $1.00
    Output / 1M
    $2.00
    • At or above 200,000 input tokens, $2.00 input and $4.00 output apply to the full request.

    Grok 4.6

    Active
    Context
    500K
    Input / 1M
    $2.00
    Output / 1M
    $6.00
    • At or above 200,000 input tokens, $4.00 input and $12.00 output apply to the full request.

    Grok 4.5

    Active
    Context
    500K
    Input / 1M
    $2.00
    Output / 1M
    $6.00
    • At or above 200,000 input tokens, $4.00 input and $12.00 output apply to the full request.

    Grok 4.3

    Active
    Context
    1M
    Input / 1M
    $1.25
    Output / 1M
    $2.50
    • At or above 200,000 input tokens, $2.50 input and $5.00 output apply to the full request.

    Grok 4.20 Multi-Agent Beta

    Active
    Context
    1M
    Input / 1M
    $1.25
    Output / 1M
    $2.50
    • At or above 200,000 input tokens, $2.50 input and $5.00 output apply to the full request.

    Grok 4.20 Reasoning

    Active
    Context
    1M
    Input / 1M
    $1.25
    Output / 1M
    $2.50
    • At or above 200,000 input tokens, $2.50 input and $5.00 output apply to the full request.

    Grok 4.20 Non-Reasoning

    Active
    Context
    1M
    Input / 1M
    $1.25
    Output / 1M
    $2.50
    • At or above 200,000 input tokens, $2.50 input and $5.00 output apply to the full request.

    Prices cover standard text input and output only. The estimate excludes cached-token pricing, batch rates, tool and search charges, embeddings, vector stores, hosting and infrastructure, negotiated discounts, free-tier credits, and multimodal usage.

    A context value is shown only when verified for this review. Confirm current terms with the provider before budgeting.

    How Grok API text pricing works

    The estimate prices one model call as input tokens multiplied by the input rate, plus output tokens multiplied by the output rate. Include the full average input sent on each call, such as system instructions, resent chat history, or retrieved passages. The request count and token averages are values you supply.

    The 200,000-token tier applies to the full request

    xAI’s global rate card sets a higher input and output rate when a request contains 200,000 or more input tokens. At exactly 200,000, the higher rates apply to every input and output token in that call, not only the tokens above the threshold.

    This page uses xAI’s standard uncached Global API rates. Cached input discounts, model-specific Batch prices, optional Priority Processing, U.S. regional multipliers, separately billed tool and search charges, embeddings, hosting, negotiated rates, credits, and multimodal usage are not included. Grok served through Azure, Oracle, Vertex, or another cloud host is also outside the estimate.

    xAI bills reasoning tokens at the full completion rate. Include them in the output-token average you enter. The calculator does not estimate hidden reasoning-token counts.

    Source documents: xAI global pricing, reasoning token billing, prompt caching, Batch pricing, API regions, and model release notes.

    Common questions

    Buildy Logo
    Built with Buildy.ai