Skip to content

PS5SD 0.3.1

Choose a tag to compare

@Darkatek7 Darkatek7 released this 21 Oct 07:57

PS5SD 0.3.1 adds an API key, so the console can be reached from outside your network, and a Presets tab.

New

  • API key: Create tab → Settings → API key → Turn on. The console makes a random key (52 letters and digits) and shows it on the TV, under the address. From then on every browser and app needs it: a browser signs in once, apps send Authorization: Bearer <key> (OpenAI clients: the key is their API key; A1111 clients: the password of their API login). New key replaces it, Turn off removes it. Five wrong keys in a row lock that client out for a while, and each wrong key is logged. Lost the key and cannot see the TV? Delete /data/PS5SD/api-key.txt over FTP and start the title again.
  • From outside your network: docs/API.md shows a Cloudflare Tunnel, a VPN (Tailscale) and a Caddy reverse proxy. Do not forward port 7860 on your router: the console speaks plain HTTP. On Cloudflare's free plan uploads over 100 MB do not go through the tunnel, and synchronous API calls that take longer than 100 s fail; the web UI is not affected.
  • Presets tab: set up the Create tab (size, steps, CFG, sampler, scheduler, LoRAs), then Presets → Save the current settings. Use switches to a preset; a preset of the model that is loaded is there at once, without loading anything. Edit shows the preset file, Delete removes only the preset, never the model.
  • Models tab: lists only models now; presets are on their own tab. Deleting a model deletes its saved presets too. "Use preset" on the Create tab is now "Use defaults".

API

  • The API key: Authorization: Bearer <key>, Basic (the key as the password) or X-API-Key; 401 without it, 429 after too many wrong ones. Open without it: GET /, GET /ps5sd/v1/health, /ps5sd/v1/auth (status, login, logout). GET /ps5sd/v1/app/auth, POST .../auth/enable, .../auth/disable.
  • CORS: any origin, but without credentials (0.3.0 reflected the origin with credentials allowed).
  • Request bodies above 64 MB get 413; uploads are not limited.
  • POST /ps5sd/v1/app/presets, GET/POST/DELETE /ps5sd/v1/app/presets/<id>; library entries have base. A preset file with # base: <id> is a saved preset of that model.
  • tv_api_key in /ps5sd/v1/app/settings.
  • Patch 0060 (sd-server's auth.cpp); --api-key-file for the plain sd-server.

Install

Install from the homebrew store, or unpack PPSA99576.zip into /data/homebrew/ on the console and let ShadowMountPlus scan. The requirements are unchanged from 0.1.0 (etaHEN + kstuff-lite, ShadowMountPlus, elfldr; ftpsrv on 2121 optional).

Details: docs/API.md, docs/MODELS.md, ROADMAP.md (next: hires fix and upscaling in 0.4.0).