2027 integration guide · Evidence checked 20 November 2026

n8n with Plugsky: OpenAI-Compatible Setup

n8n already speaks the OpenAI API shape. Plugsky supplies an OpenAI-compatible endpoint, so the connection is a credential with a custom base URL and a workflow that sends a chat request. This guide shows the exact fields, a webhook-to-reply workflow, the native node caveat, and the errors that break automations at 2am.

Short answer. n8n's OpenAI credential accepts a custom base URL, so Plugsky works without a plugin. Create an OpenAI credential, set the base URL to https://api.plugsky.com/v1, paste your Plugsky key, then use the OpenAI node's chat operation or an HTTP Request node with a plugsky-* model ID.

What “n8n with Plugsky” actually means

n8n is the workflow runner: a trigger starts an execution, nodes transform data, and the execution engine retries or branches on failure. Plugsky is the model API. The two connect over HTTP, using the same request shape OpenAI publishes: a model, a messages array and optional parameters such as temperature and max_tokens.

There are two routes inside n8n. The native OpenAI node is convenient when its operation matches the endpoint you need. The HTTP Request node is predictable: you choose the URL and see the raw JSON. For production workflows that must not change when n8n ships a new node version, the HTTP Request route is easier to reason about. For a quick internal tool, the native node is faster to assemble.

Three-line setup

  1. Create the credential: n8n → Credentials → Add credential → OpenAI.
  2. Set the Base URL: https://api.plugsky.com/v1 and paste YOUR_PLUGSKY_API_KEY into API Key. Leave Organization ID blank.
  3. Test and save: the credential test calls the models endpoint; a green result confirms the key and URL before a workflow exists.

That is the whole connection. The credential's Base URL field defaults to https://api.openai.com/v1; replacing it is what redirects every OpenAI-shaped request to Plugsky. The field expects the API root, not the chat path. If you paste https://api.plugsky.com/v1/chat/completions into it, n8n appends another path and the request fails.

Workflow example: webhook to model reply

A minimal production-shaped flow has five nodes. The model call is the only Plugsky-specific part; the rest is ordinary n8n plumbing.

  1. Webhook — accept POST with a JSON body such as {"question":"How do I reset my password?"}.
  2. Set — normalise the question, add a request ID, and trim the input to a known maximum length.
  3. HTTP Request — send the chat completion to Plugsky with the OpenAI credential attached.
  4. IF — branch on {{ $json.statusCode }}; send non-2xx responses to a Slack or email node.
  5. Respond to Webhook — return {{ $json.body.choices[0].message.content }} and a request ID.

Configure the HTTP Request node as follows. The predefined OpenAI credential adds the bearer token, so the URL stays explicit and the body stays standard Chat Completions.

HTTP Request node
Method: POST
URL: https://api.plugsky.com/v1/chat/completions
Authentication: Predefined Credential Type → OpenAI
Send Body: Yes, JSON
Response: Include Response Headers and Status
Settings: Never Error = true
Timeout: 120000 ms

{
  "model": "plugsky-pro",
  "messages": [
    {"role": "system", "content": "You are a concise support agent. Answer in under 80 words."},
    {"role": "user", "content": "{{ $json.body.question }}"}
  ],
  "temperature": 0.2,
  "max_tokens": 600
}

The response body is the standard object: body.choices[0].message.content holds the text, and body.usage holds prompt and completion token counts when the route returns them. Keep the request ID you generated in step 2 and log it next to the response; it is the fastest way to reconcile an n8n execution with an API request later.

The native OpenAI node: check the node version

The native node is a moving target. In n8n 1.117.0 and later, the OpenAI node V2 supports the Responses API and removes the Assistants API. Its text generation calls the Responses endpoint; older V1 nodes expose Generate a Chat Completion, which calls the Chat Completions endpoint. The two are not interchangeable.

Plugsky's documentation lists a Responses endpoint at /v1/responses, but the safest production path for a chat workflow is still Chat Completions, because that is the endpoint with the broadest compatibility and the one used in the examples on this page. If your n8n version only offers Responses-based text generation, test it against your Plugsky route before building around it. If it fails, switch the node to HTTP Request rather than downgrading n8n.

