npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@miskokodi/n8n-nodes-kie-ai

v0.1.4

Published

n8n community node: KIE.ai Chat Model — use KIE's discounted LLM APIs (Gemini, GPT, Claude, DeepSeek, Grok) as a language model provider for AI Agents and chains, just like the OpenRouter node.

Readme

@miskokodi/n8n-nodes-kie-ai

n8n community node that adds a KIE.ai Chat Model — use KIE.ai's discounted LLM APIs (Gemini, GPT, Claude, DeepSeek, Grok) as the language model provider for AI Agent, chains, and any other LangChain root node, exactly like the built-in OpenRouter / OpenAI chat model nodes.

Why

KIE routes each LLM through its own OpenAI-compatible endpoint path (https://api.kie.ai/{model}/v1/chat/completions) and has no /models listing endpoint — which breaks n8n's stock OpenAI node (credential test and model dropdown both fail). This node handles the path-based routing internally and ships a model dropdown, so it Just Works.

Install

Self-hosted n8n → Settings → Community Nodes → Install → enter:

@miskokodi/n8n-nodes-kie-ai

(Requires N8N_COMMUNITY_PACKAGES_ENABLED=true, which is the default on self-hosted.)

Use

  1. Create a KIE.ai API credential with your API key (kie.ai → Dashboard → API Keys). The credential test validates the key against KIE's credit endpoint.
  2. Add KIE.ai Chat Model as the language model of your AI Agent / chain.
  3. Pick a model from the dropdown, or switch the field to an expression and pass any KIE model slug directly.

Options

Temperature, top-p, penalties, max tokens, retries, timeout — same surface as the built-in OpenAI chat model node.

Network options:

  • Use Relay Proxy: Route requests through your relay (for example Cloudflare Worker) to avoid datacenter IP blocks.
  • Relay Base URL: Relay template (recommended: https://your-relay.workers.dev/{model}/v1).
  • Base URL Override: Advanced direct-gateway override (ignored when relay is enabled).

Model list

KIE has no public models-list API, so the dropdown is a curated list in nodes/LmChatKieAi/LmChatKieAi.node.ts (KIE_MODELS). PRs welcome when KIE adds/renames models; the dropdown is wired through loadOptions, so a remote fetch can be dropped in later without a schema change.

Development

npm install
npm run build       # tsc + copy icon to dist

Local testing without publishing:

# in this repo
npm run build && npm pack        # produces miskokodi-n8n-nodes-kie-ai-0.1.2.tgz

# on your n8n host
cd ~/.n8n/nodes                  # create if missing
npm install /path/to/miskokodi-n8n-nodes-kie-ai-0.1.2.tgz
# restart n8n

Publish

npm login
npm publish --access public

Then optionally submit for n8n's verified community node listing: https://docs.n8n.io/integrations/creating-nodes/deploy/submit-community-nodes/

Notes

  • Function calling / tools are supported (KIE's chat endpoints accept the standard tools param), so AI Agent tool use works. Behavior fidelity varies per underlying model, as with any aggregator.
  • The model field in the request body is effectively ignored by KIE's gateway — the URL path decides the model. The node sets both consistently.

License

MIT