Skip to content

enancial/petmorph

Repository files navigation

PetMorph - AI Pet-to-Human Transformation App

PetMorph is an AI-powered application that transforms pet photos into photorealistic human equivalents, preserving the essence and personality of your beloved pets.

Features

  • 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

Technology Stack

  • 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

Getting Started

Prerequisites

  • Node.js 18 or later
  • PostgreSQL database
  • OpenAI API key

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/petmorph.git
    cd petmorph
    
  2. Install dependencies:

    npm install
    
  3. Set up environment variables:

    • Create a .env file in the root directory
    • Add the following variables:
      DATABASE_URL=your_postgresql_connection_string
      OPENAI_API_KEY=your_openai_api_key
      
  4. Initialize the database:

    npm run db:push
    
  5. Start the development server:

    npm run dev
    
  6. Open http://localhost:5000 in your browser

Usage

  1. Upload a photo of your pet (cat or dog)
  2. Select customization options (age range, gender, pet type)
  3. Click "Transform" to generate a human equivalent
  4. Download or share your result

Monetization

  • Free Tier: 3 transformations
  • Pro Tier: $4.99 for unlimited transformations and premium features

License

MIT

Acknowledgments

  • OpenAI for their image generation capabilities
  • All pet owners who inspired this project

Made with ❤️ for pets everywhere

About

AI-powered pet photo transformation application that converts pet images into photorealistic human equivalents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages