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

Grok 2 Image Text to Image API example
curl -X POST https://api.protoface.com/v1/run/xai/grok-2-image \
-H "Authorization: Bearer $PROTOFACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"operation": "image.generate",
"prompt": "A red fox resting beside a woodland stream, soft morning light.",
"num_images": 1
}'Replace example input URLs with your own public URLs or uploaded asset IDs. This request uses the selected mode and settings.
Supported modes
Text to Image
Text to Image uses prompt. Adjust the model options to prepare a request for this mode.
image.generatePricing
Image generation
Price per run for each listed option.
| Offering | Price (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
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.

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










