Installation & User Scenarios
Step-by-step setup guides tailored for clean installations, rapid drafting, and custom model workflows.
Scenario 1: Clean Install (ėëŦ´ę˛ë ėë ėŦë)
Python Runtime:
# 1. Grant Storage Access (Tap Allow on Android prompt)
termux-setup-storage
# 2. Install Packages & Provision Native Engine
pkg update -y && pkg install python clang cmake git termux-api wget -y
pip install termux-diffusion && termux-diffusion-install
Node.js / TypeScript Runtime:
# 1. Grant Storage Access
termux-setup-storage
# 2. Install Packages & Provision Native Engine
pkg update -y && pkg install nodejs-lts clang cmake git termux-api wget -y
npm install -g termux-diffusion && npx termux-diffusion install
Scenario 2: Already Installed (ė´ë¯¸ ė¤ėšë ėŦë)
Run 1-line generation immediately via CLI without writing script files:
# Python CLI
termux-diffusion generate "RAW photo, portrait of developer, photorealistic" -m realistic
# Node.js CLI
npx termux-diffusion generate "RAW photo, portrait of developer, photorealistic" -m realistic
Scenario 3: Custom Models & External Weights
# Download from Hugging Face directly
termux-diffusion generate "anime character" -m "second-state/DreamShaper-8-GGUF/dreamshaper-8-Q4_k.gguf"
# Or load from local SD card
termux-diffusion generate "fantasy castle" -m "~/storage/downloads/my_model.gguf"
Pre-flight System Diagnostics
termux-diffusion-doctor