Free Grok Imagine Image on Vercel

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

About the Model

为什么选择 Grok Imagine Image?

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

  • 风格全覆盖:从照片级写实到插画、概念图。
  • 听话:提示词里写清风格 / 构图 / 光影 / 主体,出图更准。
  • 免费可玩:Cloudflare 每日免费额度、Vercel $5/月额度均覆盖,免额外 Key。

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

How to Access for Free (via Vercel AI Gateway)

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

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

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"}'
Vercel AI Gateway Free Grok Imagine Image on Vercel - Free AI API | Free AI API