AI Story Generator

Powered by Meta's Llama 4 on Google Cloud


The Tech Stack

  1. Llama 4 Maverick: Meta's powerful, natively multimodal large language model, designed for advanced reasoning, complex problem-solving, and efficient processing of text, images, and audio. It features a Mixture-of-Experts architecture with 17 billion active parameters, a 1 million token context window, and is known for strong performance across various benchmarks.
  2. Google Vertex AI: A unified platform designed to help organizations build, deploy, and scale machine learning (ML) models and generative AI applications. It simplifies the entire ML workflow, providing tools for data preparation, model training (including AutoML and custom options), deployment, monitoring, and MLOps, all within a single managed environment on Google Cloud infrastructure.
  3. Model As A Service (MAAS): Provides pre-trained AI models through cloud-based platforms, enabling businesses to integrate AI into their applications without extensive in-house development. This approach democratizes AI, offering a faster and more cost-effective way for companies to deploy AI-powered solutions. This app uses Google Vertex AI hosting Llama 4 as a MAAS.
  4. Google Cloud Functions: A serverless compute platform that lets you run code in response to events without managing servers. You only pay for the execution time of your code, making it cost-effective and scalable for various applications.
  5. Python: A widely used, general-purpose programming language known for its readability and simplicity. It is commonly used in various fields including web development, data science, and automation, and is favored for its ease of learning and large collection of libraries and frameworks. The Google Cloud function is implemented in python.
  6. Javascript: Runs in the web browser, allowing websites to be dynamic and interactive without constant server communication. It handles tasks like form validation and dynamic content updates, enhancing the user experience directly on their device.

How it Works

  1. Choose a story theme from the drop down box.
  2. You upload a photo (under 5MB). Use a photo with two or more people for best results.
  3. Your browser calls a secure Google Cloud Function.
  4. The Cloud Function resizes the image and queries the Llama 4 AI model with a custom prompt.
  5. The AI-generated story is returned and displayed below in just a few seconds, with details from your photo woven into the story.

or drag and drop

PNG, JPG, GIF up to 5MB