Imagine Image Playground

Generate and edit images with xAI's Imagine API. Upload optional PNG, JPEG, or WebP reference images to call the image edits endpoint; omit references to call the image generations endpoint. For multiple references, mention them as <IMAGE_0>, <IMAGE_1>, etc. in the prompt.

Don't have a deployed model yet? Explore and deploy xAI models in minutes. Get started.

attach_fileUpload optional reference images

The generated images are shown below and automatically downloaded.

Ready.

An unhandled error has occurred. Reload 🗙