Model endpointsxAIGrok imagine image 2.0 edit

Generate image with xai/grok-imagine-image-2.0/edit

Generates an image using the xai/grok-imagine-image-2.0/edit model.

POST
/api/v1/model/generateImage

Authorization

BearerAuth
AuthorizationBearer <token>

API key is required to authorize requests. Create a key in the Atlas Cloud dashboard.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/model/generateImage" \  -H "Content-Type: application/json" \  -d '{    "model": "xai/grok-imagine-image-2.0/edit",    "prompt": "Render this as a pencil sketch with detailed shading.",    "image_urls": [      "string"    ]  }'
{  "id": "string",  "urls": {},  "model": "string",  "status": "string",  "outputs": [    "string"  ],  "created_at": "2019-08-24T14:15:22Z"}

Last updated on