Grok xAI API?

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.

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:

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.

6 Likes

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

2 Likes

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

2 Likes

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.

4 Likes

That is working, great!

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

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

1 Like

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

1 Like