@ajocham Great idea! I have tried the module on my MagicMirror and it works, somewhat… A few thoughts:
Public keys seem to be deprecated in pollinations.ai and you can no longer create them on their website. The module seems to work fine with a secret key though, which I created and used. Perhaps you could change that in the README to prevent confusion for future users.
The module does generate and download images. Unfortunately, in my case the image does not appear properly as a background image but modules will appear on top of the background with a black background. In my main.css I have defined a 60px gap between the edges of the screen and my modules. Only there the image appears…

This is what my module configuration looks like:
{
module: "MMM-AIWallpaper",
position: "fullscreen_below",
config: {
weatherApiKey: "*****************************",
pollinationsKey: "*****************************", // pk_...
city: "*****************************",
mediaType: "image", // "image" or "video"
width: 600,
height: 1024,
imagemodel: "flux",
videomodel: "nova-reel",
videoDuration: 5,
videoAspectRatio: "9:16",
videoAudio: false,
muteVideo: true,
loopVideo: true,
enhance: true,
styles: [
"impressionist painting, oil on canvas, artistic, moody, expressive brushstrokes",
"Comic style, atmospheric, science fiction elements, modern european",
"anime background art, studio ghibli style, detailed, beautiful",
"photorealistic landscape, ultra detailed, 8k"
],
updateInterval: 60 * 60 * 1000, // 1 hour in ms
debug: false,
}
},
Any ideas?