Metered token billing across Grok models with cached input discounts and vision inference rates
structured from cited official pricing sources: “The xAI Python SDK is free and open-source software under the Apache-2.0 license. Model inference, tool calling, and live data augmentation are billed directly through the xAI developer platform on pay-as-you-go token pricing.”
Self-hosting cost
xAI Python SDK is open source under the Apache-2.0 license. Self-hosting does not add a software license fee, but you still pay for infrastructure, operations, and any external model or API usage. Any hosted, managed, or API plans remain separately priced.
The xAI Python SDK is free and open-source software under the Apache-2.0 license. Model inference, tool calling, and live data augmentation are billed directly through the xAI developer platform on pay-as-you-go token pricing.
Does xAI Python SDK have a free plan?
Yes — xAI Python SDK has a free plan alongside its paid tiers.
Can you self-host xAI Python SDK for free?
xAI Python SDK is open source under the Apache-2.0 license. Self-hosting does not add a software license fee, but you still pay for infrastructure, operations, and any external model or API usage. Any hosted, managed, or API plans remain separately priced.
What are free or cheaper xAI Python SDK alternatives?
Claude, Cerebras, ChatGPT are in the same category with a free plan or open-source license.
pricing is editorial catalog data (last verified August 26, 2026) — vendors change plans; confirm on the official site before you buy. Reuse this data under CC-BY 4.0 via /data.