Skip to main content
agentscope-extensions-model-gemini integrates Google Gemini models through the Gemini API and supports the Vertex AI path through explicit configuration.

Add the dependency

ModelRegistry

Set GEMINI_API_KEY, then use the gemini:<model> id:

Explicit builder

Use the builder when you need custom API settings, Vertex AI credentials, formatter, transport, or generation options:

Spring Boot

Spring Boot applications can use the Gemini starter:
Full builder options, formatters, credentials, and registry context details are covered in Model.