Ask Janek AI with Janek

All questions

Fix Grok (xAI) Error in Make.com — Use HTTP Module Instead · published 6 February 2026

Play at 2:56 Watch on YouTube xAI

How do I generate a Grok image with HTTP in Make.com?

I add a second HTTP request. The URL is xAI's version 1 images generations endpoint. The method is POST. The model is Grok Imagine image, the response format is URL, and I delete the size field because Grok does not change the size.

Headers are the same idea: Content-Type application/json, and Authorization Bearer plus the key. Query parameters stay empty. Body content type is application/json and the input is a JSON string. The body also has the prompt and how many images. The picture comes back under output, data, as a URL. I open that URL and the image is there.