Prerequisites
- Node.js 18+ installed
- A MeiGen account at meigen.ai
- An API key (for image generation — get one here)
Installation
Claude Code
Configure your API key
When prompted by the plugin, run
/meigen:setup and paste your API key.Alternatively, set it as an environment variable:Cursor
Windsurf
Verify Installation
After setup, ask your AI assistant:“List the available MeiGen models”If configured correctly, it will call the
list_models tool and show you the available models with their pricing.
Usage Examples
Generate an image
“Generate a minimalist tech logo using Nanobanana 2, square format”
Search for inspiration
“Search the MeiGen gallery for cyberpunk cityscapes”
Enhance a prompt
“Enhance this prompt for image generation: a sunset over mountains”
Get random inspiration
“Give me some inspiration for AI art”
Troubleshooting
'No image generation providers configured'
'No image generation providers configured'
Your API key is not set. Run
/meigen:setup in Claude Code, or add the MEIGEN_API_KEY environment variable to your MCP configuration.'Insufficient credits'
'Insufficient credits'
API keys can only use purchased credits, not daily free credits. Purchase credits at meigen.ai.
Plugin not showing in tool list
Plugin not showing in tool list
- Make sure Node.js 18+ is installed
- Try running
npx -y libreartdirectly to check for errors - Restart your editor
- Check that the MCP configuration JSON is valid
Generation timeout
Generation timeout
Some models take longer to generate. Niji 7 can take up to 60 seconds, and Veo 3.1 (video) can take several minutes. The plugin will wait automatically.