Run an integration smoke test
Open AI Studio in the project you plan to use and verify the model identifier and supported options. Make one short request, inspect the response and usage fields, and record the endpoint and model ID. Then test streaming or structured output separately, so a format error does not obscure basic access problems.
Keep API keys in a server-side secret store, set a request timeout and define a small retry budget before a batch run. Google Gemini API quickstart