Skip to content

vxdosick/FastAPI-NSFW-Prompt-Generator-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

45 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

NSFW Prompt Generator AI

This bot has an official version.

Functionality / Features

NSFW Prompt Generator AI is an AI-powered assistant designed to generate detailed prompts for adult-oriented image generation models. Key features include:

  • AI-powered Prompt Generation – create structured, high-detail prompts based on user descriptions.
  • Model Optimization – prompts are optimized for Flux, Pony XL, Illustrious, RealVisXL, SDXL, Midjourney, Grok-2 and other compatible models.
  • Unrestricted Creative Input – supports explicit, uncensored prompt construction according to user requests.
  • Ready-to-Use Output – generates copy-ready prompts for seamless integration into image generation workflows.
  • Fast & Lightweight – simple interface without complex dashboards or unnecessary steps.
  • Free Trial Access – new users receive a limited number of free generations to explore functionality.
  • This bot streamlines the process of creating high-quality adult prompts, making prompt engineering faster, more accessible, and more efficient for AI image generation platforms.
  • Save or delete up to 5 prompts. This limit may be increased in the future.

List of bot's comands

  1. /start - Getting started
  2. /help - Help with usage
  3. /balance - Check credits and buy generations ❀️
  4. /prompts - View saved prompts πŸ“
  5. /terms - Privacy Policy and Refund Policy
  6. /contacts - Contact the developer or report a bug πŸ‘¨β€πŸ’»

Main stack

  • Python 3.12.12
  • Telegram Bot API (python-telegram-bot)
  • FastAPI β€” REST API layer
  • PostgreSQL (Neon) β€” lightweight database
  • SQLAlchemy 2.0 β€” ORM
  • OpenRouter API β€” AI integration
  • Uvicorn β€” ASGI server
  • Render - deployment
  • Ngrok - local tunneling for webhook testing
  • Stripe - Payment system
  • Alembic (For database migrations)

Useful commands

  1. Environment creating
python -m venv venv
  1. Install dependencies
pip install -r requirements.txt
  1. Copy environment variables from .env.example into a new .env file in the project root and fill in your values.
  2. Run database migrations
alembic upgrade head
  1. Start server
  • development mode
uvicorn server.main:server --reload
  • production mode
uvicorn server.main:server --host 0.0.0.0 --port 8000
  1. Ngrok starting (development mode)
ngrok http 8000
  1. Preservation of requirements (if they change)
pip freeze > requirements.txt
  1. Webhook - Telegram Initialisation
curl -F "url=(SERVER_URL)/tg-webhook" https://api.telegram.org/bot(BOT_TOKEN)/setWebhook

VERY IMPORTANT

Before using this software, please read the LICENSE. Thank you – let’s make life a little bit easier for programmers ❀️

About

πŸ’ƒπŸ» Official repo of NSFW Prompt Generator AI Telegram Bot. Advanced Prompt Engineering tool for Flux, Pony XL, Illustrious, RealVisXL, SDXL, Midjourney, Grok-2 & more. Powered by FastAPI and python-telegram-bot.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors