A curated collection of prompt engineering templates specifically designed to work with the Pollinations.ai API. This library helps Discord bot developers transform simple user inputs into high-quality AI masterpieces.
- Curated Styles: Hand-picked modifiers for consistent results.
- Easy Integration: Designed to plug directly into your existing API calls.
- Performance: Zero-dependency, lightweight JavaScript.
- Cinematic: Professional photography and lighting.
- Anime: High-quality hand-drawn animation look.
- Cyberpunk: Neon-drenched futuristic aesthetics.
- Fantasy: Epic, magical digital painting style.
-
Import the library: const { enhancePrompt } = require('./presets');
-
Generate your prompt: const userQuery = "A majestic wolf"; const styledPrompt = enhancePrompt(userQuery, "fantasy");
-
Send to Pollinations: const apiUrl =
https://pollinations.ai/p/${encodeURIComponent(styledPrompt)}?width=1024&height=1024&model=flux;