ImagexAI$0.04 / image

Grok Imagine 2.0

Stylised and quick, 13 aspect ratios. By xAI.

xai/grok-imagine-image-2/image-edit

const res = await fetch("https://api.elyum.ai/v1/generations", {  method: "POST",  headers: {    Authorization: `Bearer ${process.env.ELYUM_API_KEY}`,    "Content-Type": "application/json",    Prefer: "wait=55",  },  body: JSON.stringify({    "model": "xai/grok-imagine-image-2/image-edit",    "prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",    "inputs": [      {        "role": "reference",        "url": "https://example.com/reference.jpg"      }    ]  }),});const generation = await res.json();console.log(generation.status, generation.outputs);

Input

Referenceimage · up to 10

Result

A sample Grok Imagine 2.0 render
Example
Price

$0.04 per image. Charged when the file is delivered; a render that fails or is canceled costs nothing.

More models by xAI

Grok Imagine 2.0 task by task, then the lowest price of each other model. What a render costs depends on the resolution and length you choose.

ModelPriceResolutionLength
Grok Imagine 2.0 Text to image$0.04 / image1K – 2K—
Grok Imagine 2.0 Image edit$0.04 / image1K – 2K—
Grok Imagine 1.5Text to video · Image to video · Reference to videofrom $0.05 / s480p – 720p1 – 15 s