Probably irrelevant anymore, but I used the guide How to use Google Gemini in Xcode 26 beta from Carlo Zottmann
Notes:
Watch out to add Bearer before API key
No need to worry about Xcode adding /v1, Gemini API will handle that
Topic:
Developer Tools & Services
SubTopic:
Xcode