Free Grok Imagine Image on Vercel

Generate images with Grok Imagine free on Vercel's $5/month keyless credit.

Updated 6/5/2026Provider trust 98/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 Vercel AI Gateway)

免费依据:每月 $5 系统额度

文生图在 Vercel 每月 $5 额度内免 Key 调用。模型 id:xai/grok-imagine-image图像是 Grok 的强项。

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
import { experimental_generateImage as generateImage } from 'ai';
const { image } = await generateImage({
  model: 'xai/grok-imagine-image',
  prompt: 'A neon cyberpunk fox, cinematic lighting, ultra-detailed',
});
// image.base64 / image.uint8Array
curl
curl https://ai-gateway.vercel.sh/v1/images/generations \
  -H "Authorization: Bearer $AI_GATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"xai/grok-imagine-image","prompt":"A neon cyberpunk fox, cinematic lighting"}'