For agent workflows, the AI Agent node uses an OpenAI Chat Model sub-node. That sub-node is a LangChain adapter, and it accepts a custom base URL through the same credential. Tool calling and memory add more moving parts; verify one tool call end to end before you rely on an agent for a customer-facing flow.

Supported features and limits

The table distinguishes what the API supports from what a particular n8n node exposes. A feature can exist on the API and still be missing from the node's operation list.

Plugsky features through n8n nodes
FeatureStatus in n8nNotes
Chat CompletionsSupported via HTTP RequestPOST /v1/chat/completions; response text at choices[0].message.content.
Model listSupportedThe OpenAI credential test calls /models; use it to confirm the key and base URL.
StreamingNot exposed as workflow itemsn8n nodes return completed items. Streaming matters for a chat UI, not for a batch workflow.
Tool callingSupported at the APIAvailable through HTTP Request or the AI Agent's Chat Model sub-node; test the tool schema.
JSON modeSupported at the APISet an OpenAI-style response_format; parse the string before using it in later nodes.
EmbeddingsVia the Embeddings OpenAI sub-node2,048 dimensions; confirm your vector store is configured for that size.
Responses APINode-version dependentOpenAI node V2 uses it; confirm the route supports it before production.
Assistants, files, audio, videoOperation dependentDo not assume the node operation maps cleanly; use HTTP Request and test the exact endpoint.

Plan limits apply to the API requests your workflow makes, not to a single node. Free accounts created from 2 November 2026 get 100 requests and 50,000 tokens per day; older free accounts keep 500 requests and 250,000 tokens per day until migration. Hobby allows 1,000 requests and 2M tokens per day with 4 concurrent requests and 120 RPM. Starter allows 2,000 requests and 5M tokens per day with 6 concurrent and 240 RPM. Builder and Scale have no monthly token cap, but still enforce 10 or 16 concurrent requests and 600 or 1,200 RPM. A loop node that fans out 20 HTTP requests at once will hit concurrency before it hits a daily token number.

Error handling that survives production

n8n has two layers of failure handling: node settings and workflow settings. Use both. Node-level retries catch transient 429 and 5xx responses; an error workflow catches the execution that still fails after retries, so a failed customer request does not disappear silently.

Turn on Retry On Fail on the model node, set Max Tries to 3, and set Wait Between Tries to 2,000 ms or more. For HTTP Request, enable Never Error plus Include Response Headers and Status when you want to branch on status codes inside the workflow. Attach an Error Workflow in the workflow settings to alert a human.

n8n failure modes with Plugsky and the fix
Status or symptomCauseFix in n8n
Credential test 401Wrong key, revoked key or key from another hostRe-paste the Plugsky key; confirm it is not an OpenAI key.
Credential test 404Base URL missing /v1 or includes a pathSet exactly https://api.plugsky.com/v1.
404 on executionUnknown model ID or wrong URLUse an ID from /v1/models; use the full chat path only in HTTP Request.
400 context exceededPrompt plus output reserve is too largeTrim the messages array, lower max_tokens, or move to a larger plan.
413 payload too largeOversized document or historyChunk upstream, summarise, or send a file reference instead of raw text.
429 rate limitRPM, concurrency or daily quotaRetry with backoff, honour Retry-After, and reduce parallel branches.
Execution timeoutLong generation or slow upstreamRaise the HTTP timeout, lower output length, and move long jobs to a queue.
502 or 503Upstream failure after failoverRetry with jitter; alert if the error rate persists.

Operational notes for self-hosted and Cloud

On self-hosted n8n, outbound HTTPS to api.plugsky.com must be allowed. On n8n Cloud, the instance needs the same egress; confirm the platform's current egress rules rather than assuming. If your organisation uses a forward proxy, set the standard proxy environment variables and test the credential from the n8n container, not from your laptop.

Execution data is the other operational decision. n8n can save input and output data per execution, which means prompts and model replies may be stored in your n8n database. Set retention deliberately, redact sensitive fields before the model node, and keep API keys in credentials rather than in node parameters. The agents and RAG guide covers data boundaries and retrieval design if the workflow includes a knowledge base.

