Use n8n with TokenMaster
n8n is a workflow automation platform with built-in AI agent nodes. Use the OpenAI credential with a custom base URL to run them on TokenMaster.
You will need
- An API key starting with tm- (Console → API keys) — Get an API key
- Base URL:
https://tokenmaster.store/v1 - A model ID, e.g.
openai/gpt-6-luna(see the model list)
Setup
- Create a credential of type OpenAI: API Key
tm-…, Base URLhttps://tokenmaster.store/v1, leave Organization ID empty. Saving tests it by listing models. - Add an OpenAI Chat Model node (for example under an AI Agent) and select that credential.
- Pick the Model from the list, or switch to ID and type e.g.
openai/gpt-6-luna. - Turn Use Responses API off (recommended) — it is on by default in new nodes. TokenMaster accepts both, but the node's Responses mode leans on OpenAI-hosted tools that TokenMaster does not run.
Good to know
- The node's built-in web search, file search and code interpreter tools need the Responses API. For web search, use a model ID ending in
:onlineinstead, e.g.openai/gpt-6-luna:online. - The Embeddings OpenAI node works with the same credential — choose model
baai/bge-m3. - Not available through TokenMaster: image generation, speech, rerank, the Assistants API, and OpenAI-hosted tools. Chat Completions, the Responses API (stateless), the Anthropic Messages API and embeddings are available.
Checked against n8n 2.x on 2026-10-19. Menu names can change between versions.
Troubleshooting
- 401 / invalid API key — check the key was copied in full and has not been deleted in the console.
- 404 — the base URL is wrong. It must end in /v1 unless the guide says otherwise.
- Model not found / not available — use the exact ID from the model list (vendor/model, lowercase). Some vendors are not available in every region.
- Errors mentioning /responses — the tool is using OpenAI's Responses API. TokenMaster accepts it, but statelessly (no previous_response_id) and without OpenAI-hosted tools; if the tool relies on those, switch it to Chat Completions as noted above.
- 402 / insufficient balance — top up in the console; requests are refused rather than run up a debt.