Can I use API for capturing Spatial video in iPhone 15 pro/pro Max?

I want to make camera app for capturing Spatial video. I found some apps for capturing Spatial video, But I don't know how can I open dual camera. Please let me know how can I handle this.

Can I use API for capturing Spatial video in iPhone 15 pro/pro Max?
 
 
Q