Skip to main content

Try Grok Imagine - Image Edit in the Workbench

Run this model interactively, tune parameters, and compare outputs.
Model ID: xai-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. This endpoint specifically handles text-to-image generation.

Example request

Use the Workbench as a request builder: configure parameters for this model in the UI, then open the API tab to copy the exact cURL or Python call.
See the image editing reference for more details.
curl -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": "<prompt>",
  "input_image": "https://hub.oxen.ai/api/repos/elau/assets/file/main/bloxy/bloxy_cropped_512x512.png"
}'

Fetch model details

The models endpoint returns the full model object, including its json_request_schema.
curl -H "Authorization: Bearer $OXEN_API_KEY" https://hub.oxen.ai/api/ai/models/xai-grok-imagine-image-edit

Request parameters

Required parameters

FieldTypeDefaultDescription
promptstring""Prompt for generated image
input_imagestringImage you want to edit. Format: uri.

Optional parameters

FieldTypeDefaultDescription
output_formatstring"webp"Format of the output images One of: webp, jpg, png.