MODEL IDxai:grok-imagine@image
live

Grok Imagine Image

xAI
by xAI

Grok Imagine Image is a multimodal generative image model that creates high-quality still images from text prompts or image inputs. It supports flexible visual synthesis across a range of styles, enabling developers to generate creative imagery directly from structured prompts or to expand on existing visuals with coherent, detailed outputs.

Grok Imagine Image
Text to Image

Neon Samurai Portrait

Neon Samurai Portrait

A striking portrait of a futuristic samurai standing in light rain beneath glowing neon signs, lacquered black armor with subtle holographic accents, a translucent visor, detailed katana hilt, drifting mist, reflections on wet pavement, cinematic rim lighting, rich magenta and cyan color palette, ultra-detailed face, atmospheric depth, high-contrast composition, premium editorial sci-fi artwork

import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'xai:grok-imagine@image',
  positivePrompt: 'A striking portrait of a futuristic samurai standing in light rain beneath glowing neon signs, lacquered black armor with subtle holographic accents, a translucent visor, detailed katana hilt, drifting mist, reflections on wet pavement, cinematic rim lighting, rich magenta and cyan color palette, ultra-detailed face, atmospheric depth, high-contrast composition, premium editorial sci-fi artwork',
  width: 1024,
  height: 1024
})
import asyncio
import os

from runware import Runware


async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "xai:grok-imagine@image",
            "positivePrompt": "A striking portrait of a futuristic samurai standing in light rain beneath glowing neon signs, lacquered black armor with subtle holographic accents, a translucent visor, detailed katana hilt, drifting mist, reflections on wet pavement, cinematic rim lighting, rich magenta and cyan color palette, ultra-detailed face, atmospheric depth, high-contrast composition, premium editorial sci-fi artwork",
            "width": 1024,
            "height": 1024
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "6232cbbe-e77d-415b-8f53-410b8d1acd40",
      "model": "xai:grok-imagine@image",
      "positivePrompt": "A striking portrait of a futuristic samurai standing in light rain beneath glowing neon signs, lacquered black armor with subtle holographic accents, a translucent visor, detailed katana hilt, drifting mist, reflections on wet pavement, cinematic rim lighting, rich magenta and cyan color palette, ultra-detailed face, atmospheric depth, high-contrast composition, premium editorial sci-fi artwork",
      "width": 1024,
      "height": 1024
    }
  ]'
runware run xai:grok-imagine@image \
  positivePrompt="A striking portrait of a futuristic samurai standing in light rain beneath glowing neon signs, lacquered black armor with subtle holographic accents, a translucent visor, detailed katana hilt, drifting mist, reflections on wet pavement, cinematic rim lighting, rich magenta and cyan color palette, ultra-detailed face, atmospheric depth, high-contrast composition, premium editorial sci-fi artwork" \
  width=1024 \
  height=1024
{
  "taskType": "imageInference",
  "taskUUID": "6232cbbe-e77d-415b-8f53-410b8d1acd40",
  "model": "xai:grok-imagine@image",
  "positivePrompt": "A striking portrait of a futuristic samurai standing in light rain beneath glowing neon signs, lacquered black armor with subtle holographic accents, a translucent visor, detailed katana hilt, drifting mist, reflections on wet pavement, cinematic rim lighting, rich magenta and cyan color palette, ultra-detailed face, atmospheric depth, high-contrast composition, premium editorial sci-fi artwork",
  "width": 1024,
  "height": 1024
}
Response
{
  "taskType": "imageInference",
  "taskUUID": "6232cbbe-e77d-415b-8f53-410b8d1acd40",
  "imageUUID": "f8b088f0-445f-4599-a07d-5281aa2a4516",
  "imageURL": "https://im.runware.ai/image/os/a11d13/ws/2/ii/f8b088f0-445f-4599-a07d-5281aa2a4516.jpg",
  "seed": 2109460328,
  "cost": 0.02
}
Text to Image

Neon Rain Alley Portrait

Neon Rain Alley Portrait

A cinematic cyberpunk portrait of a lone courier կանգing in a narrow neon-lit alley at night, reflective rain-slick pavement, holographic shop signs in magenta and teal, soft mist drifting through the scene, detailed futuristic streetwear with glowing trim, subtle facial scars, confident expression, dramatic rim lighting, shallow depth of field, ultra-detailed textures, moody atmosphere, high contrast, realistic skin tones, premium editorial photography style

import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'xai:grok-imagine@image',
  positivePrompt: 'A cinematic cyberpunk portrait of a lone courier կանգing in a narrow neon-lit alley at night, reflective rain-slick pavement, holographic shop signs in magenta and teal, soft mist drifting through the scene, detailed futuristic streetwear with glowing trim, subtle facial scars, confident expression, dramatic rim lighting, shallow depth of field, ultra-detailed textures, moody atmosphere, high contrast, realistic skin tones, premium editorial photography style',
  width: 1280,
  height: 896
})
import asyncio
import os

from runware import Runware


