Skip to content

DyahCode/dyahai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€–DyahAI: Decentralized Platform for Generative Images


WCHL 2025 Hackathon Project

🌟 Introduction

DyahAI is an AI platform that lets users transform ordinary images into unique works of art with customizable styles. Powered by Web3 technology and smart contracts. DyahAI offers a secure, decentralized, and high-quality experience, producing high-resolution images suitable for various needs.

πŸ“‹ Problem Summary

  • High Cost of Digital Art Creation: Creating digital art usually requires expensive software, which many users cannot afford.
  • Time-Consuming Process: Manual illustration takes a significant amount of time, which is not practical for users who want quick results.
  • Lack of Customization: Offering basic text-to-image generation without the ability to guide pose or style.
  • High Hardware Requirements: Running the model locally requires a high-VRAM GPU.

✨ Our Solution

  • Free Credits for New Users: Provide free usage quotas for users, with the option to top up without obligation.
  • AI-Powered Art Generation: Allows users to generate digital art from photos in just a few seconds using advanced AI models.
  • Various Artistic Styles: Can choose from a variety of pre-defined visual styles, without needing prompts.
  • Serverless GPU: Providing backend inference through cloud-based GPUs so that users do not need to own dedicated hardware.

πŸ† Pre-existing Project

DyahAI is the winning project of Hackathon 7.0 organized by ICP Hub Indonesia. At WCHL 2025, DyahAI continued its innovation journey by expanding its capabilities and introducing a range of new features aimed at enhancing user experience, and technological integration.

⚑What’s New During the WCHL Regional Round 2025

πŸ•°οΈ Old Features

Credit

Credits were implemented as an internal balance system stored directly in the canister.

Payment

Payments in the dapp were processed by deducting balances from this internal credit system.

Top-up

Users topped up their credits by converting ICP payments into changes on the simulated credit balance.

Limited Transparency

Transactions and credit usage were only recorded internally, making them inaccessible for public verification.

πŸš€ New Features

Dyah AI Token

DYA tokens are issued following the ICRC ledger standard, ensuring interoperability and security.

Token Burning

Dapp payments are executed by burning DYA tokens from the user’s balance.

Token Minting

Users can request new DYA tokens to be minted by depositing a defined amount of ICP.

Blockchain Explorer

All token transfers and activities are publicly available through the DyahAI token ledger explorer.

πŸ“Š Architecture Workflow

πŸ”— Get Started

πŸ“‹ Prerequisites

Install WSL on PowerShell

wsl --install

Open WSL, and install dfx.

sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"

⚑ Installation Step

  1. Clone the repository using PowerShell
git clone https://github.com/DyahCode/dyahai.git
  1. Rename .env.example to .env

  2. Copy STORACHA_API_KEY and STORACHA_PROOF links below and paste them into the .env file
    https://pastelink.net/2i6qrerr

  3. Run the command below to get your dfx identity principal

dfx identity get-principal
  1. Copy the result and paste it into the MINTER_PRINCIPAL_ID key in the .env file.

  2. Install all dependencies

npm install
  1. Run deployment using bash script
bash deploy.sh

⚠️ If you want to deploy to mainnet (Internet Computer):

  1. Open the deploy.sh file and add the --network ic flag to every command starting with dfx (except dfx start)
    e.g., change dfx deploy backend to dfx deploy backend --network ic

  2. Install Extension Plug Wallet

https://chromewebstore.google.com/detail/cfbfdhimifdmdehjmkdobpcjfefblkjm?utm_source=item-share-cb

πŸ› οΈ Extra Step for Local Deployment

  • If you deploy locally, make sure to switch Plug Wallet into Dev/Test Mode:
  1. Open the Plug Wallet extension in your browser.
  2. Click the three dots icon in the top right corner.
  3. Select Settings.
  4. Go to the Developer Zone.
  5. Enable Test Mode.
  6. Done βœ… (now your wallet can connect to http://127.0.0.1:5000).

πŸŽ₯ Video Demonstration

Video demonstration

πŸŽ₯ Pitch Deck

Pitch Deck

πŸŽ₯ Pitch Video

Pitch Video

πŸ‘₯ Contributors

πŸ“„License

The code of DyahAI is released under the MIT License - see the LICENSE file for details.