xAI icon

xAI

API access to xAI models for chat completions and tool use.

4 actionsPollingAuth: API key

AI-assisted documentation3 min read

This documentation is compiled from our integration source code, internal specs for xAI, its official API documentation and anonymized requests logs we collect from our support team[2].

Open xAI on WEXTL →

xAI requires an active account and an API access token from your account settings to connect — both are set up on its own site.[3]

  • API KeypasswordRequired

    You can obtain an API key from https://console.x.ai.

    [1]
  1. Log in to your WEXTL account, add the xAI node module to your workflow, and click Create new credential.
  2. Optional: In the Credential name field, enter a name for the credential.
  3. Enter the authentication credentials you copied from your xAI account, or follow the on-screen instructions to create the credential.
  4. If prompted, authenticate your account and confirm access.
  5. If you want to make changes to your credential in the future, follow the steps in Manage credentials →

Notes

Credentials are org-scoped; share them with teammates from the Credentials picker on any of its nodes.For detailed information on connecting an application, see Connect an application →

Create a Chat CompletionAction
Input fields[3]
FieldType
MessagesRequired
array
ModelRequired
choice
Frequency Penaltynumber
Logit Biasobject
Logprobsboolean
Max Tokensnumber
nnumber
Presence Penaltynumber
Seednumber
Stoparray
Streamboolean
Temperaturenumber
Toolsarray
Top Logprobsnumber
Top Pnumber
Usertext
Output fields[3]
FieldType
Choicesarray
Creatednumber
IDtext
Modeltext
Objecttext
System Fingerprinttext
Usagetext
Create a Prompt CompletionAction
Input fields[3]
FieldType
ModelRequired
choice
PromptRequired
text
Best Ofnumber
Echoboolean
Frequency Penaltynumber
Logit Biasobject
Logprobsboolean
Max Tokensnumber
nnumber
Presence Penaltynumber
Seednumber
Stoparray
Streamboolean
Suffixtext
Temperaturenumber
Top Pnumber
Usertext
Output fields[3]
FieldType
Choicesarray
Creatednumber
IDtext
Modeltext
Objecttext
System Fingerprinttext
Usagetext
Create EmbeddingsAction
Input fields[3]
FieldType
InputRequired
text
Model IDRequired
choice
Dimensionsnumber
Encoding Formatchoice
Usertext
Output fields[3]
FieldType
Dataarray
Modeltext
Objecttext
Usagetext
Make an API Calluniversal
Input fields[3]
FieldType
URLRequired
text
MethodRequired
choice
Headersarray
Headerobject
Query Stringarray
Parameterobject
Bodytext
Output fields[3]
FieldType
Bodytext
Headersobject
Status codenumber

Look for xAI templates in the WEXTL template library.

Browse templates →
  1. WEXTL® xAI Source Code connector implementation.
  2. Our users use cases and automations.
  3. Official API Documentation for xAI.
  4. WEXTL® visual workflow builder data.

Last updated: Jul 24, 2026 18:13