const { NumUtils } = await import('/js/esm/NumUtils.js');
let promptURL = `https://image.pollinations.ai/prompt/`;
let prompt = "A chinese ancient soldier riding a white horse, with a long sword in hand, is fighting with mass enemies. The battle field is covered with bloods of enemies.";
let width = 1024;
let height = width * 3 / 4;
let seed = NumUtils.GetRandomIntInclusive(1, 300);
let model = 'flux';
let nologo = true;
let src = `${promptURL}${encodeURIComponent(prompt)}?width=${width}&height=${height}&seed=${seed}&model=${model}&nologo=${nologo}`;
pc.log(src);
pc.log(seed);
let img = document.querySelector('img');
img.src = src;