Is it possible to send an image to the Gemini API and have it process the image three times with different temperature settings within a single API call?

I’m working on an implementation using the Gemini API, where I need to process the same input three times with three different temperature settings. Currently, this requires making three separate API calls. I’m trying to find out if it’s possible to achieve this in a single API call, instead of calling the API multiple times.

Hi @Syeed_Talha , Welcome to the forum.

as far as I understand, the only option is to make three separate API calls, since there is no way to pass the temperature values as an array.

2 Likes