see: free FLUX image gen piece (NVIDIA NIM proxy)
Adds the `see` piece that generates images via NVIDIA's free FLUX.1
schnell endpoint. Two filter-safe AC style presets baked into the proxy
(kidlisp = high-contrast CRT energy, warm = soft pastel mascot). 30s
timeout, graceful safety-filter handling, friendly error messages.
URL forms:
see a happy frog — kidlisp preset, random seed
see:warm a coffee mug — warm pastel preset
see:raw a misty forest — no AC style suffix
Tap to roll a new seed, backspace to re-prompt.
Backend: system/netlify/functions/flux.mjs proxies to
ai.api.nvidia.com/v1/genai/black-forest-labs/flux.1-schnell at 768/4
(verified ~1.3s warm direct, ~3.5s through Node fetch). Returns the JPEG
as a data URL; piece decodes via Image() + canvas readback into a
paste-able bitmap. Filter-safe prompt suffixes encoded with comments
explaining the bisect that found them — NVIDIA's safety classifier is
twitchy about clusters of proper nouns, so the suffixes deliberately
avoid naming the platform / maker / language.
Requires NVIDIA_API_KEY (already in the vault root .env, but not yet
propagated to lith/.env — production wiring deferred).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>