Skip to main content
AnyAIGC

xAI · Released August 2026

Grok Imagine Image 2.0 API

xAI’s new image generation and editing model lays out text like a designer, small print included. On AnyAIGC it starts at $0.0179 / image (1K Low), about 55% below xAI’s list price, with unlimited concurrency.

  • Model grok-imagine-image-2.0
  • Price From $0.0179 / image
  • Resolution 1k / 1.5k / 2k
  • Concurrency Unlimited
  • Business Self-service invoices
  • Halftone portrait rendered entirely in fine white dots
  • Suzhou three-day itinerary infographic with schedule and tips
  • Vintage travel poster of an Italian Riviera town
  • Cinematic close-up glancing back across a candlelit ballroom
  • Retro pixel-art RPG title screen
  • Surreal "World is so vast" travel poster with a whole world in a hat
  • Classical Chinese ink painting of a waterfall and a robed figure
  • Gritty motivational poster of a sprinter in orange and black
  • Soft manga page of a girl among cherry blossoms at dusk
  • Photo book spread on a Starship flight test

What is Grok Imagine Image 2.0

Grok Imagine Image 2.0 is the image model xAI released in August 2026. It’s the new Quality mode on grok.com and in the Grok app, and grok-imagine-image-2.0 in the API. xAI pitches it as a model for images you can actually use at work: it follows prompt details closely, plans text and layout like a designer, and keeps what you gave it across generations and edits.

According to xAI’s launch post, it placed second on both Arena’s image edit and text-to-image leaderboards (data as of Aug 7, 2026). Starting November 2026, xAI folded the older grok-imagine-image-quality into this model.

On AnyAIGC it’s priced by resolution and quality, from $0.0179 (1K Low) to $0.0357 (2K Medium) per image, about 55% below xAI’s list price of $0.04–$0.08 / image. Edits add $0.00447 per input image.

Model
grok-imagine-image-2.0
Generate
/v1/images/generations
Edit
/v1/images/edits
Resolution
1k / 1.5k / 2k
Quality
low / medium / auto
Aspect ratios
15 + auto

What Grok Imagine Image 2.0 can do

These samples were generated by Imagine Image 2.0 and come from xAI’s launch post.

  • Suzhou three-day itinerary infographic with schedule and tips

    Text and layout

    Headlines, small print, schedules and captions are laid out the way a designer would, so dense posters, itineraries and infographics stay readable.

  • Template: background removal and change

    Precise edits

    Change only what you ask for and keep the rest. Swap a background, recolor a product or remove clutter with one sentence.

  • Character: an archer in a snowbound castle courtyard

    Consistent style

    Characters, locations and props generated separately keep the same look, which suits storyboards, picture books and game assets.

  • Pixel-art SpaceX infographic of Falcon 9, Dragon and Starship

    Many styles

    Photoreal, ink wash, pixel art, manga and retro posters all come out reliably, with clear detail and texture.

  • 16:9

    15 aspect ratios

    From 1:2 portrait to 21:9 widescreen. Pick a ratio and the model recomposes the scene instead of cropping it.

  • Template: e-commerce product photos

    Product and marketing shots

    Colorways, marketplace hero images and editorial product posters, ready to use from a single call.

One image, any aspect ratio

The model recomposes the same scene for each aspect ratio (xAI samples). Set it with the aspect_ratio parameter.

  • The same scene recomposed at 1:2
    1:2
  • The same scene recomposed at 9:16
    9:16
  • The same scene recomposed at 3:4
    3:4
  • The same scene recomposed at 1:1
    1:1
  • The same scene recomposed at 16:9
    16:9
  • The same scene recomposed at 2:1
    2:1
  • 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
  • 21:9
  • 5:2
  • auto

One art style for a whole world

Characters, locations and props each come from a few lines of prompt and share one look, ready for storyboards and game design (xAI samples).

  • Character: an archer in a snowbound castle courtyard
    Character
  • Location: longships frozen into a snowed-in harbor
    Location
  • Location: a walled war camp under snowfall
    Location
  • Prop: a rune-carved knife and leather pouch
    Prop
  • Prop: an antler crown inscribed with runes
    Prop
  • Same character in a blizzard, warming her hand
    Character
  • Location: a fog-breathing tunnel in a glacier wall
    Location

Grok Imagine Image 2.0 API pricing

Priced by resolution and quality, from $0.0179 to $0.0357 per image, not per token.

  • Per imageBilled per generated image, not per token
  • By resolution and quality1K / 1.5K / 2K, Low / Medium
  • EditsPlus $0.00447 per input image
  • Unlimited concurrencyOn by default for everyone
Grok Image API pricing (USD)
ResolutionQualityAnyAIGC outputEdit input imagexAI list output
Grok Imagine Image 2.0 grok-imagine-image-2.0
1KLow$0.0179 / image$0.00447 / image$0.04 / image
1.5KLow$0.0223 / image$0.00447 / image$0.05 / image
2KLow$0.0268 / image$0.00447 / image$0.06 / image
1KMedium$0.0268 / image$0.00447 / image$0.06 / image
1.5KMedium$0.0313 / image$0.00447 / image$0.07 / image
2KMedium$0.0357 / image$0.00447 / image$0.08 / image

Prices from the AnyAIGC model catalog; edits add $0.00447 per input image. xAI list prices (Low–Medium): 1K $0.04–$0.06, 1.5K $0.05–$0.07, 2K $0.06–$0.08 / image, plus $0.01 per input image (xAI pricing). Billed per successful generation; live prices are in the model catalog.

Cost examples