For high-volume automations, prefer one model call per item with a bounded batch size, not an unbounded loop. Use n8n's Split In Batches node to cap the batch size, and make each request idempotent by carrying your own request ID. Retries are safe only when the downstream action is idempotent; a retried model call that triggers a refund twice is worse than a failed execution.

When n8n is the right tool — and when it is not

n8n is a good fit for internal automations, scheduled jobs, webhook glue and human-in-the-loop approvals. It is a poor fit for low-latency, high-concurrency chat serving, where a direct API call from your application is simpler and cheaper to operate. It is also a poor fit for complex agent state that needs durable checkpoints; use an application framework for that and let n8n trigger it.

If the requirement is central routing, observability and cost control across several model providers, a gateway is a better layer than a workflow tool. The AI gateway overview explains where that boundary sits.

What we did not verify

  • We did not run an end-to-end n8n workflow against Plugsky in a live instance. The request shapes and credential fields are taken from official documentation and source, not from a recorded execution.
  • We did not test every n8n node version. The Chat Completions and Responses split depends on the installed version; check the node's operation list before building.
  • We did not verify Responses API parity for stateful conversations, built-in tools or file search through the n8n node.
  • We did not measure n8n Cloud egress behaviour or confirm that every Cloud region can reach the Plugsky API host.
  • We did not test AI Agent memory, tool calling or streaming with Plugsky models.
  • We used the API host https://api.plugsky.com/v1 throughout. Confirm the host in your account documentation before launch.

Frequently asked questions

Can n8n use Plugsky as an OpenAI-compatible API?

Yes. n8n's OpenAI credential has a Base URL field, so you can point it at https://api.plugsky.com/v1 and use a Plugsky key. The native OpenAI node can call the Responses API, and the HTTP Request node can call the Chat Completions endpoint with the same credential.

Which base URL goes in the n8n OpenAI credential?

Set the Base URL to https://api.plugsky.com/v1. The field replaces the default https://api.openai.com/v1, so keep the /v1 suffix. Do not enter the full chat completions path; n8n appends the operation path itself.

Which n8n node should I use for Plugsky?

Use the HTTP Request node when you need a guaranteed Chat Completions call. It sends POST https://api.plugsky.com/v1/chat/completions and returns choices[0].message.content. Use the native OpenAI node when its operation matches your endpoint, and check whether the node version uses Chat Completions or the Responses API.

Why does the n8n credential test fail?

The OpenAI credential test calls the models endpoint. A 401 means the key is wrong or belongs to another host. A 404 usually means the base URL is missing /v1 or has an extra path. Confirm the key, set https://api.plugsky.com/v1, and leave the Organization ID blank unless Plugsky issues one.

How do I handle a 429 rate limit in n8n?

Enable Retry On Fail on the model node, set a small number of tries, and use the Retry-After header when it is present. For HTTP Request, turn on Include Response Headers and Status so you can branch on the status code. Reduce parallel branches if the limit is concurrency rather than requests per minute.

Does the n8n AI Agent work with Plugsky?

The AI Agent's OpenAI Chat Model sub-node uses a LangChain OpenAI adapter with a custom base URL, so it should connect the same way. Agent memory, tool calling and streaming were not tested for this guide. Test a single tool call before you put an agent into production.

Related pages

Give your n8n workflow a production model endpoint

Start free with two keys, then move up when concurrency, context or daily volume outgrows the free tier.

Start Free → Read the docs

Sources

n8n behaviour was checked against the official node and credential documentation and the credential source on 20 November 2026. Plugsky plan and model facts come from the canonical pricing page and model catalogue. Recheck before quoting.

Official pages used for this guide
SourcePage checkedChecked
n8ndocs.n8n.io — OpenAI node20 Nov 2026
n8ndocs.n8n.io — OpenAI credentials20 Nov 2026
n8ndocs.n8n.io — HTTP Request node20 Nov 2026
n8n sourcegithub.com/n8n-io/n8n — OpenAI credential source20 Nov 2026
Plugskyplugsky.com/pricing and plugsky.com/models20 Nov 2026

Last checked 20 November 2026. Plugsky's canonical plan numbers live at /pricing; this page explains the integration and does not replace the plan terms.