Imagexai$0.04 / image

Grok Imagine · image

Stylised images, quick. By xai.

xai/grok-imagine-image/image-edit

View docs
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/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 deliberately bad paint-program doodle of a car stuck behind a cow
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 · image 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 · image Text to image$0.04 / image1K – 2K—
Grok Imagine · image Image edit$0.04 / image1K – 2K—
Grok Imagine · text→videoText to video · Image to video · Reference to video · Video edit · Video extendfrom $0.05 / s480p – 720p1 – 15 s