Single-user private image generation site powered by DragonCode gpt-image-2.
-
Install dependencies:
npm install
-
Generate a password hash:
npm run hash-password -
Create
.env.localfrom.env.exampleand fill:DRAGON_API_KEY=your_dragoncode_key APP_USERNAME=admin APP_PASSWORD_HASH=the_bcrypt_hash_from_step_2 SESSION_SECRET=replace_with_at_least_32_random_characters DATABASE_PATH=./data/private-image-studio.json
-
Start the app:
npm run dev
Open http://localhost:3000.
- The DragonCode API key is only used by server routes.
- Reference images are converted to base64 data URIs for the first MVP.
4konly supports16:9,9:16,2:1,1:2,21:9, and9:21.