plai
v1.0.1
Published
Generate Spotify Playlists With AI!!! For Free! (Only Gemini API Key needed)
Downloads
3
Readme
plai - Playlist AI Generator
Generate Spotify Playlists With AI!!! For Free! (Only Gemini API Key needed)
Installation
Install plai globally using npm:
npm install -g plai
Usage
Run plai to start the playlist generation process:
plai [prompt]
Replace [prompt]
with your desired playlist request.
Options
-h, --help
: Show help information.-v, --verbose
: Show verbose output.-u, --username
: Spotify username.-p, --password
: Spotify password.-n, --count
: Number of songs to add to the playlist (default is 20).-a, --artists
: Query followed artists for better recommendations. (defaults to true)-c, --cover
: Add a cover image to the playlist. (defaults to true)
Examples
- Basic usage (will look for
$GEMINI_API_KEY
):
plai "My favorite songs"
- Using a Gemini API Key:
plai --gemini-api-key=YOUR_API_KEY "Summer vibes"
- Specifying username and password (by default asks you):
plai -u your_spotify_username -p your_spotify_password "Chill beats"
- Customizing playlist size and features: Don't generate a cover image, and don't use followed artists, generate 30 songs
plai --count 30 --artists=false --cover=false "Study playlist"
Configuration
plai stores user authentication details and tokens in a configuration file located at ~/.config/spotify-cli/config.json
.
Uninstall:
npm uninstall -g plai
rm -rf ~/.config/spotify-cli
Acknowledgments
- Spotify Web API for playlist creation
- Librespot for authentication.
- Gemini AI for generation
Contributing
Contributions are welcome! Please create an issue or pull request for any improvements or bug fixes.