AI Provider for deAPI

Description

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

  • Image generation: FLUX.1 [schnell], Z-Image Turbo, Z-Anime Distill and FLUX.2 [klein] 4B.
  • Image editing: FLUX.2 [klein] 4B, with up to three input images.
  • Video generation: LTX-2.5 22B (3-10 seconds) and MiniMax H3 33B Turbo (8 seconds), from text or from a first-frame image. Sizes: 768×768, 1344×768, 768×1344, 1024×768 and 768×1024. Output is MP4.
  • Text-to-speech: Kokoro (41 voices in 7 languages), Chatterbox and Qwen3 TTS CustomVoice. Output is MP3.
  • Embeddings: BGE-M3 (1024 dimensions). Requires WordPress 7.2 or later.

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

  • WordPress 7.0 or later (the plugin loads on 6.9 but does nothing without the AI Client).
  • A deAPI account and API key. You can create an account.

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.

External services

This plugin connects to the deAPI API at https://oai.deapi.ai/v1 to list the models available to your account and to run the generation requests that plugins send through the WordPress AI Client. Nothing is sent until an API key is configured.

  • When you save an API key under Settings > Connectors, and when the AI Client needs the model list, the plugin sends your API key to https://oai.deapi.ai/v1/models.
  • When a plugin asks the AI Client for an image, an image edit, a video, speech or embeddings and deAPI is selected, the plugin sends your API key, the prompt or input text, any source images, and the requested options (model, size, number of images, video length, voice) to the matching deAPI endpoint. For videos it then checks the job status every 5 seconds and downloads the finished file from the same API.
  • Generated images may be returned as links to https://results.deapi.ai, which the AI Client may download.

The plugin sends no other data and makes no requests in the background.

deAPI Terms of Service and Privacy Policy.

Screenshots

Installation

  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 plugin, turn on Image Generation and Editing under Settings > AI, then open Media > Generate Image. Its Text to Speech feature also works with deAPI and creates an audio version of a post from the editor sidebar.

FAQ

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.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“AI Provider for deAPI” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.1.0

  • Initial release: image generation and editing, video generation, text-to-speech and embeddings.