Theme
Language
Images

Grok Imagine Image 2.0 API — how to connect and pay

Grok Imagine Image 2.0 (xAI) — text-to-image at 1K, base quality, or editing from one source image. Priced per image; a source image adds a surcharge that is included in the price quote.

Channel comparison

last 7 days

Channel
Whitegrok-imagine-image-2.0:whitedefault
Price
from $0.042667 per image

Build the result you need

grok-imagine-image-2.0:white
Resolution
Input: Text, ImageSome modes require you to attach: source image

What is Grok Imagine Image 2.0

Grok Imagine Image 2.0 (xAI) — text-to-image at 1K, base quality, or editing from one source image. Priced per image; a source image adds a surcharge that is included in the price quote.

Contract at a glance

Input
text, image
Output
image
Mode
async (job + polling)
Status polling
every 3 s · up to 90 s

Strengths

  • Pricing: per image
  • Inputs: text, image
  • One API key for media generation

Where it is used

  • Article and social media illustrations
  • Product images
  • Banners and covers
  • Design prototypes

Price of Grok Imagine Image 2.0

The cost of Grok Imagine Image 2.0: from $0.042667 per image. The price is calculated dynamically at the current exchange rate, and the final charge is shown in the API response (priceRub). Payment in USD, no subscriptions.

Channels and prices for every parameter combination

For every channel, the price of every parameter combination. It is exactly the amount a successful generation is charged, and the same figure as in the machine-readable table linked below.

Whitegrok-imagine-image-2.0:whitefrom $0.042667exact prices
PricePrice
White$0.042667

FAQ about the Grok Imagine Image 2.0 API

How much does Grok Imagine Image 2.0 cost?

The price of Grok Imagine Image 2.0: from $0.042667 per image. The price is calculated dynamically at the current exchange rate.

Is it compatible with the OpenAI SDK?

Yes, the API is fully OpenAI-compatible. Just change base_url to https://getvibeapi.com/v1 and set your key — the rest of the code stays the same.

Connect Grok Imagine Image 2.0 right now

Sign up in a minute, pay per use, ready-made code above.

Get API key