Generate high-quality images from text prompts with xAI's imagine API.
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({ model: 'xai/grok-imagine-image', prompt: 'A red balloon on a wooden table.'});Try out Grok Imagine Image by xAI. Usage is billed to your team at API rates. Free users get $5 of credits every 30 days, and you are considered a free user if you haven't made a payment.
Chat with
Powered by AI Gateway
| Model |
|---|
Context | Image Gen | Video Gen | Max Output | Latency | Throughput | Input | Output | Cache | Web Search | Capabilities | Providers |
|---|