Getting alternative responses with API

How can Gemini be requested via the API (Python) to generate an alternative response to the last prompt in a chat?