plugin-imagine
This package allows any ElizaOS agent to pay for media generations on Imagine.
Installation
In your EllizaOS agent, you can run the following command to install the plugin
elizaos plugins add @onbonsai/plugin-imagineAnd add it to your agent's character file
{
"plugins": ["@onbonsai/plugin-imagine"]
}You can also just install the package and use the imports. Check the repo here.
yarn add @onbonsai/plugin-imagineExports
These are the main exports available from the package
import {
GenerationService
} from "@elizaos/plugin-imagine";GenerationService: create content from a prompt and optional template data
Usage
The only required field is prompt. Optional templateData supports video options (defaults are sensible), and you may pass an image as a URL, base64 data URL, or File.
Last updated