Portkey360 platform interface

Portkey360

Your imagination, brought to life in 360°.

GitHub
Role Full Stack Developer
Timeline June 2025
Frontend Next.js Three.js React Three Fiber
Backend FastAPI PyTorch

Portkey 360°, your imagination, brought to life in 360°. The project generates immersive panoramic environments from text descriptions, which can be explored directly in the browser.

It combines a Next.js + React Three Fiber frontend with a FastAPI backend serving Stable Diffusion v1.5 through Hugging Face Diffusers. The architecture demonstrates how generative AI can power interactive 3D experiences on the web.

Generative Panoramas in Real Time

Portkey 360° allows users to describe any scene in words and transform it into a 360° panorama within seconds. These outputs are rendered with React Three Fiber and a WebGL viewer, enabling intuitive navigation inside the generated scene.

Key capabilities:

  • Text-to-panorama generation using Stable Diffusion.
  • Real-time 3D scene exploration in the browser.
  • Lightweight rendering components for reuse and integration.

Inference Infrastructure

The backend, built with FastAPI, handles text-to-image inference requests and integrates directly with PyTorch + Diffusers. Instead of containerization, the system is designed for local development and GPU execution, with manual environment setup for reproducibility.

Portkey360 tech stack

⬆️ Prompt window for entering scene descriptions to generate 360° panoramas.

This separation of inference and rendering ensures responsive web performance while keeping the compute-intensive model logic isolated from the user interface.

Navigating Panorama Distortions

One challenge was adapting Stable Diffusion to panoramic images. Training custom LoRA weights introduced distortions when converting to 360° projections, and the model struggled to generalize. I ended up relying on the base model with careful prompt engineering, which gave more reliable panoramas with fewer artifacts.

This decision taught me to weigh fine-tuning costs vs. practical reliability, a valuable lesson in building generative AI systems.

Along the way, I strengthened skills in:

  • Stable Diffusion inference and panoramic prompt engineering.
  • Next.js + React Three Fiber for interactive rendering.
  • FastAPI API development for ML model serving.
  • Designing reproducible workflows without heavy deployment overhead.

Immersive Worldbuilding

The next stage of Portkey 360° is to expand beyond static panoramas toward immersive and interactive experiences:

  • VR headset compatibility for fully embodied exploration.
  • Panorama-specific model training on curated datasets.
  • Adjustable generation parameters (style, lighting, weather, time of day).
  • Multi-scene stitching to form explorable environments.
  • Cloud GPU scaling for faster inference and shared sessions.

These extensions position Portkey 360° as a prototype for creative worldbuilding tools across web, VR, and AR platforms.