How to set time limit and no. of participants in Jitsi while using the external api js in client side

I had started creating a video conferencing with Jitsi.
Came across the example html where we can connect to external api script and set roomname to create a channel and join call.
However, unable to find where to set the call duration and no.of participants. I’m expecting something like below:
Please let me know if you have a solution for the same.
Thanks for your help and time.

are you using self hosted or meet jitsi?

Im using jitsi meet. calling the api.html in below url.

In this case set your own logic in your app to control duration and maximum number.

I have the same question for a self hosted installation