> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pipeshub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# x.ai Grok

> Configure PipesHub Workplace AI to use different x.ai Grok models

# x.ai Grok Configuration

<img src="https://mintcdn.com/pipeshub/xDYTCu7XyGABzJ1N/images/ai-models/llm/xAI_LLMConfig.png?fit=max&auto=format&n=xDYTCu7XyGABzJ1N&q=85&s=c4a84f67b55aaeb2d3577c0899dccc46" alt="x.ai Grok Configuration Interface" width="672" height="1002" data-path="images/ai-models/llm/xAI_LLMConfig.png" />

*The x.ai Grok configuration screen in PipesHub where you'll enter your API Key and Model Name*

PipesHub allows you to integrate with x.ai to enable sophisticated AI features in your workspace, accessing Grok's powerful large language models optimized for high-performance agentic tool calling.

## Required Fields

### API Key \*

The API Key is required to authenticate your requests to x.ai services.

**How to obtain an API Key:**

1. Log in to the [x.ai Console](https://console.x.ai/)
2. Navigate to the API Keys section
3. Click on "Create new key" or use an existing key
4. Copy the generated API key

**Security Note:** Your API key should be kept secure and never shared publicly. PipesHub securely stores your API key and uses it only for authenticating requests to x.ai services.

### Model Name \*

The Model Name field defines which x.ai Grok model you want to use with PipesHub.

**Available x.ai Grok models:**

* `grok-3-latest` - Grok 3: x.ai's flagship multimodal model optimized for high-performance agentic tool calling
* `grok-3-mini-latest` - Grok 3 Mini: A lighter, faster option for cost-effective use cases

**How to choose a model:**

* For tasks requiring complex reasoning and maximum capability, select `grok-3-latest`
* For faster, more cost-effective responses, select `grok-3-mini-latest`
* Check x.ai's [model documentation](https://docs.x.ai/docs) for the most up-to-date options

## Optional Fields

### Context Length

Specify the maximum context window for your model. x.ai Grok models typically support large context windows for handling extensive conversations and documents.

**Context length examples:**

* Grok 4.1 Fast models: Check x.ai documentation for specific context window limits

### Multimodal Support

x.ai Grok models support multimodal capabilities, enabling both text and image processing. Enable this option if you want to use image understanding features in your application.

### Reasoning

Enable this option if your selected model supports advanced reasoning capabilities. This allows for deeper chain-of-thought analysis and complex problem-solving.

## Configuration Steps

As shown in the image above:

1. Click **Configure** on the xAI provider card
2. Enter your x.ai API Key in the designated field (marked with \*)
3. Specify your desired Model Name (marked with \*)
4. (Optional) Configure the Context Length for your use case
5. (Optional) Enable Multimodal support if needed
6. (Optional) Enable Reasoning if your model supports it
7. Click **Add Model** to save and validate your credentials

> Both the API Key and Model Name are required fields to successfully configure x.ai Grok integration.

## Usage Considerations

* API usage will count against your x.ai API quota and billing
* Different models have different pricing - check x.ai's pricing page for details
* Model capabilities vary - reasoning models provide deeper analysis but may have higher latency
* x.ai Grok provides:
  * High-performance agentic tool calling capabilities
  * Advanced reasoning for complex problem-solving (reasoning variant)
  * Multimodal understanding (text and images)
  * Optimized for fast responses and efficient workflows
  * Frontier-class model performance

## Troubleshooting

* If you encounter authentication errors, verify your API key is correct and has not expired
* Ensure your x.ai account has billing set up if you're using paid service tiers
* Check that the model name is spelled correctly and available
* Verify that your API key has access to the specific model you've selected
* If you're experiencing rate limits, check your API usage in the x.ai Console dashboard
* For multimodal features, ensure your model supports image inputs
* If using reasoning features, verify that your selected model supports reasoning mode

For additional support, refer to the [x.ai documentation](https://docs.x.ai/) or contact PipesHub support.
