跳到正文
DEV Community· Ashutosh singh·· 3 小時前AI 評分19

PhantomAI:開源 AI 驅動的恐怖故事生成器

PhantomAI: A Ghost in the Machine

AI 導讀

PhantomAI 是一款以開源 AI 技術為基礎的恐怖故事生成器,讓用戶在本機輸入提示詞、選擇故事風格並生成故事。它透過 Ollama 在本機執行開放權重語言模型,毋須付費 AI API;下載模型及所需依賴項後,亦可離線生成故事。

正文

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine.

What I Built

PhantomAI — Ghost in the Machine

PhantomAI is an AI-powered horror story generator designed to bring the darkest corners of your imagination to life using open-source AI.

What if your computer could tell you a ghost story without connecting to the internet? What if a machine sitting on your desk could turn a simple sentence into a chilling story full of unexpected twists?

That's the idea behind PhantomAI.

Users can enter a prompt, choose a horror style, and generate unique stories using an open-weight language model running locally on their machine. From haunted houses and mysterious abandoned websites to AI systems that seem to know too much, PhantomAI transforms ordinary ideas into eerie experiences.

The goal is to create something entertaining while demonstrating that powerful AI experiences don't always need closed APIs or cloud-based services.

Demo

PhantomAI is designed as a local AI application. A live demo link is not available.

Code

The project is intended to be built around open-source AI technologies, with local inference at its core.

How I Built It

PhantomAI is designed around local inference using open-source AI technologies.

The proposed architecture consists of three main components:

  • Frontend: A dark, atmospheric interface where users enter prompts, select story styles, and read generated stories.
  • Backend: A lightweight service that manages prompts and communicates with the local AI inference engine.
  • AI Engine: An open-weight language model served locally through Ollama, generating stories without requiring a paid AI API.

Users can explore different storytelling styles, including psychological horror, supernatural mysteries, haunted technology, and urban legends.

The application is designed to keep user prompts and generated stories on the user's machine when configured for fully local inference.

Why Does Open Innovation Matter?

PhantomAI explores what becomes possible when developers can run and experiment with AI models themselves.

By using an open-weight model with local inference, the project can generate stories without depending on a proprietary cloud AI API. Users can experiment with different models, customize prompts, and modify the application to suit their needs.

This approach offers several advantages:

  • Privacy: Prompts and stories can remain on the local machine.
  • Accessibility: Users can experiment without paying per-request API fees.
  • Customization: Developers can modify prompts, switch compatible models, and change the storytelling experience.
  • Offline functionality: After downloading the model and required dependencies, story generation can work without an internet connection.

For me, open innovation means having the freedom to understand and modify the technology behind an application rather than treating AI as a black box.

My Agent Session

No agent session is available.

The Spirit of It

The inspiration behind PhantomAI is the unsettling relationship between humans and machines.

We build computers to follow instructions, answer questions, and make our lives easier. But what happens when we use that same technology to create something mysterious, unpredictable, and almost alive?

PhantomAI takes that curiosity and turns it into an interactive storytelling experience.

There is no actual ghost inside the machine—just a model, a prompt, and the imagination of the person using it.

Sometimes, that's more than enough to make a good horror story.

Prize Categories

Primary Theme: Ghost in the Machine — Open-Source AI

Potential Additional Category: Best Use of Gemma, if a Gemma model is used and the project meets the category requirements.

devchallenge #hf26challenge

來源:DEV Community · dev.to