A web-based application for transforming textual concepts into high-quality 2D images and production-ready 3D models.
| To progress again, man must remake himself |
|---|
- User Authentication - Secure signup/login with bcrypt password hashing
- Credit System - Simple mock payment system for testing
- Document Analysis - LLM powered entity extraction
- 2D Image Generation - High quality images via OpenAI DALL-E 3
- 3D Model Generation - Image-to-3D conversion using Stability AI
pip install -r requirements.txtThe .env file already contains the necessary API keys:
- OPENAI_API_KEY - For DALL-E 3 image generation
- STABILITY_API_KEY - For 3D model generation
- TOGETHER_API_KEY - For document analysis
All keys are pre-configured and ready to use!
python main.pyThe application will be available at http://localhost:8080
- New users receive 5 free credits upon registration
- Existing users can log in with their credentials
- Upload
.txtor.mdfiles containing character descriptions or object details - Click "Analyze Documents" to extract entities using AI
- Select an extracted entity from the list
- Add optional style modifications
- Click "Generate Image" to create a high-quality 2D image
- After generating an image, click "Generate 3D Model"
- View the interactive 3D preview
- Download the
.glbfile for use in other applications
- When credits run low, click "Buy Credits"
- Enter the payment password:
sculptor(from SECRET_KEY in .env) - 10 credits will be added instantly after verification
- You can change the password by editing SECRET_KEY in .env file
sculpt/
├── main.py # Main application entry point and UI
├── auth.py # Authentication functions
├── database.py # SQLAlchemy models and CRUD operations
├── api_clients.py # OpenAI and Stability AI integrations
├── rag.py # txtai-based entity extraction
├── mock_payment.py # Mock payment system for testing
├── requirements.txt # Python dependencies
├── .env # Environment variables (not in git)
└── README.md # This file
- All passwords are hashed using bcrypt
- API keys are stored in
.env(never commit this file) - Session management uses secure cookies
- Credit deductions only occur after successful API calls
- 2D Image Generation: 1 credit
- 3D Model Generation:
- Stable Point Aware 3D: 1 credit (cost-effective, good quality)
- Stable Fast 3D: 3 credits (premium quality, faster generation)
- Get 10 credits by entering password
- NiceGUI - Web framework and UI
- SQLAlchemy - Database ORM
- OpenAI - DALL-E 3 image generation
- Stability AI - Stable Fast 3D model generation
- passlib - Password hashing