P26-02-07">
Make.com AI Agents API
5 min read AI Automation

Fix Grok (xAI) Error in Make.com — Use HTTP Module Instead

Frustrated by broken Grok integrations in Make.com? The native module stopped working after xAI changed their API settings. Here's how to bypass the error and connect directly to Grok's powerful AI capabilities using HTTP modules for text generation, image creation, and visual analysis.

Why the Grok Module Stopped Working

Many Make.com users woke up to frustrating errors when trying to use the Grok module recently. The sudden breakage wasn't due to changes in Make.com, but rather xAI updating their API authentication requirements. The native integration simply couldn't keep up with these backend changes.

The solution? Bypass the broken module entirely. By using Make.com's HTTP module to connect directly to xAI's API endpoints, you regain control over the authentication process and can customize requests exactly how xAI expects them.

Key insight: HTTP modules give you direct API access that often works better than native integrations because you control all headers and request parameters.

Getting Your xAI API Key

Before configuring any HTTP modules, you'll need an API key from xAI's developer console. This key authenticates all your requests and should be treated like a password — never share it or commit it to public repositories.

To get your key (shown at 0:45 in the video):

  1. Log in to xAI Cloud Console
  2. Navigate to API Keys in the left menu
  3. Click "Create New Key"
  4. Copy the generated key immediately (you won't see it again)

This key will be used in the Authorization header of every HTTP request you make to Grok's API endpoints.

Setting Up Text Generation

The first HTTP module we'll configure handles standard text generation — the core Grok functionality most users need. This replaces the broken native module for answering questions, generating content, and other text-based tasks.

Configuration steps (demonstrated at 2:10 in the video):

  1. Add an HTTP "Make a Request" module
  2. Set authentication type to "No Authentication" (we'll add headers manually)
  3. Use URL: https://api.x.ai/v1/chat/completions
  4. Method: POST
  5. Headers: Content-Type: application/json and Authorization: Bearer [YOUR_API_KEY]
  6. Body type: application/json with JSON string input

Pro tip: In the body, you can specify different Grok models (like Grok-4.1), adjust temperature for creativity, and set max tokens to control response length.

Creating Images with Grok Imagine

Grok's image generation capability (Imagine) requires a slightly different HTTP configuration. At 4:30 in the video, you'll see how to set up a module specifically for creating images from text prompts.

Key differences from text generation:

  • Different endpoint: https://api.x.ai/v1/images/generations
  • Model specified as "grok-imagine-image"
  • Additional parameters for number of images (n) and response format

The response will contain URLs to your generated images. Note that currently, image size parameters don't work with Grok Imagine — all images come at a fixed resolution.

Analyzing Images with Grok

The third HTTP module configuration (shown at 6:50) enables Grok's visual analysis capabilities. This allows the AI to describe images, extract text, and answer questions about visual content.

Setup is similar to text generation but with crucial additions:

  1. Include both text prompt ("Describe this image")
  2. Add image URL in the content array with type: "image_url"
  3. Use a vision-capable model like Grok-4.1-fast-reasoning

In testing, this configuration successfully analyzed an image of Brussels (generated moments earlier) and accurately identified it as Belgium's capital — demonstrating the power of bypassing the broken native module.

Watch the Full Tutorial

See all three HTTP module configurations in action — including how to handle the API responses — in the complete video tutorial. At 3:15 you'll see the exact JSON body structure for text generation, and at 7:30 watch Grok successfully analyze an image it just created.

Video tutorial: Fix Grok errors in Make.com with HTTP modules

Key Takeaways

While waiting for Make.com to update their native Grok integration, HTTP modules provide a powerful workaround that actually gives you more control over API requests. You're no longer limited by what the native module exposes — you can access all of xAI's API features directly.

In summary: With three HTTP modules (text, image generation, image analysis) properly configured with API keys and correct JSON bodies, you can fully replace the broken native integration while gaining additional flexibility.

Frequently Asked Questions

Common questions about this topic

xAI changed their API settings which broke Make.com's native Grok module integration. The HTTP module bypasses this by connecting directly to xAI's API endpoints with proper authentication headers.

This is a common occurrence with API integrations — services frequently update their requirements, and native modules sometimes lag behind these changes.

  • The HTTP solution will continue working even if xAI makes more API changes
  • You have more control over request parameters
  • Can access features not exposed in the native module

You can create an API key in the xAI Cloud Console under API Keys. Generate a new key and keep it secure as it provides access to your xAI account resources.

Treat this key like a password — never include it in client-side code or share it publicly. Store it securely in Make.com's environment variables or a secrets manager.

  • Keys can be revoked and regenerated if compromised
  • Each key should be used for a specific purpose
  • Monitor usage to detect any unauthorized access

You can configure HTTP modules for: 1) Text generation using Grok models, 2) Image creation with Grok Imagine, and 3) Image analysis where Grok describes visual content.

Each type requires a different API endpoint and slightly modified JSON body structure, but all use the same basic authentication approach.

  • Text generation: chat completions endpoint
  • Image creation: images/generations endpoint
  • Image analysis: chat completions with image URL

Each request requires: Content-Type: application/json and Authorization: Bearer [YOUR_API_KEY]. The API key must be prefixed with 'Bearer ' in the authorization header.

These headers tell xAI's servers that you're sending JSON data and have permission to access the API. Missing or malformed headers will result in authentication errors.

  • Content-Type ensures proper data interpretation
  • Authorization validates your identity
  • Case matters in header names

Yes, in the request body you can specify model versions (like Grok-4.1), temperature, max tokens, and other parameters to control the AI's output behavior.

This level of control often exceeds what's available in native integrations. For example, you can:

  • Choose between fast and thorough reasoning models
  • Adjust temperature from 0 (deterministic) to 1 (creative)
  • Limit response length with max tokens

The image generation body requires model: 'grok-imagine-image', your prompt text, n (number of images), and response_format: 'url' to receive image URLs.

Here's a complete example JSON structure you can adapt:

  • { "model": "grok-imagine-image"
  • "prompt": "a futuristic city skyline at dusk"
  • "n": 1, "response_format": "url" }

HTTP modules give you direct control over API calls, allow you to bypass broken integrations, and often provide access to newer features before they're added to native modules.

You're not dependent on Make.com updating their integration — you can adapt to API changes immediately by modifying your HTTP requests.

  • Faster access to new API features
  • More customization options
  • Better error handling capabilities

GrowwStacks helps businesses implement automation workflows, AI integrations, and scalable systems tailored to their operations.

Whether you need custom AI automation with Grok or other platforms, our team can design, build, and deploy solutions that fit your requirements.

  • Custom automation workflows built for your business
  • Integration with your existing tools and platforms
  • Free consultation to discuss your automation goals

Need Reliable AI Automation That Won't Break?

Don't waste time troubleshooting API changes and broken integrations. Let GrowwStacks build you a future-proof automation system that adapts to API updates automatically.