Cloudflare integrations / AI inference / xAI

xAI + Cloudflare integration

ListedFacts verified 27-11-2026Work at xAI? Claim this page

xAI works with Cloudflare: models through AI Gateway. Usage-based: grok-4.7: US$2.00 per 1M input tokens and US$6.00 per 1M output tokens.
Cloudflare plan neededNot stated
RegionsNo regional restriction stated
Works with1 capability
PriceUsage fees, no monthly fee reported
Facts last verified27-11-2026

What does xAI do with Cloudflare Workers?

Diagram of what xAI supports on Cloudflare: models through ai gateway
FactDirectionSource
xAI models can be called through Cloudflare AI Gateway.
xAI (Grok) requests go to the AI Gateway endpoint ending in /grok in place of https://api.x.ai/v1; the page shows the OpenAI and Anthropic SDKs pointed at it, and Grok models can also be called through the OpenAI-compatible endpoint. xAI is one of the providers Cloudflare Unified Billing can pay for.
Direction not stated[s1][s2]

Compare other apps: Cloudflare Workers integrations: models through AI Gateway

What does xAI not do on Cloudflare?

How much does xAI cost?

PlanBilling
API usageper-transaction, grok-4.7: $2.00 per 1M input tokens and $6.00 per 1M output tokens, usage-based; page shows $ without a currency code, read as USD

What do you need to use xAI with Cloudflare?

Where else does xAI integrate?

How does xAI compare?

Similar apps for Cloudflare

Listed alphabetically, not ranked.

See all 16 apps in AI inference for Cloudflare

xAI and Cloudflare: common questions

Does xAI integrate with Cloudflare?

Yes. xAI connects with Cloudflare, and Lode has verified the details. It supports 1 capability. Facts verified 27-11-2026.

What does the xAI Cloudflare integration do?

xAI models can be called through Cloudflare AI Gateway.

How much does xAI cost to use with Cloudflare?

Usage fees, no monthly fee reported, from xAI's own published pricing. Details by plan are in the pricing section above.

Sources

  1. https://developers.cloudflare.com/ai-gateway/usage/providers/grok/index.md (platform docs, retrieved 26-11-2026)
  2. https://developers.cloudflare.com/ai-gateway/features/unified-billing/index.md (platform docs, retrieved 26-11-2026)
  3. Grok Models & Pricing | SpaceXSI Docs (vendor pricing, retrieved 24-11-2026)

Changelog

Cite this page: Lode (trylode.io), "xAI + Cloudflare integration", facts verified 27-11-2026. https://trylode.io/cloudflare/xai/
Machine-readable: JSON. Spot an error? Send a correction.