> For the complete documentation index, see [llms.txt](https://docs.wisej.com/ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/ai/components/api/smartendpoint/wisej.ai.endpoints.xaiendpoint.md).

# XAIEndpoint

Namespace: **Wisej.AI.Endpoints**

Assembly: **Wisej.AI** (3.5.0.0)

* [SmartEndpoint](/ai/components/api/smartendpoint.md)
  * [SmartHttpEndpoint](/ai/components/api/smartendpoint/wisej.ai.endpoints.smarthttpendpoint.md)
    * [OpenAIEndpoint](/ai/components/api/smartendpoint/wisej.ai.endpoints.openaiendpoint.md)
      * [XAIEndpoint](/ai/components/api/smartendpoint/wisej.ai.endpoints.xaiendpoint.md)

Represents a connection to X.AI endpoints, extending the functionality of OpenAIEndpoint.

{% tabs %}
{% tab title="C#" %}

```csharp
public class XAIEndpoint : OpenAIEndpoint
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class XAIEndpoint
    Inherits OpenAIEndpoint
```

{% endtab %}
{% endtabs %}

This class is used to interact with the X.AI API, providing properties and methods specific to X.AI's capabilities.

## Constructors

### ![](/files/ptrKjmmRoQB76pvrIqh0) XAIEndpoint()

Initializes a new instance of the [XAIEndpoint](/ai/components/api/smartendpoint/wisej.ai.endpoints.xaiendpoint.md) class with default settings.

The default authentication method is set to "Bearer", the model to "grok-beta", and the URL to "<https://api.x.ai/v1>".

## Properties

### ![](/files/ptrKjmmRoQB76pvrIqh0) Model

[String](https://docs.microsoft.com/dotnet/api/system.string): Gets or sets the model used by the X.AI endpoint. (Default: `"grok-beta"`)

### ![](/files/ptrKjmmRoQB76pvrIqh0) URL

[String](https://docs.microsoft.com/dotnet/api/system.string): Gets or sets the URL of the X.AI API endpoint. (Default: `"https://api.x.ai/v1"`)

### ![](/files/ptrKjmmRoQB76pvrIqh0) UseNativeTools

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): (Default: `True`)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/ai/components/api/smartendpoint/wisej.ai.endpoints.xaiendpoint.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
