How to fetch custom endpoint in runjs?

Since, there’s no extensive documentation yet, I have no idea how to fetch since the runJS doesn’t allow native window.fetch()

Hello, please refer to:

I’m sorry but it doesn’t tell me how to fetch custom endpoint. I want to be able to fetch the gemini api.