The Phantomaton Stability Adapter allows the Phantomaton AI to generate images using the Stability AI API, bringing your wildest text prompts to life!
To install this plugin, use the following incantation:
npm install phantomaton-stability
To unleash the power of Stability AI image generation within Phantomaton, simply install the module in your system prompt:
/install(module:phantomaton-stability)The Stability Adapter requires an API key to access the Stability AI API. You can obtain an API key from https://platform.stability.ai/.
You can configure the API key and home directory (where generated images are stored) in .phantomaton/configuration.json:
{
"phantomaton-stability": {
"apiKey": "YOUR_STABILITY_API_KEY",
"home": "path/to/images",
"width": 1344,
"heiight" 960
}
}
Note: Replace YOUR_STABILITY_API_KEY with your actual Stability AI API key.
Once the adapter is installed and configured, your assistant will have access to the imagine command:
/imagine(project:my-project, file:image.png) {
A cat riding a unicorn
} imagine!This will generate an image based on the prompt "A cat riding a unicorn" and save it to image.png in the my-project project.
We welcome contributions to the Phantomaton Stability project! If you have any ideas, bug reports, or pull requests, please feel free to submit them. Just be sure to follow all coding style guidelines.