PetMorph is an AI-powered application that transforms pet photos into photorealistic human equivalents, preserving the essence and personality of your beloved pets.
- AI-Powered Transformations: Convert pet images into realistic human portraits using OpenAI's DALL-E 3
- Customization Options: Select gender, age range, and pet type for tailored results
- Advanced Age Mapping: Sophisticated algorithm maps pet ages to equivalent human ages
- Freemium Model: Try 3 free transformations before upgrading to Pro
- Pro Features: Unlimited transformations, high-resolution exports, and no watermarks
- Frontend: React with TypeScript
- Backend: Node.js with Express
- Database: PostgreSQL with Drizzle ORM
- AI Integration: OpenAI DALL-E 3 and GPT-4o
- Styling: Tailwind CSS with shadcn/ui components
- Node.js 18 or later
- PostgreSQL database
- OpenAI API key
-
Clone this repository:
git clone https://github.com/yourusername/petmorph.git cd petmorph -
Install dependencies:
npm install -
Set up environment variables:
- Create a
.envfile in the root directory - Add the following variables:
DATABASE_URL=your_postgresql_connection_string OPENAI_API_KEY=your_openai_api_key
- Create a
-
Initialize the database:
npm run db:push -
Start the development server:
npm run dev -
Open http://localhost:5000 in your browser
- Upload a photo of your pet (cat or dog)
- Select customization options (age range, gender, pet type)
- Click "Transform" to generate a human equivalent
- Download or share your result
- Free Tier: 3 transformations
- Pro Tier: $4.99 for unlimited transformations and premium features
- OpenAI for their image generation capabilities
- All pet owners who inspired this project
Made with ❤️ for pets everywhere