How to retrieve "Thoughts" (reasoning process) along with the response using Gemini API?

Hi @dearcloud09 , Welcome to the forum.

We already have a similar discussion on this topic. Unfortunately, when using the gemini API, the thought output is not returned, it’s only accessible through Google AI Studio.

Thanks