Overview
The Decart SDK provides a type-safe model registry that organizes models into three categories:- Realtime models - WebRTC-based streaming for interactive experiences
- Video models - Queue-based async processing for video generation
- Image models - Synchronous processing for image generation
Model Registry Functions
The SDK exports amodels object with three factory functions:
TypeScript Signatures
Model Definitions
Each model definition contains:Example Model Definition
Realtime Models
Realtime models use WebRTC for low-latency interactive video streaming.Real-time video restyling model
- FPS: 25
- Resolution: 1280x704
Real-time video restyling model (v2)
- FPS: 22
- Resolution: 1280x704
Real-time video editing model
- FPS: 25
- Resolution: 1280x704
Real-time video editing model with reference image support
- FPS: 20
- Resolution: 1280x720
Real-time avatar generation model
- FPS: 25
- Resolution: 1280x720
Usage with Realtime Client
Video Models
Video models use the queue API for asynchronous video generation.Text-to-video (Pro quality)
- FPS: 25
- Resolution: 1280x704
- Inputs:
prompt,seed?,resolution?,orientation?
Image-to-video (Pro quality)
- FPS: 25
- Resolution: 1280x704
- Inputs:
prompt,data(image),seed?,resolution? - Output: 5 seconds max
Image-to-video (Dev quality)
- FPS: 25
- Resolution: 1280x704 (720p only)
- Inputs:
prompt,data(image),seed?,resolution? - Output: 5 seconds max
Video-to-video (Pro quality)
- FPS: 25
- Resolution: 1280x704 (720p only)
- Inputs:
prompt,data(video),reference_image?,seed?,resolution?,enhance_prompt? - Output: 5 seconds max
Video-to-video (Fast quality)
- FPS: 25
- Resolution: 1280x720 (720p only)
- Inputs:
prompt,data(video),seed?,resolution?,enhance_prompt? - Output: 5 seconds max
Video restyling (video-to-video)
- FPS: 22
- Resolution: 1280x704 (720p only)
- Inputs: Either
promptORreference_image(not both),data(video),seed?,resolution?,enhance_prompt?
First-last-frame-to-video (Pro quality)
- FPS: 25
- Resolution: 1280x704
- Inputs:
prompt,start(image),end(image),seed?,resolution?
Motion-based image-to-video with trajectory guidance
- FPS: 25
- Resolution: 1280x704 (720p only)
- Inputs:
data(image),trajectory(array of frame/x/y points),seed?,resolution? - Output: 5 seconds max
Usage with Queue Client
Image Models
Image models use the process API for synchronous image generation.Text-to-image (Pro quality)
- FPS: 25
- Resolution: 1280x704
- Inputs:
prompt,seed?,resolution?,orientation? - Resolutions:
720p(default),480p
Image-to-image (Pro quality)
- FPS: 25
- Resolution: 1280x704
- Inputs:
prompt,data(image),seed?,resolution?,enhance_prompt? - Resolutions:
720p(default),480p