xAI
Operational· checked every few minutes

Grok Imagine Image 2.0 API

The Grok Imagine Image 2.0 API: xAI's image model for new images and edits at 1K or 2K, from $0.045 an image, below xAI's price.

Price per image25%off
1K
$0.045$0.06
2K
$0.06$0.08
Model IDgrok-imagine-image-2.0
generate.py
from openai import OpenAI
client = OpenAI(
base_url="https://api.zurelay.com/v1",
api_key="YOUR_ZURELAY_KEY",
)
image = client.images.generate(
model="grok-imagine-image-2.0",
prompt="A red fox sitting in fresh snow at dawn, photo",
size="2K",
extra_body={"aspect_ratio": "16:9"},
)
print(image.data[0].url)

Base URL https://api.zurelay.com/v1. Works with any OpenAI SDK. Grok Imagine Image guide

Resolutions
1K · 2K
Aspect ratios
1:1 to 21:9
Input
Text, Image
Output
Image
Status
Operational

Pricing

Grok Imagine Image 2.0 API pricing. A fraction of the list price.

Pay as you go from prepaid credit, with no subscription. Top up from $10. Requests that fail are never billed.

RateZurelayxAI list
1K image
per image
$0.045$0.06
2K image
per image
$0.06$0.08

Every image is checked against the resolution and aspect ratio you asked for before it's delivered.

Every Grok model and price
Savings calculator

Move the sliders to your monthly usage.

Images per month1,000
Resolution
Zurelay
$45.00
xAI list price
$60.00
You save every month$15.00

$180.00 a year

Overview

What is Grok Imagine Image 2.0?

Grok Imagine Image 2.0 is xAI's general image model for text-to-image and image editing, up to 2K. The Zurelay Grok Imagine Image 2.0 API makes images at xAI's medium quality for $0.045 at 1K and $0.06 at 2K, 25% below xAI's own price, and edits or combines up to 3 images at the same price.

Grok Imagine Image 2.0 is xAI's newer image model, for text-to-image and image editing up to 2K. On Zurelay it uses the model ID grok-imagine-image-2.0, and also accepts grok-imagine-image-2.

xAI prices it by resolution and quality: $0.06 for a 1K image and $0.08 for 2K at medium quality, plus $0.01 for each image you send to edit. Zurelay makes every image at medium quality and charges $0.045 at 1K and $0.06 at 2K, with the images you send included.

Send a prompt to POST /v1/images/generations with size 1K or 2K and an optional aspect_ratio: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9 or 21:9. Sizes are xAI's own, about one megapixel at 1K (1280 × 720 for 16:9) and four at 2K; Zurelay retries any image in another shape or resolution. To edit or combine, pass up to 3 images in images, or as files to /v1/images/edits; without an aspect_ratio, an edit keeps the shape of the image you send.

Strengths

Where Grok Imagine Image 2.0 shines. And what teams build with it.

01

Below xAI's price

$0.045 at 1K and $0.06 at 2K, against xAI's $0.06 and $0.08 for the same medium quality, and edits cost no more.

02

Eight shapes

From 21:9 banners to 9:16 stories, with xAI's sizes checked on every image.

03

Edits that combine

Put the person from one image, the product from another and the place from a third into one picture.

04

2K in one pass

About four megapixels straight from the model, for banners and print-ready drafts.

Use cases

  • Ad and social creatives

    Draft posters and promos with the copy in the image, in the shape each channel needs.

  • Product scenes

    Place a product photo into lifestyle settings and compare versions.

  • Recolors and touch-ups

    Change a color, a background or an object and keep the rest of the image.

  • Character composites

    Bring a character and a prop from separate images into one scene.

Get started

Call Grok Imagine Image 2.0 in three steps.

No waitlist and no new SDK. If your code already talks to OpenAI, it already talks to Zurelay.

  1. 1

    Create a key

    Sign up, add credit and create an API key. Set a monthly budget or a rate limit per key if you like.

  2. 2

    Point your SDK at Zurelay

    Change the base URL. Everything else in your code stays the same.

    https://api.zurelay.com/v1
  3. 3

    Use grok-imagine-image-2.0

    Send a prompt to /v1/images/generations with a size and aspect ratio, and get back a link to your image.

    grok-imagine-image-2.0

FAQ

Grok Imagine Image 2.0 API questions.

Anything else? Ask our team and we’ll answer by email.

How much does the Grok Imagine Image 2.0 API cost?

$0.045 for a 1K image and $0.06 for 2K, generation or edit. xAI's own price at the same medium quality is $0.06 and $0.08, plus $0.01 for each image you send; on Zurelay the images you send are included.

Which sizes and aspect ratios does Grok Imagine Image 2.0 support?

1K (the default) and 2K, in 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9 and 21:9. Sizes are xAI's own: about one megapixel at 1K, such as 1024 × 1024 square or 1280 × 720 for 16:9, and about four at 2K. 4:5 and 5:4 aren't available.

Can I edit images with Grok Imagine Image 2.0?

Yes. Send up to 3 images in images on /v1/images/generations, as https URLs or base64 data URLs, or as files to /v1/images/edits with the OpenAI SDK, and describe the change. Without an aspect_ratio, the result keeps the shape of the image you send.

Can I choose the quality?

Every image is made at xAI's medium quality, the level priced on this page; there's no quality setting.

Can I call the Grok Imagine Image 2.0 API with the OpenAI SDK?

Yes. Point the OpenAI SDK at https://api.zurelay.com/v1 and call images.generate with model grok-imagine-image-2.0 and size 1K or 2K. Pass aspect_ratio through extra_body in Python or as an extra body property in Node.

Is this xAI's Grok Imagine Image 2.0?

Yes. Your requests run on xAI's Grok Imagine Image 2.0, and Zurelay checks each image's resolution and shape before delivering it. Zurelay is an independent service and is not affiliated with xAI.

More models on Zurelay

All models

Stop paying list price.
Start saving today.

Create a key in seconds, point the SDK you already use at Zurelay, and every request costs up to 90% less from the first token.