Skip to content
xAIChecking

grok-imagine-image/image-to-image

grok-imagine-image-image-to-image-economy

image to imageOutput: ImageInput: text + image
Loading price…
Official list price · Not verified

What it does

In the image-to-image mode, Grok 4.2 transforms into a highly controllable visual design engine. By uploading basic line art, composition sketches, or existing photos as visual anchors, users can achieve precise style transfers, targeted inpainting, and texture upgrades via text commands. This workflow strictly preserves the original image's core spatial structure, significantly enhancing design efficiency.

Core Trait AnchoringStrict Composition PreservationSmart Style TransferPrecise InpaintingCreative Extension

Input parameters

Only the fields this model accepts. Required fields must be provided.

FieldTypeRequiredDefaultAllowed values and constraints
model
stringrequired"g-4.2"

One of: "g-3", "g-4", "g-4.1", "g-4.2"

prompt
stringrequired—
imageUrl
stringoptional—

HTTPS image URL or media:<uuid>

Limits and behaviour

  • Asynchronous only: submit a task, then poll for the result.
  • Media inputs accept public HTTPS URLs or media:<uuid> references from POST /api/v1/media.