Prompt AR is an innovative mobile application that combines the power of AI-driven 3D model generation with immersive Augmented Reality visualization. Simply describe what you want to see in natural language, and watch as the app generates a 3D model that you can place, interact with, and explore in your real-world environment through your phone's camera.
- 🤖 AI-Powered Generation: Leverages cutting-edge text-to-3D models (Shap-E and TRELLIS)
- 📱 AR Visualization: Real-time Augmented Reality placement and interaction
- 🎨 Two Quality Modes: Choose between fast basic generation or high-quality advanced models
- 🌐 Cross-Platform: Native iOS and Android support
- ⚡ Real-Time: Generate and visualize 3D models in seconds
- 🎨 Text-to-3D Generation: Convert text descriptions into 3D models using state-of-the-art AI models
- 📱 AR Visualization: View and interact with generated models in Augmented Reality
- 🚀 Dual Generation Modes:
- Basic Mode: Uses Shap-E model for faster, simpler 3D model generation (5-10 seconds)
- Advanced Mode: Uses TRELLIS model for higher quality 3D models with textures (10-30 seconds)
- 📦 GLB Format: Models are generated in GLB format, optimized for AR applications
- 🎯 Plane Detection: Automatically detects horizontal and vertical surfaces for model placement
- 🖱️ Interactive Controls: Pan, rotate, and scale models in AR space
- 💾 Model Management: Save and reuse generated models
- 🌐 Cross-platform: Works seamlessly on both iOS and Android devices
Prompt AR consists of two main components:
- Frontend (Flutter): Cross-platform mobile app for AR visualization
- Backend (FastAPI): REST API for 3D model generation
Flow Overview:
- User enters text prompt in Flutter app
- App sends request to Backend with model type selection (Basic/Advanced)
- Backend generates 3D model using Shap-E (Basic) or TRELLIS (Advanced)
- Backend applies
normalize_gltf_materialsfor AR optimization - Backend returns download URL
- Frontend downloads and displays model in AR view
See Frontend README and Backend README for detailed architecture and setup instructions.
- Backend: Python 3.11+, Hugging Face account (free) - or use the hosted backend
- Frontend: Flutter SDK 3.5.3+, iOS 12+ or Android API 21+
- Device: iOS or Android device with AR support (ARCore/ARKit)
The backend is already hosted on Hugging Face Spaces and ready to use:
- Live API: https://xnikkon-prmpt-ar-be.hf.space
- API Docs: https://xnikkon-prmpt-ar-be.hf.space/docs
No backend setup required! Just configure the frontend to use the hosted API.
- Frontend Setup: See Frontend README for detailed Flutter setup instructions
- Backend Setup: See Backend README if you want to run your own backend instance
The backend API is hosted on Hugging Face Spaces:
- Live API: https://xnikkon-prmpt-ar-be.hf.space
- API Documentation: https://xnikkon-prmpt-ar-be.hf.space/docs
For detailed API endpoints and usage, see Backend README.
prompt_ar/
├── backend/ # Python FastAPI backend
│ └── README.md # Backend documentation
└── frontend_prompt_ar/ # Flutter frontend
└── README.md # Frontend documentation
For detailed project structure and requirements, see:
- Frontend README - Flutter app structure and platform support
- Backend README - Backend architecture and API details
- Education: Visualize 3D concepts in AR for learning
- Design: Quick prototyping and visualization of design ideas
- Entertainment: Create and interact with 3D objects in your environment
- E-commerce: Preview products in AR before purchase
- Architecture: Visualize architectural concepts in real spaces
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the CC0-1.0 License - See LICENSE file for details.
- TRELLIS - Advanced 3D model generation by Microsoft
- Shap-E - Basic 3D model generation by OpenAI
- Hugging Face - Model hosting and inference platform, and Spaces hosting
- AR Flutter Plugin - AR visualization framework
For issues, questions, or contributions, please open an issue on the GitHub repository.


