Created
March 3, 2024 20:39
-
-
Save Realiserad/7093dd77f1bb6c002da17a43cbc4c1d4 to your computer and use it in GitHub Desktop.
Shell out AI-generated images from pollinations.ai based on a description (text2img)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env sh | |
| set -e | |
| i=0 | |
| while [ "$i" -lt "$1" ]; do | |
| i=$((i+1)) | |
| prompt=$(echo "$2 $i" | jq --slurp --raw-input --raw-output @uri) | |
| curl -s "https://image.pollinations.ai/prompt/$prompt" -o $i.png | |
| done | |
| echo "🎨 Enjoy!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment