xai logo 28%

Grok Imagine 2.0 (image-to-image) API

xAI·Image

Grok Imagine 2.0 — xAI’s image-editing model that transforms a source image from a text prompt, and can compose multiple input images.

1 req/24h $0.07 24h volume
Input
Text
Output
Image

Pricing

Pay per generation. Pay with 350+ cryptocurrencies.

Per image

$0.10428%

OpenRouter $0.082

What Grok Imagine 2.0 (image-to-image) costs at volume

10 images
$1.04
OpenRouter $0.82
100 images
$10.39
OpenRouter $8.15
1,000 images
$103.91
OpenRouter $81.50

Capabilities · 4

JSON mode Negative prompt 1024x1024 · 1792x1024 · 1024x1792 16:9 · 9:16 · 1:1

Specifications

Context window
—
Max output
—
Type
Image
Creator
xAI
Live sellers
5
Requests / 24h
1

Quick start

OpenAI-compatible — change the base URL and key. Get a key from the dashboard.

from openai import OpenAI
import base64

client = OpenAI(base_url="https://api.qubax.ai/v1", api_key="YOUR_QUBAX_API_KEY")

img = client.images.generate(
    model="grok-imagine-image-2-0-edit",
    prompt="a red fox in fresh snow, golden hour, 35mm photo",
    size="1024x1024",
    n=1,
)
open("fox.png", "wb").write(base64.b64decode(img.data[0].b64_json))

About Grok Imagine 2.0 (image-to-image)

Grok Imagine 2.0 (image-to-image) is an image editing model from xAI. It outputs 1024x1024, 1792x1024 and 1024x1792 and accepts negative prompts. On Qubax you call it through the OpenAI-compatible /v1/images/generations endpoint and images come back inline as base64.

As of Nov 20, 2026, Grok Imagine 2.0 (image-to-image) costs $0.104 per image on Qubax. 5 independent compute providers currently serve it, so requests fail over automatically. Pay with USDC, USDT, BTC, ETH or 350+ other coins — no credit card required.

Photo editing
Change backgrounds, objects and style with a prompt
Product & e-commerce
Catalog shots and lifestyle images at scale
Concept art
Explore styles and ideas in seconds
In-app generation
Let your users generate images through your app

Frequently asked questions

How much does the Grok Imagine 2.0 (image-to-image) API cost?

On Qubax, Grok Imagine 2.0 (image-to-image) costs $0.104 per image.

Is the Grok Imagine 2.0 (image-to-image) API compatible with OpenAI?

Yes. Qubax provides an OpenAI-compatible API. You can use Grok Imagine 2.0 (image-to-image) as a drop-in replacement by changing your base URL to https://api.qubax.ai/v1 and using your Qubax API key. It works with Cline, Cursor, OpenCode, Hermes Agent, and any tool that supports OpenAI APIs.

How do I pay for Grok Imagine 2.0 (image-to-image) API usage?

Qubax uses prepaid crypto credits. Top up with USDC, USDT, BTC, ETH, SOL or 350+ other coins and your balance is deducted as you use the API. No credit card or KYC required.

What can I make with Grok Imagine 2.0 (image-to-image)?

Grok Imagine 2.0 (image-to-image) is a image editing model. Common uses: photo editing, product & e-commerce, concept art and in-app generation. Call it from your own code with a Qubax API key, or try it in Qubax Studio first.

Can I use Grok Imagine 2.0 (image-to-image) for commercial projects?

Yes. Grok Imagine 2.0 (image-to-image) on Qubax can be used for commercial purposes. You own the outputs you generate. Qubax provides the API infrastructure — you bring your use case.

Why use Grok Imagine 2.0 (image-to-image) on Qubax?

Live market prices

Providers compete on price — you get the cheapest healthy seller.

Pay with crypto

350+ coins (BTC, ETH, SOL, USDT, USDC). No card, no KYC.

OpenAI & Anthropic compatible

Drop-in base URL. Works with Cline, Cursor, Claude Code, OpenAI and Anthropic SDKs.

Get started free →

More from xAI

Browse 380+ other AI models

GPT, Claude, Gemini, Llama, DeepSeek & more.

See all models →

Grok Imagine 2.0 (image-to-image)

$0.104 / image

Get API key