Grok Imagine Image
xAI's Grok Imagine from $0.15 per image — expressive generation with 14 aspect ratios.
xAI's Grok Imagine image model in quality mode. Expressive, high-detail generation with 14 aspect ratios including phone-native 19.5:9 and 20:9 — from $0.15 per image.
No credit card required. Takes 30 seconds.
2,400+
Developers
1.2M+
API calls served
100+
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Enter a prompt and generate an image with Grok Imagine Image.
Drop image or click to upload
For image-to-image editing
Pricing
Per-image: from $0.15/image
Endpoint
/v1/media/queue
Strengths
Runs Grok Imagine in its high-detail configuration rather than the fast preview mode.
Includes device-native ratios like 19.5:9 and 20:9 alongside the usual square, wide, and portrait options.
Grok Imagine has a distinctly bold, stylized character that stands apart from more literal image models.
Accepts an uploaded image to edit or restyle.
Quick start
Copy this snippet and start making calls with Grok Imagine Image.
// Step 1: Submit job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "x-ai/grok-imagine-image-quality",
"prompt": "A neon-drenched arcade in a rainstorm seen from across the street, reflections fracturing on the puddles, a single figure silhouetted in the doorway, bold cyberpunk palette",
"options": {
"aspectRatio": "1:1"
}
}),
});
const { data } = await res.json();
const jobId = data.jobId;
// Step 2: Poll for result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status: "pending" | "processing" | "completed" | "failed"
// job.result: { text?, image?, audio?, video? }Why use Grok Imagine Image through YepAPI?
Grok Imagine Image API — xAI image generation from $0.15
Grok Imagine is xAI's image generation model, and this is its quality configuration: more compute per image for higher detail and stronger stylistic character.
On YepAPI you call it from `/v1/media/queue` at about $0.15 per image, with 14 aspect ratios — including phone-native 19.5:9 and 20:9 — and reference-image editing.
Start generating in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
xAI's Grok Imagine image model in quality mode. Expressive, high-detail generation with 14 aspect ratios including phone-native 19.5:9 and 20:9 — from $0.15 per image.
Pricing for Grok Imagine Image through YepAPI is based on usage. No monthly minimums — you only pay for what you use.
Sign up for a free API key, then send requests to the /v1/media/queue endpoint.
Ready to use Grok Imagine Image?
$5 free credit on signup. No credit card required. Pay per call.
Explore more models
Grok 4.3
xAIAccess Grok 4.3 through one API key. xAI's latest model with 1M context.
Grok 4.20
xAIAccess Grok 4.20 through one API key. xAI's flagship model with the largest context window.
Grok 4.20 Multi-Agent
xAIAccess Grok 4.20 Multi-Agent through one API key. Multi-agent orchestration with 2M context.