Files
imagen/.env.example
T
imbytecat d5bbc14c8d feat: move base URL, API key, and model to server .env
- BASE_URL, API_KEY, MODEL now read from process.env (Bun auto-loads .env)
- requireEnv() fails fast at startup if any is missing
- request body simplifies to { prompt, size, referenceImages? }
- client drops the three fields from form and localStorage
- add .env.example as the variable-name source of truth
- AGENTS.md notes the 0.0.0.0 bind now exposes the upstream quota to
  anyone reachable on the network
2026-05-18 23:28:12 +08:00

4 lines
68 B
Bash

BASE_URL=https://api.openai.com/v1
API_KEY=sk-...
MODEL=gpt-image-2