AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Image generationGrok Image

Create an image

Generate images from a text prompt.

POST/v1/images/generations

Generate images from a text prompt.

Authorization

bearerAuth
AuthorizationBearer <token>

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

xAI Image Generation official documentationSee request parameters and response structure.