Skip to content

Create Image​

POST
/v1/images/generations
  • Generate images from text descriptions using Grok models
  • Official documentation: Image Generations

Authorizations​

bearer
Type
HTTP (bearer)

Request Body​

application/json
object

Text description of the desired image. Maximum length is 1000 characters.

Size of the generated image: 960x960, 720x1280, 1280x720, 1168x784, 784x1168

Model used to generate the image.

Responses​

Success

application/json
object
object[]
object

Playground​

Authorization
Body

Samples​