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

# Grok Provider

> The Grok Provider allows for integrating X.AI's Grok language models into Keep.

## Authentication

This provider requires authentication.

* **api\_key**: X.AI Grok API Key (required: True, sensitive: True)

## In workflows

This provider can be used in workflows.

As "step" to query data, example:

```yaml theme={null}
steps:
    - name: Query grok
      provider: grok
      config: "{{ provider.my_provider_name }}"
      with:
        prompt: {value}  
        model: {value}  
        max_tokens: {value}  
        structured_output_format: {value}  
```

If you need workflow examples with this provider, please raise a [GitHub issue](https://github.com/keephq/keep/issues).

## Connecting with the Provider

To connect to Grok, you'll need to obtain an API Key:

1. Subscribe to Grok on X.AI platform.
2. Navigate to the API section in your X.AI account settings.
3. Generate a new API key for Keep.

Use the generated API key in the `authentication` section of your Grok Provider configuration.