Straight multiplication of the prices above, nothing else added.

  • 1,000 images at 1K Low

    1,000 × $0.0179

    $17.90

    Batch generation

  • 1,000 images at 2K Medium

    1,000 × $0.0357

    $35.70

    Most detail

  • 100 edits at 1K Low

    100 × ($0.0179 + $0.00447)

    $2.24

    Output + input image

Grok Imagine Image 2.0 use cases

  • Template: e-commerce product photos
    E-commerce

    Product and lifestyle shots

    Upload a product photo, change the background or color, and batch out hero images for different scenes.

  • Template: editorial product poster
    Marketing

    Posters and ads

    Put the headline, selling points and fine print right in the image for event posters, social posts and banners.

  • Suzhou three-day itinerary infographic with schedule and tips
    Content

    Infographics and itineraries

    Timelines, maps, schedules and tips on one page, made for travel guides, explainers and study cards.

  • Location: longships frozen into a snowed-in harbor
    Games

    Characters and worlds

    Characters, locations and props keep one art style even when generated separately, ready for concept art.

  • Template: professional headshot
    Portraits

    Professional headshots

    Turn one selfie into a clean, business-attire headshot for resumes and team pages.

  • Template: icon maker
    Design

    Icons and merch

    Icons, stickers, T-shirt and mug mockups. Generate a first pass, then hand it to a designer.

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.ai needs 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 2.0 API

  1. Sign up for AnyAIGC. New accounts get 5M free tokens, and you can top up from $1.
  2. Create an API key in the console and save it as the ANYAIGC_API_KEY environment variable.
  3. Send a request to POST https://anyaigc.ai/v1/images/generations with model set to grok-imagine-image-2.0. For edits, use POST /v1/images/edits.
Python · grok-imagine-image-2.0 text to 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-2.0",
        "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 / 1.5k / 2k
        "quality": "medium",  # low / medium / auto (2.0 only)
        "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 · returns an image URL
curl https://anyaigc.ai/v1/images/generations \
  -H "Authorization: Bearer $ANYAIGC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-image-2.0",
    "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"
  }'
Python · upload and edit an image
import os
import requests

# Image editing: upload the source image as multipart/form-data
API_KEY = os.environ["ANYAIGC_API_KEY"]
with open("photo.png", "rb") as img:
    resp = requests.post(
        "https://anyaigc.ai/v1/images/edits",
        headers={"Authorization": "Bearer " + API_KEY},
        files={"image": img},
        data={"model": "grok-imagine-image-2.0", "prompt": "Replace the background with a snowy city street, keep the person and lighting unchanged", "n": 1},
        timeout=300,
    )
resp.raise_for_status()
print(resp.json()["data"][0])

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, Edit image.

Grok Imagine Image 2.0 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.

Payment methods
  • 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.

Specs and how to choose it

The official model page says grok-imagine-image-2.0 takes text and image input and returns images.

The official image generation docs list 1k (the default when omitted) and 2k resolutions, and the n parameter generates 1 to 10 images per request.

Aspect ratios include 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1 and 1:2, with auto as the default so the model picks a ratio from the prompt.

The official model-selection table points image tasks at Image 2.0.

This page lists 1K at $0.0179 / image, 1.5K at $0.0223 / image, 2K at $0.0268 / image, 1K at $0.0268 / image, matching the pricing table above.

the official docs list a dated alias, grok-imagine-image-2026-03-02, for grok-imagine-image, so look at that page when you need to pin a release.

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 2.0 API FAQ

How much does the Grok Imagine Image 2.0 API cost?

On AnyAIGC, Grok Imagine Image 2.0 (grok-imagine-image-2.0) is priced by resolution and quality. Low is $0.0179 / $0.0223 / $0.0268 and Medium is $0.0268 / $0.0313 / $0.0357 per image at 1K / 1.5K / 2K. Edits add $0.00447 per input image. xAI’s list price is $0.04–$0.08 / image plus $0.01 per input image, so AnyAIGC is about 55% below it. Billed per successful generation; live prices are in the model catalog.

How is Image 2.0 different from the earlier Grok Imagine?

2.0 improves typography, prompt following and editing. Small text in infographics and posters is sharper, and multi-turn edits keep the original content. It also adds quality (low / medium / auto) and two new ratios, 21:9 and 5:2. The first-gen grok-imagine-image is still available at $0.0119 / image.

How should I set the quality parameter?

quality accepts low, medium or auto. Per xAI’s docs, the default auto currently uses low for generation and medium for edits. Low is faster, medium adds detail. Medium costs more on AnyAIGC: at 1K, Low is $0.0179 and Medium is $0.0268 per image.

Which aspect ratios and resolutions are supported?

aspect_ratio supports 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, 21:9 and 5:2, or auto. Set resolution to 1k, 1.5k or 2k.

How do I edit an image? Can I use several references?

Send image, prompt and model to POST /v1/images/edits as multipart/form-data. Describe only what should change and the rest stays as is. xAI supports compositing up to 5 reference images per request; the AnyAIGC docs currently show a single-image example, so check the AnyAIGC API docs for multi-image input.

Does grok-imagine-image-quality still work?

xAI merged grok-imagine-image-quality into 2.0 on Nov 2, 2026, so those requests are served by 2.0 at low quality. Old code still runs on AnyAIGC (from $0.0223 / image), but 2.0 at Low quality is $0.0044–$0.0045 cheaper per image at every resolution, so switching model to grok-imagine-image-2.0 saves money.

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 2.0

Sign up and get 5M free tokens. From $0.0179 per image, unlimited concurrency.