Grok Imagine Image API
xAI's Grok Imagine from $0.11 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.11 per image.
No credit card required. Takes 30 seconds.
Grok Imagine Image API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Billing | Price |
|---|---|
| Rate | $0.11/image |
| What it costs | Per job |
|---|---|
| 1 imagefrom default size | $0.11 |
| 100 imagesa product catalog batch | $11.00 |
| 1,000 imagesa month of app traffic | $110.00 |
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
Grok Imagine Image specs
| Provider | xAI |
|---|---|
| Model ID | x-ai/grok-imagine-image-quality |
| Endpoint | /v1/media/queue |
| Type | Image Generation |
| Aspect ratios | 1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, 9:19.5, 19.5:9, 9:20, 20:9, 1:2, 2:1, auto |
| Image input | Yes |
How to get a Grok Imagine Image API key
- 1
Create a free account
Sign up at yepapi.com with Google or email. It takes about 30 seconds and needs no card.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call Grok Imagine Image
Send a request to /v1/media/queue with the x-api-key header and model "x-ai/grok-imagine-image-quality".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
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? }Grok Imagine Image vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price |
|---|---|---|
| Grok Imagine Image | xAI | from $0.11/image |
| Grok Imagine Image 2.0 | xAI | from $0.13/image |
| FLUX 3 Image Klein | Black Forest Labs | from $0.02/image |
| GPT Image 2 | OpenAI | from $0.02/image |
| GPT Image 1 Mini | OpenAI | from $0.02/image |
| GPT-5.4 Image 2 | OpenAI | from $0.02/image |
| GPT-5 Image Mini | OpenAI | from $0.02/image |
| GPT Image 2.5 Flare | OpenAI | from $0.02/image |
Why use Grok Imagine Image through YepAPI?
Grok Imagine Image API — xAI image generation from $0.11
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.11 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.11 per image.
Grok Imagine Image costs from $0.11/image through YepAPI, billed per request with no monthly fee. For example, a 1 image (from default size) costs about $0.11.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Grok Imagine Image and every other model — no separate xAI account or waitlist.
New YepAPI accounts in most countries get free signup credit, enough to test Grok Imagine Image without a card. After that you pay per request at the rates above — there is no subscription.
Use "x-ai/grok-imagine-image-quality" as the model on /v1/media/queue. The short alias "grok-image" also works.
Ready to use Grok Imagine Image?
$5 free credit on signup. No credit card required. Pay per call.
Explore more models
Grok Imagine Image 2.0
xAIxAI Grok Imagine Image 2.0 from $0.13 per image — generation and editing through one REST call.
Recraft V4.1 Utility Pro
RecraftRecraft V4.1 Utility Pro from $0.45 per image — production-quality everyday design assets.
Recraft V4.1 Vector
RecraftText-to-SVG with Recraft V4.1 Vector from $0.17 — real, editable vector art through one API call.
Nano Banana 3 Pro
GoogleNano Banana API for AI image generation. Generate photorealistic images from text prompts — an AI image generator API and Midjourney alternative via simple REST API.
Riverflow 2 Fast
SourcefulRiverflow 2 Fast from $0.05 per image — the quick tier of the previous Riverflow generation.
Recraft V4 Styles Pro
RecraftRecraft V4 Styles Pro from $0.23 per image — new images in the style of your reference image.
More Image Generation models
- Seedream 5.0 Lite API · ByteDance
- GPT Image 2.5 Sunburst API · OpenAI
- FLUX 3 Image Klein API · Black Forest Labs
- FLUX.2 Flex API · Black Forest Labs
- Krea 2 Large API · Krea
- Recraft V4.1 API · Recraft
- Seedream 5.0 Flash API · ByteDance
- GPT-5 Image API · OpenAI
- Riverflow 2 Pro API · Sourceful
- Krea K3 Edit API · Krea
- Meta Muse Image API · Meta
- Gemini 2.5 Flash Image API · Google