Create an image
Generate images from a text prompt.
/v1/images/generationsGenerate images from a text prompt.
Authorization
bearerAuth Use a platform API key in the format Authorization: Bearer your-api-key.
In: header
Request Body
application/json
Grok image-generation request parameters.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json