A plugin to integrate LetzAI Image Generation capabilities into the elizaos ecosystem.
It uses the LetzAI API and can use any models available to API user.
Users need to add their LETZAI_API_KEY in .env file.
LetzAI is an image generation platform and visual discovery engine. It enables anyone to generate images about anything, by allowing users to add themselves, their products or their art style to the platform as AI Models.
This plugin integrates LetzAI with Eliza, enabling agents to generate images using any LetzAI Models, including the ones you may have created specifically of or for your agent.
To use this plugin, you will need a LetzAI API Key, which can be created on your subscription page here. A subscription is required to create an API key.
To generate images the plugin introduces its own GENERATE_IMAGE action.
The plugin was not tested together with other image generation functionalities.
pnpm install @elizaos/plugin-letzai
LETZAI_API_LEY=<Your LetzAI API Key>
LETZAI_MODELS="@hailee, @examplemodel2"
Inside the plugin's index.tsx file is a "improvePrompt" variable and some code that is commented out. This code could be enhanced to make the instructions from chat be passed to the API in a better way. This is an open TO DO.
- Clone the repository
- Install dependencies:
pnpm install
- Build the plugin:
pnpm run build
I am currently working on an example Agent called "HaileeAgent". Will share more information on this as I progress.
In my own character.json file for Hailee, I have integrated the plugin like this:
"plugins": ["../../packages/plugin-letzai/src/index.ts"],
"actions": ["GENERATE_IMAGE"],
But I'm not sure yet this is the correct way for public repos.
- Interactive agent with better image polling
- Enable "Improve prompt" functionality
If anybody knows how to make the agent be pro-active and send multiple callbacks(), please reach out.
This Plugin is developed by LetzAI. Any helpful contributions are welcome!
Built by mitch0z
This plugin is part of the Eliza project. See the main project repository for license information.