async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "xai:grok-imagine@image",
            "positivePrompt": "A cinematic cyberpunk portrait of a lone courier կանգing in a narrow neon-lit alley at night, reflective rain-slick pavement, holographic shop signs in magenta and teal, soft mist drifting through the scene, detailed futuristic streetwear with glowing trim, subtle facial scars, confident expression, dramatic rim lighting, shallow depth of field, ultra-detailed textures, moody atmosphere, high contrast, realistic skin tones, premium editorial photography style",
            "width": 1280,
            "height": 896
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "55864462-dfd9-4374-9f69-7273f230e732",
      "model": "xai:grok-imagine@image",
      "positivePrompt": "A cinematic cyberpunk portrait of a lone courier կանգing in a narrow neon-lit alley at night, reflective rain-slick pavement, holographic shop signs in magenta and teal, soft mist drifting through the scene, detailed futuristic streetwear with glowing trim, subtle facial scars, confident expression, dramatic rim lighting, shallow depth of field, ultra-detailed textures, moody atmosphere, high contrast, realistic skin tones, premium editorial photography style",
      "width": 1280,
      "height": 896
    }
  ]'
runware run xai:grok-imagine@image \
  positivePrompt="A cinematic cyberpunk portrait of a lone courier կանգing in a narrow neon-lit alley at night, reflective rain-slick pavement, holographic shop signs in magenta and teal, soft mist drifting through the scene, detailed futuristic streetwear with glowing trim, subtle facial scars, confident expression, dramatic rim lighting, shallow depth of field, ultra-detailed textures, moody atmosphere, high contrast, realistic skin tones, premium editorial photography style" \
  width=1280 \
  height=896
{
  "taskType": "imageInference",
  "taskUUID": "55864462-dfd9-4374-9f69-7273f230e732",
  "model": "xai:grok-imagine@image",
  "positivePrompt": "A cinematic cyberpunk portrait of a lone courier կանգing in a narrow neon-lit alley at night, reflective rain-slick pavement, holographic shop signs in magenta and teal, soft mist drifting through the scene, detailed futuristic streetwear with glowing trim, subtle facial scars, confident expression, dramatic rim lighting, shallow depth of field, ultra-detailed textures, moody atmosphere, high contrast, realistic skin tones, premium editorial photography style",
  "width": 1280,
  "height": 896
}
Response
{
  "taskType": "imageInference",
  "taskUUID": "55864462-dfd9-4374-9f69-7273f230e732",
  "imageUUID": "67c804a9-b608-49e7-a18d-2256f627deca",
  "imageURL": "https://im.runware.ai/image/os/a24d12/ws/2/ii/67c804a9-b608-49e7-a18d-2256f627deca.jpg",
  "seed": 1258361433,
  "cost": 0.02
}
Text to Image

Surreal Astronaut Dreamscape

Surreal Astronaut Dreamscape

A surreal cinematic scene of a lone astronaut standing on a mirror-like salt flat under a giant glowing jellyfish-shaped nebula, distant crystalline mountains, floating shards of glass reflecting starlight, volumetric moonbeams, ultra-detailed suit textures, vivid teal and magenta color palette, atmospheric haze, dramatic composition, photorealistic yet dreamlike, high contrast, intricate environmental detail

import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'xai:grok-imagine@image',
  positivePrompt: 'A surreal cinematic scene of a lone astronaut standing on a mirror-like salt flat under a giant glowing jellyfish-shaped nebula, distant crystalline mountains, floating shards of glass reflecting starlight, volumetric moonbeams, ultra-detailed suit textures, vivid teal and magenta color palette, atmospheric haze, dramatic composition, photorealistic yet dreamlike, high contrast, intricate environmental detail',
  width: 1280,
  height: 896
})
import asyncio
import os

from runware import Runware


async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "xai:grok-imagine@image",
            "positivePrompt": "A surreal cinematic scene of a lone astronaut standing on a mirror-like salt flat under a giant glowing jellyfish-shaped nebula, distant crystalline mountains, floating shards of glass reflecting starlight, volumetric moonbeams, ultra-detailed suit textures, vivid teal and magenta color palette, atmospheric haze, dramatic composition, photorealistic yet dreamlike, high contrast, intricate environmental detail",
            "width": 1280,
            "height": 896
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "39571168-687a-4aec-a253-df7be20bd0d4",
      "model": "xai:grok-imagine@image",
      "positivePrompt": "A surreal cinematic scene of a lone astronaut standing on a mirror-like salt flat under a giant glowing jellyfish-shaped nebula, distant crystalline mountains, floating shards of glass reflecting starlight, volumetric moonbeams, ultra-detailed suit textures, vivid teal and magenta color palette, atmospheric haze, dramatic composition, photorealistic yet dreamlike, high contrast, intricate environmental detail",
      "width": 1280,
      "height": 896
    }
  ]'
