xAI · First-generation Imagine model
Grok Imagine Image API
xAI’s first-generation text-to-image model from the Imagine API launch, with a simple interface and steady output. On AnyAIGC it’s $0.0119 / image, about 40% below xAI’s list price, with unlimited concurrency.
- Model
grok-imagine-image - Price $0.0119 / image
- Resolution 1k / 2k
- Concurrency Unlimited
- Business Self-service invoices
What is Grok Imagine Image
Grok Imagine Image (grok-imagine-image) is the image model xAI launched with the Grok Imagine API in early 2026. xAI’s docs call it 1.0, with the snapshot name grok-imagine-image-2026-03-02. It turns a text description into an image, with multiple aspect ratios and 1k / 2k output.
In August 2026 xAI released Image 2.0, which is stronger at typography and editing for a slightly higher price on AnyAIGC (from $0.0179 / image versus $0.0119). The first-gen model hasn’t been retired, so existing integrations keep working.
On AnyAIGC it’s $0.0119 per image; xAI’s list price is $0.02 / image. On AnyAIGC this model uses the /v1/images/generations endpoint.
- Model
grok-imagine-image- Endpoint
- /v1/images/generations
- Resolution
- 1k / 2k
- Aspect ratios
- 1:1, 16:9, 9:16 and more
- Output
- b64_json / url
- Snapshot
grok-imagine-image-2026-03-02
What Grok Imagine Image can do
Text to image
Generate an image from one sentence, in common styles like photoreal, illustration and poster.
Multiple aspect ratios
Use
aspect_ratiofor 1:1, 16:9, 9:16, 3:2 and more, to fit covers, portrait posters and banners.1k / 2k output
Pick 1k or 2k with
resolution. xAI prices both the same.base64 or URL
Set
response_formattob64_jsonfor raw image data, orurlfor a temporary link.Compatible interface
The request format matches OpenAI’s
/v1/images/generations, so existing image code only needs a newmodel.Easy upgrade to 2.0
When you need edits or better typography, switch
modeltogrok-imagine-image-2.0, from $0.0179 / image.
Grok Imagine Image API pricing
A flat $0.0119 per image, not per token.
- Per imageBilled per generated image, not per token
- One price1k and 2k cost the same
- Unlimited concurrencyOn by default for everyone
- Shared balanceOne balance for 300+ models
| Resolution | Quality | AnyAIGC output | Edit input image | xAI list output |
|---|---|---|---|---|
Grok Imagine Image grok-imagine-image | ||||
| 1K / 2K | — | $0.0119 / image | No editing | $0.02 / image |
Compare: Grok Imagine Image 2.0 grok-imagine-image-2.0 | ||||
| 1K | Low | $0.0179 / image | $0.00447 / image | $0.04 / image |
| 1.5K | Low | $0.0223 / image | $0.00447 / image | $0.05 / image |
| 2K | Low | $0.0268 / image | $0.00447 / image | $0.06 / image |
| 1K | Medium | $0.0268 / image | $0.00447 / image | $0.06 / image |
| 1.5K | Medium | $0.0313 / image | $0.00447 / image | $0.07 / image |
| 2K | Medium | $0.0357 / image | $0.00447 / image | $0.08 / image |
Prices from the AnyAIGC model catalog (Image $0.0119 / image; Image 2.0 from $0.0179 / image, with edits adding $0.00447 per input image). xAI list price: Image is $0.02 / image at both 1K and 2K (xAI pricing). Billed per successful generation; live prices are in the model catalog.
Cost examples
Straight multiplication of the prices above, nothing else added.
-
100 illustrations
100 × $0.0119
$1.19
1 image per call
-
1,000 batch images
1,000 × $0.0119
$11.90
Unlimited concurrency
-
The same 1,000 on 2.0
1,000 × 1K Low $0.0179
$17.90
2.0 · adds editing
Grok Imagine Image API use cases
- Content
Article and social images
Generate images from a headline or summary, and batch out article covers.
- Marketing
Ad creative
Spin up several takes on one theme for ad testing.
- Product
In-app image generation
Add text-to-image to your app with a clear per-image cost.
- Design
Concept sketches
Generate a few drafts to settle on a direction, then hand off to a designer.
- Games
Concept art
Quickly produce concept art for scenes, props and characters.
- Migration
Keep your existing code
Code written for xAI only needs a new base URL and key.
Why call it through AnyAIGC
One key, 300+ models
Grok Imagine, GPT Image, Nano Banana and Seedream share one API key and one balance.
No xAI account needed
The endpoint
https://anyaigc.aineeds no xAI account.Fixed prices
A flat price per image, below xAI’s list price, with every charge visible in the console.
Unlimited concurrency
Every account runs without a concurrency cap, so batch jobs don’t wait for approval.
Get started with the Grok Imagine Image API
- Sign up for AnyAIGC. New accounts get 5M free tokens, and you can top up from $1.
- Create an API key in the console and save it as the
ANYAIGC_API_KEYenvironment variable. - Send a request to
POST https://anyaigc.ai/v1/images/generationswithmodelset togrok-imagine-image.
import base64
import os
import requests
API_KEY = os.environ["ANYAIGC_API_KEY"]
resp = requests.post(
"https://anyaigc.ai/v1/images/generations",
headers={"Authorization": "Bearer " + API_KEY},
json={
"model": "grok-imagine-image",
"prompt": "A retro concert poster titled “Neon Night Drive”, bold vintage type, sharp small print “Dec 31, 2026 · Austin” at the bottom",
"aspect_ratio": "2:3", # 1:1, 16:9, 9:16, 3:2 and more
"resolution": "2k", # 1k / 2k
"n": 1,
"response_format": "b64_json", # or url
},
timeout=300,
)
resp.raise_for_status()
for i, item in enumerate(resp.json()["data"], 1):
if item.get("b64_json"):
with open(f"grok_{i}.jpg", "wb") as f:
f.write(base64.b64decode(item["b64_json"]))
print("saved", f"grok_{i}.jpg")
else: # with response_format url you get a temporary link, download it soon
print(item["url"])
curl https://anyaigc.ai/v1/images/generations \
-H "Authorization: Bearer $ANYAIGC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-image",
"prompt": "A retro concert poster titled “Neon Night Drive”, bold vintage type, sharp small print “Dec 31, 2026 · Austin” at the bottom",
"aspect_ratio": "16:9",
"resolution": "1k",
"n": 1,
"response_format": "url"
}'
Authenticate with Authorization: Bearer <API Key>. The response looks like {"created": ..., "data": [{"b64_json": ...}], "usage": {"generated_images": 1, ...}}; with response_format set to url you get a temporary link, so download it promptly. Field reference in the AnyAIGC docs: Create image.
Grok Imagine Image API for teams and enterprises
E-commerce companies, design studios and content platforms can buy through a proper business process, with support for finance, legal and engineering.
- Invoices
Issue them yourself
Issue an invoice in the console for the amount you actually topped up, whenever you need one.
- Dedicated support
Account and technical contacts
Work with a dedicated support contact and technical engineer for onboarding, migration and troubleshooting.
- WeChat Pay
- Alipay
- USDT
- Credit card
Why teams trust AnyAIGC
Trial credit, top-ups, refunds, data handling and billing, spelled out up front.
5M free tokens to start
New accounts get trial credit, so you can test before you top up.
Top up from $1, refundable
Top up from $1. Unused balance can be refunded with no fee.
Official channels, real models
Requests go to official model channels, never cheaper or reverse-engineered substitutes.
No retention, no training
Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.
Transparent billing, spend caps
See tokens and cost for every request in the console, and set a quota on each API key.
24/7 support
Contact support any time about integration, billing or incidents.
Grok Image models
Same API key, same endpoint. Switch models by changing the model field.
Specs and how to choose it
The official model page says grok-imagine-image takes text and image input and returns images.
The dated alias listed by the vendor is grok-imagine-image-2026-03-02, which you can call to pin this version.
The official image generation docs cover xAI's image models: 1k (default) and 2k resolutions, and the n parameter generates 1 to 10 images per call.
This page lists (Grok Imagine Image grok-imagine-image) 1K / 2K at $0.0119 / image; other tiers are in the pricing table above.
Compared with grok-imagine-image-2.0: the official model-selection table points image tasks at Image 2.0 first.
Specs come from the vendor's official documentation (docs.x.ai). The table on this page is the price, and the model catalog is authoritative for live rates.
Grok Imagine Image API FAQ
How much does the Grok Imagine Image API cost?
On AnyAIGC, Grok Imagine Image (grok-imagine-image) costs $0.0119 per image, the same at 1k and 2k. xAI’s list price is $0.02 / image. Billed per successful generation; live prices are in the model catalog.
Image 2.0, Image or Quality: which one should I use?
Grok Imagine Image 2.0 (grok-imagine-image-2.0) is the model xAI currently recommends, with stronger typography, prompt following and editing. It starts at $0.0179 / image on AnyAIGC, so start new projects here. Grok Imagine Image (grok-imagine-image) is the first-generation Imagine model at $0.0119 / image, the lowest price in the series, fine for plain text to image and existing code. Grok Imagine Image Quality was retired by xAI on Nov 2, 2026, and its requests are now served by 2.0 at low quality.
Will grok-imagine-image be retired?
This change doesn’t affect it. The model xAI retired on Nov 2, 2026 is grok-imagine-image-quality; grok-imagine-image is still available. If you need edits or better text rendering, consider grok-imagine-image-2.0 (from $0.0179 / image).
Which aspect ratios and resolutions are supported?
Set aspect_ratio to values like 1:1, 16:9, 9:16, 3:2, 2:3, 4:3 or 3:4, and resolution to 1k or 2k. The quality parameter is only supported by Image 2.0.
Can it edit images?
On AnyAIGC, grok-imagine-image uses the generation endpoint /v1/images/generations. To upload and modify an image, call /v1/images/edits with grok-imagine-image-2.0.
Do I need an xAI account?
No xAI account needed. Sign up on AnyAIGC to get an API key. The endpoint is https://anyaigc.ai, and the same key works with 300+ other models on the platform.
Is there a concurrency limit?
AnyAIGC sets no concurrency limit on the Grok Image models. Every account gets this by default, so batch jobs don’t need a quota request.
Can I get an invoice from AnyAIGC?
Yes. You can issue invoices yourself in the console, for the amount you actually topped up.
Which payment methods are supported?
You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.
Is there free trial credit for new users?
Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.
Can I get a refund on my balance?
Yes. Unused balance can be refunded with no fee. Contact support to start a refund.
Are these the real models? Is my data safe?
Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.
Can I use the images commercially?
Usage rights and content policy follow xAI’s official terms. AnyAIGC only provides API access and adds no extra restrictions on what you do with the output.
Start building with Grok Imagine Image
Sign up and get 5M free tokens. $0.0119 per image, unlimited concurrency.









