All Models

xAI logo

Grok 2 Image API

Grok 2 Image generates images from text, spanning realistic photography and stylized illustration, with attention to the objects, layout and visual treatment described.

Try in Studio
More options (1)
Generate

Pricing depends on the selected inputs. See the rates below.

Grok 2 Image example

Supported modes

Text to Image

Text to Image uses prompt. Adjust the model options to prepare a request for this mode.

image.generate

Pricing

Image generation

Price per run for each listed option.

OfferingPrice (USD)
Num Images: 1$0.07 / run
Num Images: 2$0.14 / run
Num Images: 3$0.21 / run
Num Images: 4$0.28 / run

Text to Image options

OptionDetailsDefault
Prompt *
prompt
The positive prompt for the generation.โ€”
Num images
num_images
Number of images to be generated. Minimum: 1. Maximum: 4.1

Grok 2 Image

Grok 2 Image is xAI's text-to-image model. A written description supplies the subject, setting and visual direction for the generated image. It supports photographic treatments as well as illustration and concept sketches, giving an idea room to develop across different aesthetics.

Its documented strengths include interpreting described objects and layouts, alongside rendering texture and lighting. Generating variations from the same description makes it useful for exploring how a concept could look before selecting a direction for further work.

What it's good for

For marketing work, it can produce product-focused scenes or campaign imagery built around a described composition. Photographic styling suits advertising concepts, while illustrative treatments can support editorial artwork and social posts.

It also fits early visual development: a designer can turn a written scene into concept art, or explore a storyboard image before production. These applications draw on its ability to translate both content and style from text.

Run Grok 2 Image on Protoface

Use Grok 2 Image in Protoface Studio without writing code. Choose your inputs and generation settings, then generate with affordable, usage-based pricing. For your own AI app or workflow, use the Protoface API to submit generations and retrieve their outputs.

Model publisher

About xAI

xAI develops Grok Imagine models for creating and editing images and video. Its visual AI work covers generating pictures from written prompts, revising images with natural-language instructions, and animating still images, supporting creative tasks such as combining subjects, changing styles and composing scenes.

  • Image generation
  • Visual editing
  • Video generation

Related models

Unified API

One API for generative media.

Protoface serves popular frontier AI models through one API.

  • minimax
  • minimax
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai

Unified API

One API for generative media.

Protoface serves popular frontier AI models through one API.

  • minimax
  • minimax
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai

Unified API

One API for generative media.

Protoface serves popular frontier AI models through one API.

  • minimax
  • minimax
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai