Models

Grok Imagine Image 2.0 Text-to-Image

Generates an image with Grok Imagine Image 2.0, with 1K/2K resolution and a low or medium quality tier.

Cost depends on your settings.

Playground

Input
Advanced settings

Choose the image quality and price tier.

Output
Grok Imagine Image 2.0 Text-to-Image: Steel-blue warrior on the salt flat
Example

Try an example

Call this model from your code

Sends your Playground inputs to Comfy Router.

API docs (opens in a new tab)
  1. Get an API key

    Needs a paid Cloud plan with credits.

  2. Install the SDK

    Python 3.10+. Also on npm as @comfyorg/sdk.

    pip install comfy-sdk==0.2.0
  3. Run it

    Calls Comfy Router at this endpoint with your COMFY_API_KEY.

    POST /v2/models/xai/grok-imagine-image-2.0

Fill in the Playground inputs to generate a request.

More from xAI

Compare xAI's other models. Price is the default setting; resolution and duration show the full range each model offers.

ModelPriceResolutionDuration
Grok Imagine Image Text-to-Image4.2 credits/Run1K – 2K—
Grok Imagine Video 1.5 Text-to-Video—480p – 1080p1 – 15s
Grok Imagine Video Image-to-Video63.7 credits/Run480p – 720p1 – 15s
Grok Imagine Video Reference-to-Video63.7 credits/Run480p – 720p1 – 15s
Grok Imagine Video Text-to-Video63.3 credits/Run480p – 720p1 – 15s
Grok Imagine Video 1.5 Reference-to-Video147.8 credits/Run480p – 1080p1 – 15s
Grok Imagine Video 1.5 Image-to-Video147.8 credits/Run480p – 1080p1 – 15s