Mixed Reality Companions
Bring interactive digital companions into a live scene and respond to what is happening around them.
QUANTUM REALTIME
Quantum helps developers build interactive video experiences that respond to live camera input, prompts, and reference images in real time. Realtime generation turns video into something an application can adapt and shape as people interact.
Use the Quantum API and SDK to connect your application to realtime generation, start and stop sessions, and receive usage receipts through your own product experience.
Explore realtime video use cases. These sample clips illustrate the experiences customers can build with the SDK.
Bring interactive digital companions into a live scene and respond to what is happening around them.
Replace a person with a chosen character in real time while preserving the original expressions and movements.
See how outfits fit and move with the body in real time.
Transform the look of a live scene while its people and movement continue in real time.
Your Quantum key is issued for your account by the Quantum API bot.
Send /start, choose My SDK, then select JavaScript. Follow the bot’s steps to request your customer key.
Keep your permanent key on your backend only. Do not send it in browser code or commit it to a public repository.
Install Quantum's Web SDK through npm and import it in your app.
The public npm package is available. See the package page for version details and release notes.
The permanent customer key belongs on the customer’s server. The included example proxy is for FastAPI.
Save it in a private file such as secrets/Quantum_key.txt, outside the public website folder. Add that path to .gitignore.
Copy backend/quantum_realtime_proxy.py from the SDK and mount it behind your application’s real login dependency. Do not use a no-op login check.
Configure QUANTUM_API_ORIGIN=https://quantum-api-gateway.netlify.app and QUANTUM_API_KEY_FILE to the private key file path.
Serve the SDK’s web/ files over HTTPS, preserving all engine assets and subfolders. Make your authenticated backend proxy available at /api/quantum/realtime on the same origin.
The quick-start file includes the complete event-handler example and the FastAPI proxy setup. Other backend frameworks need an equivalent authenticated proxy.
The JavaScript SDK accepts an optional JPG, PNG, or WebP reference image. It uploads the selected image when generation starts so the realtime service can use it.
Browser camera permission is required. Use HTTPS in deployed apps; localhost is allowed for local development.
Start generation only when ready. Call stop() when finished so the session closes and the Quantum billing receipt is returned.
The browser receives only a short-lived session credential from the authenticated backend proxy. Your permanent key stays server-side.
Contact our support account on Telegram. Include your programming language and a short description of your backend framework. Never include your API key in a support message.
Contact support on Telegram ↗