# Copy this file to .env and fill in real values. # .env is gitignored. # --- Local simulation (per-vendor live gating) --- # Every AI call is MOCKED unless its service is turned live. Flags (all default # to mocked / 0): # USE_LIVE_APIS=1 master switch — everything live (production sets this) # USE_LIVE_REPLICATE=1 image + depth live (both are Replicate, one token) # USE_LIVE_IMAGE=1 image only # USE_LIVE_DEPTH=1 depth only # USE_LIVE_REWRITE=1 Anthropic prompt-rewrite live # Leave everything at 0 for free, fully-mocked local dev. # # Common split: exercise the REAL Replicate image+depth path while keeping the # Anthropic rewrite on the free mock (no Anthropic spend). Set: # USE_LIVE_REPLICATE=1 + a real REPLICATE_API_TOKEN below # (leave USE_LIVE_APIS and USE_LIVE_REWRITE at 0) # Live calls only fire under `npm run dev:netlify` — plain `npm run dev` (Vite) # always serves mock fixtures regardless of these flags. USE_LIVE_APIS=0 USE_LIVE_REPLICATE=0 USE_LIVE_IMAGE=0 USE_LIVE_DEPTH=0 USE_LIVE_REWRITE=0 # --- LLM for prompt rewriting (only used when the rewrite is live) --- ANTHROPIC_API_KEY= REWRITE_MODEL=claude-haiku-4-5 # --- Image generation + depth estimation (Replicate) --- REPLICATE_API_TOKEN= # --- Image generation (fal.ai) --- # Only needed when IMAGE_PROVIDER=fal-flux below. FAL_KEY= # --- Provider selection (swappable adapters) --- # IMAGE_PROVIDER: replicate-flux (default) | fal-flux (selects the fal.ai # flux-schnell adapter, requires FAL_KEY above) IMAGE_PROVIDER=replicate-flux DEPTH_PROVIDER=replicate-depth-anything # Depth encoder size for chenxwh/depth-anything-v2. Smaller = faster cold-start & # inference, slightly less detail (map is histogram-stretched downstream anyway). # Values: Small | Base | Large. Default Base. (NB: this maps to the model's # `model_size` input — the pinned version has no `encoder` input.) REPLICATE_DEPTH_MODEL_SIZE=Base # --- Keep-warm heartbeat (keep-warm-depth.ts, scheduled */8 min) --- # Only pings when depth is live, and only inside this UTC waking window. Default # 13:00–05:00 UTC (~US Pacific daytime). Set START=0 END=24 to run 24/7. KEEPWARM_UTC_START=13 KEEPWARM_UTC_END=5