Product-page embed
Host session UI in your storefront with origin-bound tokens.
DEVELOPER PLATFORM
LYRVIO is API-first: sessions, garments, webhooks, and a JavaScript SDK. Modes stay honest — LIVE_AI_EXPERIMENTAL only when enrolled GPU workers process frames.
Register an organization project with allowed origins for browser session tokens.
Keys are CSPRNG-generated, shown once, hashed at rest, and scoped. Never ship them to the browser.
PNG/JPEG/WebP assets land in object storage with processing status READY when valid.
Server creates a try-on session; browser attaches a short-lived LiveKit token bound to origin.
Receive signed session lifecycle and usage events for your backend.
Create sessions server-side. Refresh tokens as needed. End sessions to free worker capacity. Observe mode on every response.
POST /v1/sessions — createPOST /v1/sessions/:id/token — refreshPOST /v1/sessions/:id/end — cleanupGET /v1/garments — catalogimport { LyrvioClient } from '@lyrvio/sdk-js';
const lyrvio = new LyrvioClient({ apiKey: process.env.LYRVIO_API_KEY! });
const session = await lyrvio.sessions.create({
projectId: process.env.LYRVIO_PROJECT_ID!,
garmentId: 'gar_…',
clientOrigin: 'https://shop.example',
});
// Return session.livekitToken to the browser only.Browser camera → LiveKit room → enrolled GPU worker → output track → browser. When workers are offline, the control plane returns PASSTHROUGH or RECORDED_SAMPLE instead of inventing AI.
Host session UI in your storefront with origin-bound tokens.
Orchestrate create / garment switch / end from your backend.
Same contracts for planned in-store surfaces.
Respect honest modes when workers are offline.
LIVE_AI_EXPERIMENTAL
Generative worker processing frames — quality still experimental.
PASSTHROUGH
Camera mirrored without generative replacement.
RECORDED_SAMPLE
Explicit demonstration media when AI capacity is unavailable.
UNAVAILABLE
No safe session path; waitlist / retry messaging.