Skip to content
Agentic Workflowdocs
v0.8.2Install free

nodes / builtin / ai / aidependencies / llm

Chat xAI (Grok)

Use xAI Grok chat models.

AI ExtensionWeb app

Give an AI node access to xAI’s Grok models, using your own xAI API key.

Chat xAI (Grok) is a model you plug into the Model slot of an AI node, such as the Tools Agent or Basic LLM Chain. It does not run on its own and has no output. When the AI node runs, it sends its messages to xAI with your key and gets Grok’s reply back.

  • Temperature is 0 when you leave it empty, so answers are focused and repeatable.
  • Replies are capped at Max Tokens (4096 by default).
  • A failed request is retried up to Max Retries times (2 by default). A request that gets no answer within 60 seconds fails.
  • You want to use Grok models in a workflow.
  • You already have xAI credit and want to use it for writing, summarising or agents.
SettingTypeWhat it does
Model (required)TextThe xAI model to use, e.g. grok-2-latest.
Authentication (required)CredentialUse your xAI API key as a Bearer token.
Options GroupThe options to use with the model.
Options › Temperature NumberThe temperature to use for the model.
Options › Max Retries NumberThe maximum number of retries to use for the model. Default: 2
Options › Max Tokens NumberThe most tokens the model may generate in one reply. Defaults to 4096, which keeps providers from reserving credit for the whole output window. Default: 4096

Type the Model id as xAI lists it, for example grok-2-latest. xAI releases new Grok versions often; check its model list for the current ids.

This node has no output port. It plugs into a slot on another node instead of passing items along.

The AI node you connect it to produces the output. This node only decides which model answers.

In Authentication, use a Bearer Token credential that holds your xAI API key. Create the key on the API Keys page of the xAI console. See Create a credential.

  1. A Context Menu trigger on selected text.
  2. Basic LLM Chain with Prompt Write a short, friendly reply to this message: {{ $input.selectionText }}.
  3. Chat xAI (Grok) in its Model slot, Model grok-2-latest.
  4. Clipboard Write with Text {{ $input.response }}.
  • “Model parameter is required and cannot be empty”. Fill in Model.
  • A 401 or 403 error. The key is wrong, revoked, or your team has no credit. Check the xAI console and update the credential.
  • A “model not found” error. The model id is old or misspelled. Copy a current one from xAI’s model list.
  • The answer stops mid-sentence. It hit Max Tokens. Raise it under Options.
Edit page

Last updated:

Was this page useful?
Ask Aria about Chat xAI (Grok)