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
prompt
string
Required
Text description of the desired image. Maximum length is 1000 characters.
size
string
Size of the generated image: 960x960, 720x1280, 1280x720, 1168x784, 784x1168
model
string
Required
Model used to generate the image.
Responses
Success
application/json
object
created
integer
data
object[]
usage
object