Developer wiring live video retouching into an existing streaming app
Full-stack developer or product engineer in a small media teamA small media team wants to add a live video transformation filter to an app already in production, without rebuilding its WebRTC stack. The developer installs the JavaScript SDK (@decartai/sdk), opens a session via client.realtime.connect() and passes text prompts and/or a reference image to the lucy-2.6 model to add, remove or replace objects in the camera feed. For deferred work, they switch to client.queue.submitAndPoll() with the same model. On pricing, everything is usage-based: $0.02/sec of active generation in standard realtime, or $0.04/sec in fast mode, i.e. $0.60 for a 30-second session (or $1.20 in fast). With no subscription or minimum, they start on the free credits then track usage via GET /v1/credits ($1 = 100 credits). Keep in mind: client tokens expire 60 seconds after minting by default, so a late connect or reconnect fails; adopting the apiKeyProvider pattern (JS SDK v0.2.6) mints a fresh token on every dial, otherwise the socket returns TOKEN_EXPIRED.