runware run xai:grok-imagine@image \
  positivePrompt="A surreal cinematic scene of a lone astronaut standing on a mirror-like salt flat under a giant glowing jellyfish-shaped nebula, distant crystalline mountains, floating shards of glass reflecting starlight, volumetric moonbeams, ultra-detailed suit textures, vivid teal and magenta color palette, atmospheric haze, dramatic composition, photorealistic yet dreamlike, high contrast, intricate environmental detail" \
  width=1280 \
  height=896
{
  "taskType": "imageInference",
  "taskUUID": "39571168-687a-4aec-a253-df7be20bd0d4",
  "model": "xai:grok-imagine@image",
  "positivePrompt": "A surreal cinematic scene of a lone astronaut standing on a mirror-like salt flat under a giant glowing jellyfish-shaped nebula, distant crystalline mountains, floating shards of glass reflecting starlight, volumetric moonbeams, ultra-detailed suit textures, vivid teal and magenta color palette, atmospheric haze, dramatic composition, photorealistic yet dreamlike, high contrast, intricate environmental detail",
  "width": 1280,
  "height": 896
}
Response
{
  "taskType": "imageInference",
  "taskUUID": "39571168-687a-4aec-a253-df7be20bd0d4",
  "imageUUID": "c62f6951-f37f-4019-a51c-0ed55c202732",
  "imageURL": "https://im.runware.ai/image/os/a20d05/ws/2/ii/c62f6951-f37f-4019-a51c-0ed55c202732.jpg",
  "seed": 1218818176,
  "cost": 0.02
}
Text to Image

Surreal Bioluminescent Forest

Surreal Bioluminescent Forest

A surreal bioluminescent forest at twilight, towering crystalline trees glowing with teal and violet light, floating pollen-like sparks, a glassy stream reflecting luminous mushrooms and enormous fern leaves, a lone traveler in a weathered cloak կանգ on a moss-covered stone bridge, cinematic atmosphere, volumetric fog, ultra-detailed fantasy concept art, dramatic composition, rich textures, ethereal color palette, high contrast, sharp focus

import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'xai:grok-imagine@image',
  positivePrompt: 'A surreal bioluminescent forest at twilight, towering crystalline trees glowing with teal and violet light, floating pollen-like sparks, a glassy stream reflecting luminous mushrooms and enormous fern leaves, a lone traveler in a weathered cloak կանգ on a moss-covered stone bridge, cinematic atmosphere, volumetric fog, ultra-detailed fantasy concept art, dramatic composition, rich textures, ethereal color palette, high contrast, sharp focus',
  width: 1280,
  height: 896
})
import asyncio
import os

from runware import Runware


async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "xai:grok-imagine@image",
            "positivePrompt": "A surreal bioluminescent forest at twilight, towering crystalline trees glowing with teal and violet light, floating pollen-like sparks, a glassy stream reflecting luminous mushrooms and enormous fern leaves, a lone traveler in a weathered cloak կանգ on a moss-covered stone bridge, cinematic atmosphere, volumetric fog, ultra-detailed fantasy concept art, dramatic composition, rich textures, ethereal color palette, high contrast, sharp focus",
            "width": 1280,
            "height": 896
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "12228d65-c7e2-4b7c-959b-624762395b63",
      "model": "xai:grok-imagine@image",
      "positivePrompt": "A surreal bioluminescent forest at twilight, towering crystalline trees glowing with teal and violet light, floating pollen-like sparks, a glassy stream reflecting luminous mushrooms and enormous fern leaves, a lone traveler in a weathered cloak կանգ on a moss-covered stone bridge, cinematic atmosphere, volumetric fog, ultra-detailed fantasy concept art, dramatic composition, rich textures, ethereal color palette, high contrast, sharp focus",
      "width": 1280,
      "height": 896
    }
  ]'
runware run xai:grok-imagine@image \
  positivePrompt="A surreal bioluminescent forest at twilight, towering crystalline trees glowing with teal and violet light, floating pollen-like sparks, a glassy stream reflecting luminous mushrooms and enormous fern leaves, a lone traveler in a weathered cloak կանգ on a moss-covered stone bridge, cinematic atmosphere, volumetric fog, ultra-detailed fantasy concept art, dramatic composition, rich textures, ethereal color palette, high contrast, sharp focus" \
  width=1280 \
  height=896
{
  "taskType": "imageInference",
  "taskUUID": "12228d65-c7e2-4b7c-959b-624762395b63",
  "model": "xai:grok-imagine@image",
  "positivePrompt": "A surreal bioluminescent forest at twilight, towering crystalline trees glowing with teal and violet light, floating pollen-like sparks, a glassy stream reflecting luminous mushrooms and enormous fern leaves, a lone traveler in a weathered cloak կանգ on a moss-covered stone bridge, cinematic atmosphere, volumetric fog, ultra-detailed fantasy concept art, dramatic composition, rich textures, ethereal color palette, high contrast, sharp focus",
  "width": 1280,
  "height": 896
}
Response
{
  "taskType": "imageInference",
  "taskUUID": "12228d65-c7e2-4b7c-959b-624762395b63",
  "imageUUID": "6c67cf4a-55f8-455e-80a0-c524807ebc30",
  "imageURL": "https://im.runware.ai/image/os/a03d21/ws/2/ii/6c67cf4a-55f8-455e-80a0-c524807ebc30.jpg",
  "seed": 1732241093,
  "cost": 0.02
}