portrait=False / portrait: false when starting generation.
Choose a model
Passmodel when you create the client to select Odyssey-3 for Streaming.
Your account must have access to that model and available capacity.
Omitting model preserves the server’s default selection.
Keep the same Streaming workflow
Always release the connection in a
finally block or your UI’s cleanup handler.
You can start another stream on the same connection after the previous stream ends.
Each stream has its own recording ID.
Prompt interactions resolve when the server acknowledges the prompt.
Controls return a local send sequence; they have no equivalent live server acknowledgement.
Read action controls for held inputs, release behavior, camera movement, and recording evidence.
Input and output
Pass an image through the existingimage option on start_stream() or startStream() when your assigned session advertises image-to-video support.
Python accepts the image formats described in its client reference; browser JavaScript accepts File or Blob.
target_width / targetWidth and target_height / targetHeight request the WebRTC delivery resolution.
Supply both dimensions together as even integers.
Inspect actual incoming frame dimensions or video.videoWidth and video.videoHeight.
The requested live resolution does not set the saved recording or Simulation resolution; inspect those artifacts separately.
Simulation
Use the existing asynchronoussimulate() method and timestamped script format.
A script entry contains exactly one action: start, interact, action_controls, or end.
Timestamps are milliseconds on the generated video timeline, rather than delays between HTTP requests.
Simulation selects its execution profile on the server.
The Streaming model constructor option does not override Simulation’s profile.
Inspect the completed job’s execution_receipt for its actual model runtime and effective behavior.
The SDK exposes optional runtime_behavior / runtimeBehavior, initialization_behavior / initializationBehavior, and dynamic_action_enhancement / dynamicActionEnhancement settings for supported Simulation workflows.
These settings are separate from live Streaming options and remain subject to account permissions.
The default Simulation request also asks for a separate controls-overlay video; controls_overlay=False / controlsOverlay: false opts out while retaining the raw video.
See Python Simulation and JavaScript Simulation for submission, status, cancellation, and recording retrieval.