Migrating from 1.0 to 1.5 in GDscript

I’m was using gemini in GDscript sending requests via URL, like so

url = “https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=” + API_KEY

But with this new version, I don’t know what the new URL is and I can only find support for python.

Well, I was just trying to guess the new url and apparently ““https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=”” worked.