All guides / Workflow automation

Use XHuoAPI in n8n

Since n8n 1.73.0 the Base URL lives in the OpenAI credential. Configure the credential once and every node that uses it goes through XHuoAPI.

Before you start

Verify first

Before touching the tool, confirm the key and model work with curl. This rules out half of the 'I configured it and nothing happens' cases.

curl https://api.xhuoapi.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v3.2","messages":[{"role":"user","content":"ping"}]}'

Steps

1

Credentials (left sidebar) → Add credential → search OpenAI and pick OpenAI API.

2

Enter the API Key, change Base URL to the address below and save.

API Key:   sk-...
Base URL:  https://api.xhuoapi.ai/v1
3

Select this credential in an OpenAI Chat Model or AI Agent node. Type the model ID (e.g. deepseek-v3.2) into the Model field directly; the dropdown may not list everything.

Notes

On n8n older than 1.73.0 the credential has no Base URL field. Use Options → Base URL on each node instead, once per node.
Stop the base URL at /v1. Do not append /chat/completions; the client adds that path itself and you will get a 404 if you include it.

Commonly used models

These are common choices for this kind of tool; click a model to see its price in each tier. The full list is on the pricing page.

Steps follow the tool's current official documentation; the UI may change after updates. Tell us if something no longer matches.