- Images: the open-source deAPI Images extension generates pictures in a chat. SillyTavern’s built-in OpenAI image source always calls api.openai.com, so the extension is needed.
- Voice: SillyTavern’s OpenAI Compatible text-to-speech provider works with deAPI as it is. No extension is needed.
Prerequisites
- A SillyTavern install
- A deAPI API key from the deAPI Dashboard. See API Keys.
Image generation
-
In SillyTavern, open Extensions → Install extension and paste:
- Open Extensions → deAPI Images.
- Paste your deAPI key into API key and click Test key.
-
Pick a Model and a Size. The defaults,
ZImageTurbo_INT8at512 × 512, work out of the box.
Prompt prefix is added before every prompt, which is handy for a fixed style such as
anime style, soft light.
Text-to-speech
- Open Extensions → TTS and set the provider to OpenAI Compatible.
-
Set Provider Endpoint to:
-
Set Model to
Kokoro. -
Set Available Voices to the voices you want to assign, e.g.
af_nova,af_sky,am_onyx,bm_fable. - Click the key button next to the endpoint, paste your deAPI key and save.
- Assign a voice to each character in the voice map below.
Kokoro returns. In testing, a short line took 5 to 10 seconds.
Privacy
The extension stores your key in your SillyTavern settings and sends it only tooai.deapi.ai. Its requests carry an X-Deapi-Source: sillytavern header, so deAPI can count traffic from the extension. Nothing about you or your chats is added. Generated images are saved with SillyTavern’s user images, like those from the built-in Image Generation extension.
Troubleshooting
Next steps
deAPI Images extension
Source code and issues
OpenAI Compatibility
Every endpoint, model and field the OpenAI-compatible API supports