How to ssh gcp private vm from local browser website?

I am trying to integrate different cloud platforms(aws, gcp…) on my frontend website.

gcp vm has no public ip, only internal ip.

Is there any way that ssh to gcp vm from my html website?

The official doc only has command line tutorial, but it's not what I want.

What kind of gcp api does my backend server need to call, so that allow frontend ssh to gcp VM?

For this requirement, does the gcp api provide similar functionality?