xAI/xai-grok-imagine-image-edit/Released Feb 2026

Grok Imagine - Image Edit

Edit images with Grok Imagine

Commercial use
Image

About Grok Imagine - Image Edit

Grok Imagine - Image Edit is part of xAI's Grok Imagine suite, a multimodal creative stack supporting image-to-image generation with strong prompt adherence, cinematic aesthetics, style adaptation (including anime), and advanced world/physics understanding. It excels in believable lighting, coherent composition, and production-ready outputs suitable for video game ads and creative workflows.

Ready to build with Grok Imagine - Image Edit?

Try Grok Imagine - Image Edit in the Workbench to prompt it, compare outputs, and iterate on prompts without writing any code. When you're ready to ship, call the same model from our API and build your own apps on top of it.

curl -sSf -X POST https://hub.oxen.ai/api/ai/images/edit \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $OXEN_API_KEY" \
    -d '{
  "model": "xai-grok-imagine-image-edit",
  "prompt": "Place the ox in a neon-lit cyberpunk city at night, rain-slick streets reflecting pink and cyan signs, cinematic lighting",
  "input_image": "https://hub.oxen.ai/api/repos/ox/Oxen-Character-Simple-Vector-Graphic/file/main/images/reference/bloxy_white_bg.png",
  "output_format": "webp"
}'

Request parameters

Every field Grok Imagine - Image Edit accepts in the request body. See the API reference for response formats.

POSThttps://hub.oxen.ai/api/ai/images/edit
FieldTypeRequiredDefaultDescription
promptstringYes
—
Prompt for generated image
input_imagestring
uri
Yes
—
Image you want to edit.
output_formatstringNo"webp"Format of the output images
webpjpegpng