Skip to content

Repository files navigation

Visionary AI (Luma AI)

A high-performance Flutter application for generating stunning AI images using Cloudflare Workers AI.

🚀 Features

  • Exclusive Cloudflare Integration: Leveraging Workers AI models like flux-1-schnell, stable-diffusion-xl, and dreamshaper-8-lcm.
  • Fast Generation: Optimized for low-latency image creation using the latest AI edge models.
  • Dynamic Model Selection: Switch between different AI models directly from the UI.
  • Interactive Gallery: View, share, and download your creations.
  • Firebase Backend: Secure and scalable infrastructure for app management.
  • Multi-language Support: Fully localized in English and Spanish.
  • Diagnostic Logging: Built-in developer logs to troubleshoot API responses and network status in real-time.

🛠️ Tech Stack

📦 Setup & Installation

Prerequisites

  • Flutter SDK (latest stable version)
  • A Cloudflare Account with an API Token (with Workers AI: Read permission)
  • A Firebase Project

1. Environment Configuration

Create a .env file in the project root:

CLOUDFLARE_ACCOUNT_ID=your_account_id_here
CLOUDFLARE_API_TOKEN=your_api_token_here

2. Firebase Setup

  1. Download your google-services.json (Android) and GoogleService-Info.plist (iOS).
  2. Place them in the respective platform directories (android/app and ios/Runner).
  3. The project uses firebase_options.dart generated via FlutterFire CLI.

3. Run the App

flutter pub get
flutter run

📂 Project Structure

lib/
├── models/          # Data structures (AiImage, etc.)
├── pages/           # UI Screens (Home, Gallery, Generate, Settings)
├── services/        # Logic for Cloudflare AI and Firebase
├── utils/           # Constants, Themes, and Localizations
└── widgets/         # Reusable UI components

🛡️ API Usage & Security

The app uses flutter_dotenv to protect sensitive keys. For production, ensure you obfuscate your keys or use a backend proxy to handle Cloudflare requests securely.

📝 License

Distributed under the MIT License. See LICENSE for more information.


Created with ❤️ by Happy-devloper

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages