Grok xAI API? [GOT CREATED]

Has anyone got a node to work with the new xAI api? It’s supposed to be compatible with OpenAI/Anthropic - but am curious what is the easiest way to get this working.

1 « J'aime »

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
1 « J'aime »

Hey @Andrew_Krowczyk,

Welcome to the community :tada:

I am not sure if this is something our AI team has planned however I have moved this to feature requests so we can think about adding it in the future.

7 « J'aime »

It would be amazing to get this connector. GROK has its unique strength to the other LLMs.

3 « J'aime »

Grok is amazing! I hope the n8n team implements it soon.

3 « J'aime »

I realized you can do it using the OpenAI Chat model since xAI provides a compatible interface. You just need to change the base url in the node configuration.

5 « J'aime »

That is working, great!

1 « J'aime »

Are you using the openAI node tool?
Version n8n 1.78 no longer has this option

1 « J'aime »

it’s the n8n Open Chat Model node that you can attach to an agent, for example

2 « J'aime »

Many thanks for the tip! it is indeed working fine via OpenAI Chat Model node. :sunglasses:

2 « J'aime »

This has been added and is available from n8n@1.85.0

1 « J'aime »