Grok Imagine Image 2.0 API
xAI Grok Imagine Image 2.0 from $0.13 per image — generation and editing through one REST call.
xAI's Grok Imagine Image 2.0. Image generation from text prompts and editing from reference images — from $0.13 per image.
No credit card required. Takes 30 seconds.
Grok Imagine Image 2.0 API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Billing | Price |
|---|---|
| Rate | $0.13/image |
| What it costs | Per job |
|---|---|
| 1 imagefrom default size | $0.13 |
| 100 imagesa product catalog batch | $13.00 |
| 1,000 imagesa month of app traffic | $130.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 2.0.
Drop image or click to upload
For image-to-image editing
Grok Imagine Image 2.0 specs
| Provider | xAI |
|---|---|
| Model ID | x-ai/grok-imagine-image-2.0 |
| Endpoint | /v1/media/queue |
| Type | Image Generation |
| Output formats | jpeg |
| Image input | Yes |
How to get a Grok Imagine Image 2.0 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 2.0
Send a request to /v1/media/queue with the x-api-key header and model "x-ai/grok-imagine-image-2.0".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Creates images from text prompts with xAI's second-generation Grok Imagine image model.
Send a reference image with an instruction to edit it.
Returns JPEG by default, ready for web and social use.
Per-image pricing with no separate xAI account.
Quick start
Copy this snippet and start making calls with Grok Imagine Image 2.0.
// 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-2.0",
"prompt": "A retro-futurist diner on a desert highway at dusk, chrome trim glowing pink and orange, a silver hover-car parked out front, long cinematic shadows",
"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 2.0 vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price |
|---|---|---|
| Grok Imagine Image 2.0 | xAI | from $0.13/image |
| Grok Imagine Image | xAI | from $0.11/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 2.0 through YepAPI?
Grok Imagine Image 2.0 API — xAI image generation from $0.13
Grok Imagine Image 2.0 is an image generation and editing model from xAI, suited to creating images from text prompts and editing images from references.
On YepAPI it runs on the shared `/v1/media/queue` endpoint at about $0.13 per image with JPEG output by default, on the same key as Grok chat and the rest of the catalog.
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 2.0. Image generation from text prompts and editing from reference images — from $0.13 per image.
Grok Imagine Image 2.0 costs from $0.13/image through YepAPI, billed per request with no monthly fee. For example, a 1 image (from default size) costs about $0.13.
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 2.0 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 2.0 without a card. After that you pay per request at the rates above — there is no subscription.
Use "x-ai/grok-imagine-image-2.0" as the model on /v1/media/queue. The short alias "grok-image-2" also works.
Ready to use Grok Imagine Image 2.0?
$5 free credit on signup. No credit card required. Pay per call.
Explore more models
Grok Imagine Image
xAIxAI's Grok Imagine from $0.11 per image — expressive generation with 14 aspect ratios.
Recraft V4.1 Utility Pro
RecraftRecraft V4.1 Utility Pro from $0.45 per image — production-quality everyday design assets.
Recraft V4 Vector
RecraftRecraft V4 Vector from $0.17 — editable text-to-SVG on the previous Recraft generation.
FLUX 3 Image Klein
Black Forest LabsFLUX 3 Image Klein from $0.02 per image — open-weights FLUX 3 generation and editing, no GPU to rent.
Qwen Image 3 Pro
QwenQwen Image 3 Pro from $0.16 per image — precise text rendering and editing on the Pro tier.
Recraft V4.1 Utility
RecraftRecraft V4.1 Utility from $0.08 per image — the volume tier for drafts, placeholders, and bulk assets.
More Image Generation models
- Gemini 2.5 Flash Image API · Google
- Gemini 3.1 Flash Lite Image API · Google
- Seedream 5.0 Flash API · ByteDance
- FLUX.2 Max API · Black Forest Labs
- Riverflow 2.5 Fast API · Sourceful
- GPT-5.4 Image 2 API · OpenAI
- Recraft V4 Pro API · Recraft
- Krea K3 Edit API · Krea
- MAI-Image-2.6 Flash API · Microsoft
- Riverflow 2 Pro API · Sourceful
- Meta Muse Image API · Meta
- Krea 2 Medium API · Krea