Linux 软件免费装
Banner图

AI Provider for deAPI

开发者 deapi
更新时间 2026年11月10日 17:28
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

ai text to speech image generation video generation embeddings

下载

0.1.0

详情介绍:

This plugin adds deAPI as a provider for the WordPress AI Client, which is part of WordPress 7.0. Once it is active and an API key is saved under Settings > Connectors, any plugin built on the AI Client can generate and edit images, generate videos, create speech and compute embeddings with deAPI. deAPI runs open-source models on a distributed GPU network and charges per request, with no subscription. Supported models The plugin lists only the models available to your deAPI account. deAPI has no chat models, so text features such as title or excerpt generation keep using your other AI providers. Requirements Source code The plugin ships its full, unminified source. Development happens on GitHub, where you can report issues and run the tests. The model classes follow the structure of the AI Provider for OpenAI plugin by the WordPress AI Team, which is licensed under GPLv2 or later.

安装:

  1. Install and activate the plugin.
  2. Create an API key in the deAPI dashboard.
  3. Go to Settings > Connectors, find deAPI and paste the key. WordPress checks the key with deAPI when you save it.
You can also set the key with the DEAPI_API_KEY environment variable or a DEAPI_API_KEY constant in wp-config.php. To try it, install the AI Experiments plugin and use its image generation feature in the post editor.

常见问题:

Which deAPI features are not available?

Transcription, music generation and the other deAPI endpoints are not part of this plugin, because the WordPress AI Client does not support them yet or deAPI does not offer them through its OpenAI-compatible gateway.

Why does image generation take a few seconds?

deAPI waits for the GPU job to finish before it answers. Most images take 5 to 30 seconds, edits can take longer. The plugin allows up to 5 minutes per request.

How long does video generation take?

Usually 30 seconds to 2 minutes. The AI Client waits for the finished MP4, so call it from WP-CLI, a cron event or a background job rather than a normal page request, where the PHP time limit (often 30 seconds) can stop it first. Set the length with the seconds custom option, for example ['customOptions' => ['seconds' => 5]].

How do I choose a voice?

Pass a voice ID through the AI Client, for example af_nova or bm_george for Kokoro. The OpenAI voice names (alloy, echo, fable, onyx, nova, shimmer) also work. The default voice is alloy.

更新日志:

0.1.0