Tag: WordPress moonshot

  • WordPress AI Connector for Kimi (Moonshot AI)

    WordPress AI Connector for Kimi (Moonshot AI)

    WordPress 7.0 added built-in support for AI connectors. The idea is simple. Instead of every plugin author writing their own integration with OpenAI, Anthropic or Google, WordPress now defines one common interface, and the actual AI provider behind it is swappable. You install a connector for the provider you want, and any plugin on your site that uses AI features picks it up automatically.

    OpenA, Anthropic and Google make great models, but for the kind of work a WordPress site usually does, like generating drafts, writing summaries, answering simple questions in a chatbot, you are paying a premium for capabilities you mostly do not need. Open and cheaper alternatives have caught up to the point where, for everyday tasks, the difference in quality is small and the difference in price is huge.

    So I wrote a connector for one of those cheaper providers. It is called AI Provider for Kimi.

    Why Kimi

    Kimi is made by a company called Moonshot AI. Their models, especially kimi-k2.6, are strong. The API is OpenAI-compatible, which means the request and response shapes are almost identical, so it fits into the WordPress AI connector contract cleanly. And the pricing is a small fraction of what the big closed-source providers charge.

    You bring your own API key from platform.kimi.ai and you pay Moonshot directly for what you use. There is no middleman.

    What the plugin does

    It is a thin layer, on purpose.

    1. It registers Kimi as a connector inside WordPress.
    2. It fetches the list of available Kimi models from the API, so new releases show up without a plugin update.
    3. It adds a settings screen where you pick a default model.
    4. It hands every AI request from other plugins off to Kimi and returns the response.

    How to use it

    If you are on WordPress 7.0 or later:

    1. Install and activate the plugin.
    2. Get an API key from platform.kimi.ai.
    3. Paste the key into the AI connectors screen in WordPress.
    4. Pick a default model from Settings, Kimi AI.

    Any other plugin on your site that uses AI will start running on Kimi automatically. You do not have to touch their code.

    If you are still on WordPress 6.9, you can install the AI client package separately and the connector will work the same way.

    Why I think this matters

    Two things are happening at the same time. WordPress is making AI a first-class citizen in core, which means a lot of plugin authors are about to start adding AI features. And the cost gap between the closed-source giants and the rest of the field is at its widest in years.

    If the default for the WordPress ecosystem becomes “ship it with OpenAI”, a lot of small site owners are going to end up paying way more than they need to. The fix is to make sure the cheaper providers are just as easy to install. That is the whole point of writing connectors like this one.

    It is also the point of the connector system itself. Once your plugins talk to the connector interface instead of a specific vendor, the choice of provider becomes a settings change, not a code change. That is a healthy place for the ecosystem to be in.

    If you want to try the plugin, or read the code, or open an issue, the repo is here:

    https://github.com/Abdalsalaam/ai-provider-for-kimi

    It is GPL-2.0 and free. If you are a WordPress developer planning to add AI features, please consider giving your users a cheaper option out of the box. The connector system makes it easy.