Grok Imagine Image 2.0 Edit API

xai/grok-imagine-image-2-edit

Edit images with a text instruction with Grok Imagine Image 2.0 Edit by xAI through the Solo Router API. from $0.091 / image, billed from prepaid credit.

Price
from $0.091
per image

Example request

curl https://solorouter.ai/api/v1/images/generations \
  -H "Authorization: Bearer $SOLO_KEY" -H "Content-Type: application/json" \
  -d '{"model": "xai/grok-imagine-image-2-edit", "prompt": "make it night time", "image_url": "https://example.com/photo.jpg"}'

More from xAI

ModelContextInput / 1MOutput / 1MCached / 1M
Grok Imagine Image 2.0
xai/grok-imagine-image-2 · images
— $0.078 / image

Frequently asked questions

How much does Grok Imagine Image 2.0 Edit cost?

from $0.091 / image, billed from prepaid credit with no monthly fee.

How do I use the Grok Imagine Image 2.0 Edit API?

Sign in to Solo Router with Google, create an API key and send "model": "xai/grok-imagine-image-2-edit" to the endpoint shown in the example above.

Get your API key in 30 seconds

Sign in with Google. New accounts get free credit (one per person) to try the models.

Get started free