{"id":22922424,"url":"https://github.com/codebucks27/pictoria-ai-starter-code","last_synced_at":"2025-07-25T21:41:52.699Z","repository":{"id":267472231,"uuid":"888510673","full_name":"codebucks27/Pictoria-AI-Starter-Code","owner":"codebucks27","description":"Transform your photos with the power of AI! Pictoria AI is your ultimate solution for creating/generating professional AI-generated photos, similar to the popular PhotoAI platform. Perfect for LinkedIn headshots and professional portraits. Train AI model on your personal images and generate stunning images.","archived":false,"fork":false,"pushed_at":"2025-03-25T09:46:14.000Z","size":12910,"stargazers_count":68,"open_issues_count":0,"forks_count":25,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T03:19:14.522Z","etag":null,"topics":["ai","ai-saas","ai-saas-application","flux","flux-dev","fullstack","nextjs","photo-ai","replicate","replicate-api","saas","saas-application","saas-boilerplate","stripe","supabase"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codebucks27.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["codebucks27"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":["https://codebucks.gumroad.com/coffee"]}},"created_at":"2024-11-14T14:23:31.000Z","updated_at":"2025-04-07T11:38:24.000Z","dependencies_parsed_at":"2025-03-25T10:38:59.976Z","dependency_job_id":null,"html_url":"https://github.com/codebucks27/Pictoria-AI-Starter-Code","commit_stats":null,"previous_names":["codebucks27/pictoria-ai-starter-code"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebucks27%2FPictoria-AI-Starter-Code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebucks27%2FPictoria-AI-Starter-Code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebucks27%2FPictoria-AI-Starter-Code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebucks27%2FPictoria-AI-Starter-Code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebucks27","download_url":"https://codeload.github.com/codebucks27/Pictoria-AI-Starter-Code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767239,"owners_count":20992548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-saas","ai-saas-application","flux","flux-dev","fullstack","nextjs","photo-ai","replicate","replicate-api","saas","saas-application","saas-boilerplate","stripe","supabase"],"created_at":"2024-12-14T08:10:07.882Z","updated_at":"2025-04-08T03:19:28.341Z","avatar_url":"https://github.com/codebucks27.png","language":"TypeScript","funding_links":["https://github.com/sponsors/codebucks27","https://codebucks.gumroad.com/coffee"],"categories":[],"sub_categories":[],"readme":"# Pictoria AI - Personalized AI Photo Generation Platform\n\nTransform your photos with the power of AI! Pictoria AI is your ultimate solution for creating/generating professional AI-generated photos, similar to the popular PhotoAI platform. Perfect for LinkedIn headshots, Instagram content, dating profile pictures, and professional portraits. Train AI model on your personal images and generate stunning, high-quality AI-generated photos within minutes.\n\n![GitHub stars](https://img.shields.io/github/stars/codebucks27/Pictoria-AI-Starter-Code?style=social\u0026logo=ApacheSpark\u0026label=Stars)\u0026nbsp;\u0026nbsp;\n![GitHub forks](https://img.shields.io/github/forks/codebucks27/Pictoria-AI-Starter-Code?style=social\u0026logo=KashFlow\u0026maxAge=3600)\u0026nbsp;\u0026nbsp;\n![Github Followers](https://img.shields.io/github/followers/codebucks27.svg?style=social\u0026label=Follow)\u0026nbsp;\u0026nbsp;\u003cbr /\u003e\n\nIf you want to learn how to create it please follow below tutorial👇: \u003cbr /\u003e\n➡ Tutorial Link 💚: [How to Build a $1M PhotoAI Sass Clone](https://youtu.be/7AQNeii5K7E) \u003cbr /\u003e\n➡ Final Source Code💛: https://dub.sh/wYWBX9z (Get 40% discount with code **NEWYEAR40** Offer ends December 31st) \n\n\n🎯 For customised solutions or deployment please contact: https://tally.so/r/wdlj0N\n\n\n#### ⭐DO NOT FORGET TO STAR THIS REPO⭐\n\n## 🚀 Key Features  \n\n\n- 🛠️ Complete SaaS built in modern Next.js\n- 💻 Beautiful landing page included\n- 🤖 Train AI model on your personal images\n- 🖥️ Clean \u0026 intuitive event monitoring dashboard\n- 🎯 AI-Powered Professional Photo Generation\n- 🎨 Custom AI Model Training\n- 💼 Professional LinkedIn Headshots\n- 🌟 Clean, modern UI on top of shadcn-ui\n- 📱 Social Media Content Generation\n- 💳 Integrated Payment System\n- ✉️ Email Notifications\n- 📊 Usage Analytics\n- 🎁 ...much more\n\n## Images of The AI App:\n\n![Photo AI clone Dashboard](https://github.com/codebucks27/Pictoria-AI-Starter-Code/blob/main/screenshots/Dashboard.png)\n---\n![Photo AI clone Image Generation Page](https://github.com/codebucks27/Pictoria-AI-Starter-Code/blob/main/screenshots/Image-Generation.png)\n---\n![Photo AI clone Model Training Page](https://github.com/codebucks27/Pictoria-AI-Starter-Code/blob/main/screenshots/Model-Training.png)\n---\n![Photo AI clone Billing Page](https://github.com/codebucks27/Pictoria-AI-Starter-Code/blob/main/screenshots/Billing.png)\n---\n![Photo AI clone Account Settings Page](https://github.com/codebucks27/Pictoria-AI-Starter-Code/blob/main/screenshots/Account-Settings.png)\n\n## 🛠️ Tech Stack\n\n- **Framework:** Next.js 15 (App Router)\n- **Styling:** Tailwind CSS, Shadcn UI\n- **Database:** Supabase (PostgreSQL)\n- **Authentication:** Supabase Auth\n- **AI Integration:** Replicate AI API\n- **Payment Processing:** Stripe\n- **Email Service:** Resend\n- **Language:** TypeScript\n\n## ⚡ Prerequisites\n\nBefore you begin, ensure you have:\n\n- Node.js installed (v20.x recommended, v18+ supported) \n- A Supabase account\n- A Replicate account\n- A Stripe account\n- A Resend account\n\n## 🚀 Setup Instructions\n\n### 1. Clone the Repository\n\n```bash\ngit clone [your-repo-url]\ncd Pictoria-AI-Starter-Code\n```\n\n### 2. Install Dependencies\n\n```bash\nnpm install\n# or\nyarn install\n# or\npnpm install\n```\n\n### 3. Environment Variables\n\nCreate a `.env.local` file in the root directory. Check `.env.example` for required variables.\n\n### 4. Supabase Database Setup\n\n1. Create a new Supabase project\n2. Create a new storage bucket named `generated_images`\n3. Execute the SQL queries from `supabase-queries.md` in your Supabase SQL editor (You can also follow the tutorial video to setup the database)\n4. Set up the database triggers and functions\n5. Make sure to setup the right RLS policies (You can also follow the tutorial video to setup the RLS policies)\n\n### 5. AI Model Links\n\nVisit these links to set up your AI models:\n- [Flux Dev LORA model trainer](https://replicate.com/ostris/flux-dev-lora-trainer/train)\n- [Flux Dev Model](https://replicate.com/black-forest-labs/flux-dev)\n- [Flux Schnell Model](https://replicate.com/black-forest-labs/flux-schnell)\n\nFor stock images (not for training), I have used [Lummi AI](https://www.lummi.ai/)\n\n### 6. Model Training Requirements\n\nWhen training your custom model, ensure:\n- 10-15 images in total\n- Recommended breakdown for 12 images:\n  - 6 face closeups\n  - 3-4 half body closeups\n  - 2-3 full body shots\n- No accessories on face/head\n- Different expressions, clothing, backgrounds\n- 1:1 resolution (1048x1048 or higher)\n- Images under 45MB total size\n\n### 7. Stripe Setup\n\nWatch our detailed video tutorial for Stripe integration setup: [Stripe Setup Tutorial](https://www.youtube.com/watch?v=7AQNeii5K7E\u0026t=27960s)\n\n### 8. Start Development Server\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n```\n\nVisit `http://localhost:3000` to see your app.\n\n## 📦 Project Structure\n\n```\n├── app/                 # Next.js 15 app directory\n├── components/         # React components\n├── lib/               # Utility, Supabase \u0026 Stripe functions\n├── public/            # Static assets\n└── globals.css            # Global styles\n```\n\n## 💰 Pricing Plans\n\n- **Hobby**: 1 trained model/month, 100 images/month\n- **Pro**: 2 trained models/month, 300 images/month\n- **Enterprise**: 5 trained models/month, unlimited images\n\n## 🎥 Tutorial Video\n\nFor a complete setup walkthrough, check out our [video tutorial](https://youtu.be/7AQNeii5K7E).\n\n## 🌟 Show Your Support\n\nGive a ⭐️ if this project helped you!\n\nIf you have any question or want a custom build for your business, you can reach out to me via:\n\n- E-mail : codebucks27@gmail.com\n- Twitter: https://twitter.com/code_bucks\n- Instagram: https://www.instagram.com/code.bucks/\n\nMyChannel: https://www.youtube.com/codebucks\nMy Website: https://devdreaming.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebucks27%2Fpictoria-ai-starter-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebucks27%2Fpictoria-ai-starter-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebucks27%2Fpictoria-ai-starter-code/lists"}