Why are you using the legacy API? Can you switch to the non-legacy API and use: gemini-3.5-flash-lite?