npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mazaal-dev/grok

v1.3.0

Published

Grok AI integration for Mazaal AI

Readme

Grok AI Integration for Mazaal

This integration allows you to leverage Grok AI, X's powerful large language model, within your Mazaal AI workflows. Connect to Grok's advanced AI capabilities for text generation, image analysis, and image creation.

Features

  • Ask Grok: Send text prompts to Grok AI for natural language responses
  • Vision Prompt: Send images to Grok for visual analysis and description
  • Generate Image: Create images based on text prompts
  • Custom API Call: Make custom API calls to the Grok API for advanced use cases

Authentication

To use this integration, you'll need a Grok API key:

  1. Visit X's developer portal and log in to your account
  2. Navigate to your account settings or developer dashboard
  3. Look for the API section and generate a new API key
  4. Copy and securely store your API key
  5. Enter this API key when configuring the Grok connection in Mazaal AI

Model Capabilities

Grok offers different models with various capabilities:

  • Text Models: Core language models for text generation (e.g., grok-3-beta, grok-3-mini-beta)
  • Vision Models: Models that can process and analyze images (e.g., grok-vision-beta, grok-2-vision-1212)
  • Image Generation Models: Models that can create images from text prompts (e.g., grok-2-image-1212)

Usage Examples

Ask Grok

The "Ask Grok" action sends text prompts to Grok AI and receives natural language responses:

{
  "model": "grok-3-beta",
  "prompt": "Explain quantum computing in simple terms",
  "temperature": 0.7,
  "maxTokens": 1024
}

Perfect for:

  • Question answering
  • Content generation
  • Code explanation
  • Problem solving

Vision Prompt

The "Vision Prompt" action sends images to Grok for analysis:

{
  "model": "grok-vision-beta",
  "prompt": "What can you tell me about this image?",
  "image": "{{steps.image_url.output}}"
}

Use cases:

  • Image captioning
  • Object identification
  • Scene description
  • Visual question answering

Generate Image

The "Generate Image" action creates images based on text descriptions:

{
  "model": "grok-2-image-1212",
  "prompt": "A futuristic city with flying cars under a purple sky",
  "responseFormat": "url"
}

Applications:

  • Creative content generation
  • Visual concept exploration
  • Design inspiration
  • Marketing assets

Custom API Call

For advanced users who need direct access to the Grok API:

{
  "url": "/chat/completions",
  "method": "POST",
  "body": {
    "model": "grok-3-beta",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Hello, who are you?"}
    ]
  }
}

Best Practices

  • Be Specific: Detailed prompts yield better results
  • Set the Right Temperature: Lower values (0.1-0.3) for factual responses, higher values (0.7-0.9) for creative outputs
  • Use System Messages: Guide the model's behavior with appropriate system messages
  • Consider Token Limits: Keep requests within token limits to avoid truncated responses

Troubleshooting

  • Authentication Errors: Verify your API key is valid and correctly entered
  • Model Unavailability: Ensure the selected model exists and is available in your region
  • Rate Limiting: If you encounter rate limits, implement appropriate backoff strategies
  • Unexpected Outputs: Try refining your prompt or adjusting parameters for better results

Additional Resources


For support questions, feature requests, or bug reports, please contact [email protected]