Free Grok Imagine Image on Cloudflare

Paid (Cloudflare Unified Billing): Grok image generation keyless via Cloudflare — prepaid credits, no markup. For free, use Vercel.

Updated 6/8/2026Provider trust 99/1002 code examples

About the Model

为什么选择 Grok Imagine Image?

Grok 在图形领域格外能打,Imagine Image 是其标准文生图模型。

  • 风格全覆盖:从照片级写实到插画、概念图。
  • 听话:提示词里写清风格 / 构图 / 光影 / 主体,出图更准。
  • 怎么用Vercel $5/月免 Key 额度内免费生图;Cloudflare 免 Key 但付费(统一计费)。

想要更高保真,见 Grok Imagine Image Pro

How to Access for Free (via Cloudflare Workers AI)

计费:Cloudflare 统一计费(付费)

Grok 文生图经 Cloudflare AI Gateway 的统一计费扣费:先充值(5% 手续费),再按 xAI 原价透传、无加价计费,免单独 xAI Key。第三方模型无免费额度(免费 Neurons 仅对 @cf/ 模型有效)。

好处:一张账单、免各家 Key、可设花费上限。想免费生图,走 Vercel($5/月免 Key 额度内可覆盖)。

Try it in your browser

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Code Examples

javascript
// Cloudflare Worker: free image generation within the daily allowance
const res = await env.AI.run('xai/grok-imagine-image', {
  prompt: 'A neon cyberpunk fox, cinematic lighting, ultra-detailed',
});
curl
curl https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/ai/run/xai/grok-imagine-image \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A neon cyberpunk fox, cinematic lighting"}'