Skip to main content
Get your first successful Decart result in under 5 minutes.

Prerequisites

Using an AI coding agent? Run npx skills add https://docs.platform.decart.ai to teach it Decart’s APIs, or connect the MCP server for live docs search.

Pick your first integration path

1) Install SDK

2) Connect camera + model

Expected result

You should see the transformed stream rendered in your output video element.
Common issues:
  • Camera permission denied — the browser will prompt the user. If denied, getUserMedia throws a NotAllowedError.
  • No camera found — throws a NotFoundError. Check that a video device is connected.
  • Connection drops — the onDisconnect callback fires. In production, implement reconnection logic.
For browser/mobile production setups, use Client Tokens instead of exposing a permanent API key. They expire after 60 seconds by default, so fetch them per dial with apiKeyProvider rather than on page load.

Next steps

Lucy 2.1 Realtime

Start with the flagship realtime model for character transformation.

JavaScript Realtime SDK

Full WebRTC integration guide.

Client Tokens

Secure browser/mobile realtime authentication.

Models

Pick the best model for your use case.

Examples Hub

Browse official examples and realtime-first starter projects.

Use Cases

See complete realtime and batch product patterns.