Skip to content

XHyperDEVX/PollGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A clean, minimal web application for generating AI images using the Pollinations API. Built with vanilla JavaScript, HTML, and CSS.

Features

🌍 Internationalization

  • Two-language support: English (default) and German
  • Language preference stored in localStorage

🎨 Modern UI Design

  • Clean, minimal, and intuitive interface
  • Responsive design (mobile-friendly)

🤖 Dynamic Model Loading

  • Models fetched from Pollinations API
  • Model list cached in localStorage (24-hour cache duration)
  • Graceful fallback to cached models if API is unavailable

⚙️ Generation Options

  • Prompt: Detailed image description (required)
  • Model Selection: Choose from available image generation models
  • Dimensions: Custom width and height (64-2048px)
  • Aspect Ratio Presets: 16:9, 9:16, 1:1, 3:4, or custom
  • Seed: Control randomness (0 = random)
  • Quality: Low, Medium, High, HD
  • Guidance Scale: Control how closely the result follows the prompt (1-20)
  • Negative Prompt: Describe what to avoid in the image
  • Advanced Options:
    • Enhance: Let AI optimize the prompt
    • Private: Hide from public feeds
    • No Logo: Remove Pollinations watermark
    • No Feed: Prevent sharing in public feed
    • Safe: Enable safety content filters
    • Transparent: Create transparent background (if supported)

How to Use

  1. Open PollGen: https://xhyperdevx.github.io/PollGen
  2. Enter your API Key: Get a API key from pollinations.ai and enter it in the API Key field
  3. Describe your image: Enter a detailed description of the image you want to generate
  4. Select a model: Choose from the available image generation models
  5. Adjust settings (optional): Customize dimensions, quality, guidance, and other parameters
  6. Generate: Click the "Generate Image" button
  7. Download: Once generated, download your image or open the source link

Language Support

The application automatically defaults to English. Users can switch between languages using the toggle button in the top-right corner.

Supported languages:

  • 🇬🇧 English (en)
  • 🇩🇪 German (de)

API Key Security

⚠️ Important: Your API key is stored in sessionStorage only, which means:

  • It's cleared when you close the browser tab/window
  • It's never saved to disk or sent to any server (except Pollinations API)
  • It's not included in any GitHub commits or deployments

Technical Details

  • No backend required: Fully static frontend application
  • Vanilla JavaScript: No frameworks or dependencies
  • Dynamic model loading: Fetches latest models from Pollinations API
  • Caching: 24-hour cache for models to reduce API calls
  • Responsive: Mobile-first design that works on all screen sizes
  • Accessible: Semantic HTML with proper ARIA labels

License

This project is open source and available under the MIT License.

Credits


Note: This README was created by AI and may contain inaccuracies.

About

Pollinations Image Generator (PollGen)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published