Skip to content
xAIChecking

grok-imagine-image/text-to-image

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

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

What it does

Grok 4.2's text-to-image mode empowers creators to build magnificent visual worlds entirely from scratch. By simply inputting natural language descriptions, the model accurately parses semantics to generate images with ultra-high definition, rich details, and perfect lighting. From complex text typography and photorealistic shots to imaginative fantasy scenes, a single prompt instantly turns creative concepts into vivid reality.

Precise Semantic ParsingZero-to-One CreationExtreme Detail FidelityMulti-Style SwitchingPerfect Text Rendering

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—
aspectRatio
stringoptional—

One of: "960x960", "720x1280", "1280x720", "1168x784", "784x1168"

Limits and behaviour

  • Asynchronous only: submit a task, then poll for the result.