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

# xAI Integration

> Enhance your Davinci AI platform with xAI’s Grok models. This guide explains how to set up and configure xAI integration for your platform.

## Introduction

Davinci AI’s xAI integration allows you to leverage Grok models for AI-powered conversations and content generation. This guide will help you set up and manage the xAI integration in your platform.

## Available Models and Tools

Davinci AI leverages a wide range of xAI models to power various tools and features:

### LLM Text Generation Models

<Card title="Included xAI Text Models">
  * xAI | Grok 4.1 Fast
  * xAI | Grok 4
  * xAI | Grok 3
  * xAI | Grok 3 Fast
  * xAI | Grok 3 Mini
  * xAI | Grok 3 Mini Fast
  * xAI | Grok 2
  * xAI | Grok 2 Vision
</Card>

## Connect xAI Account

To be able to use your xAI API, follow these steps to setup integration.

<Steps>
  <Step title="Step 1">
    If you don’t have an xAI account, [sign up here](https://console.x.ai/)
  </Step>

  <Step title="Step 2">
    Once logged in, navigate to **API Keys** page
  </Step>

  <Step title="Step 3">
    Generate a new API key by clicking **Create API Key**, next copy the generated API key
    <Note>Keep your API key secure. It provides access to xAI’s services and should not be shared publicly.</Note>
  </Step>

  <Step title="Step 4">
    Login to Davinci AI using your admin credentials.
  </Step>

  <Step title="Step 5">
    In **Admin Panel**, navigate to **AI Settings** -> **AI API Keys** tab.
  </Step>

  <Step title="Step 6">
    Click on **xAI** tab there.

    <img src="https://mintcdn.com/davinci/YjbgIFZUgIw6lTNQ/images/ai/xai/xai-1.png?fit=max&auto=format&n=YjbgIFZUgIw6lTNQ&q=85&s=9f9f821dde404c1761a1e282c6cd0f15" width="539" height="104" data-path="images/ai/xai/xai-1.png" />
  </Step>

  <Step title="Step 7">
    Include your API key under **xAI API Key** input field. Base URL can remain as it is stated there.

    <img src="https://mintcdn.com/davinci/YjbgIFZUgIw6lTNQ/images/ai/xai/xai-2.png?fit=max&auto=format&n=YjbgIFZUgIw6lTNQ&q=85&s=7b2ba9f4a7f69109a3e2b13de8a55562" width="931" height="486" data-path="images/ai/xai/xai-2.png" />
  </Step>

  <Step title="Step 8">
    After you are done with configurations, click on **Save** button.
  </Step>
</Steps>

<Check>
  Congratulations! You have successfully comleted the xAI setup process.
</Check>

## Davinci AI Tools Powered by xAI

Following AI tools can be used with xAI models
<Note>Support for more AI tools will be added soon, we are actively working on that</Note>

1. **AI Chat** - chat conversations and get instant answers.
2. **AI Writer** - Generate high-quality content for various purposes.

## Best Practices

To make the most of your xAI integration:

* Experiment with different models to find the best fit for your use case.
* Use clear and specific prompts to get the most accurate results.
* Monitor your API usage to manage costs effectively.
  <Warning>Available only for Extended License users</Warning>
