Skip to content

Use your free AI tokens in n8n (OpenAI-compatible API)

Connect n8n to the free AI tokens of your server: one OpenAI credential with your own base URL and key. No provider account, no API bill.

Last updated 21 November 2026

Starcloud servers on plans with AI come with free AI tokens on an OpenAI-compatible API. The AI tab of your server shows whether yours does. n8n uses them through its normal OpenAI nodes: you only change the base URL and the key.

Before you start

  • n8n runs on your Starcloud server, or on one of the IP addresses you added to the key on the AI tab. Calls from anywhere else are refused.
  • The first invoice of the server is paid. Servers on a free trial have no key yet.
  • Open Servers, choose your server and open the AI tab. Keep the base URL, the API key and the list of models at hand.

1. Create the credential

  1. In n8n, open Credentials, press Add credential and choose OpenAI.
  2. API Key: paste the key from the AI tab.
  3. Base URL: replace https://api.openai.com/v1 with the base URL from the AI tab.
  4. Leave Organization ID empty and save.

2. Use it in a workflow

  1. Add an AI Agent or Basic LLM Chain node, add the OpenAI Chat Model sub-node to it and choose the credential.
  2. Model: choose one of the models listed on the AI tab. If the list stays empty, switch the field to By ID and type the model id exactly as the AI tab shows it.
  3. In the model options, turn Use Responses API off. Your allowance uses the Chat Completions API.
  4. Run the workflow once to test it.

Only the models of your server's plan are accepted; a request for another model is refused.

How much can I use?

Your server's plan gives it one pool of tokens per period (for example a day), shared across the plan's models. The AI tab shows the size of the pool, the period, the models and what is left. Some models can count for more than one token per token: the AI tab and the free AI tokens page say when. What you send and what the model writes back both count, and the pool starts again at the start of each period, in UTC.

An AI Agent node sends the whole conversation and the description of its tools with every step, so it uses tokens much faster than a single prompt. Keep the memory window short and the tool list small.

Troubleshooting

  • 403 ip_not_allowed: n8n does not run on the server the key belongs to or on an address you added, or its traffic leaves through another address (a proxy or a VPN). Run n8n on the server, or add its address on the AI tab.
  • 403 model_not_allowed: the model is not part of your plan. Pick one from the AI tab.
  • 429 quota_exceeded: the pool for this period is used up. It comes back at the time in the x-starcloud-reset header, also shown on the AI tab.
  • 429 rate_limit_exceeded: too many tokens or requests in one minute. Wait for the Retry-After seconds or slow the workflow down.
  • 404 or "model not found": check the model id, and that Use Responses API is off.
  • No AI tab, or no key on it: the first invoice is not paid yet, or the server is still being built. Open a ticket if it stays empty.

Still stuck?

Our support team is here to help. Tell us what you were trying to do and what you see, and we will reply by email.

Open a ticket You will be asked to sign in first.