Theme
Language
Images

Grok Imagine API — how to connect and pay

Grok Imagine — generation and image-to-image from xAI (docs.Pixel/market/grok-imagine/image-to-image). 4 credits per image; I2I requires an input image.

Channel comparison

last 7 days

Channel
Whitegrok-imagine:whitedefaultcheapest
Price
from $0.021333 per image
Channel
Pixelgrok-imagine
Price
from $0.021333 per image

Build the result you need

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

What is Grok Imagine

Grok Imagine — generation and image-to-image from xAI (docs.Pixel/market/grok-imagine/image-to-image). 4 credits per image; I2I requires an input image.

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
  • 5 configurable options
  • 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

The cost of Grok Imagine: from $0.021333 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.

What a default request costs

With no parameters sent, the request uses these values: Mode — Generation, Frame format — 1:1, Pro (quality over speed) — No. That request costs $0.021333.

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:whitefrom $0.021333exact prices
Pro (quality over speed) \ ModeGeneration
No$0.021333
Pixelgrok-imaginefrom $0.021333exact prices
Pro (quality over speed) \ ModeGeneration
No$0.021333

FAQ about the Grok Imagine API

How much does Grok Imagine cost?

The price of Grok Imagine: from $0.021333 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 right now

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

Get API key