Skip to main content
The Simulate API requires SDK version 1.0.0 or higher.
The Simulate API allows you to run scripted interactions asynchronously. Unlike the Interactive API where you connect, broadcast, and interact in real-time, simulations execute in the background and produce recordings you can retrieve when complete.

When to Use the Simulate API

Script Format

A simulation script is an array of entries that define the sequence of actions using timestamps:

Entry Types

Example Script

Basic Workflow

1. Create a Simulation

2. Poll for Completion

3. Retrieve Recordings

Image-to-Video with the Simulate API

You can start a simulation with an image:
You can also use a base64 data URL string:

Managing Simulation Jobs

List Your Simulation Jobs

Cancel a Simulation

Complete Example

Error Handling

Broadcast applies to interactive streaming sessions. Simulations run asynchronously and are not broadcast-enabled.