Google Gemini Model Provider
WARNING: when using tools, this provider didn't support JSON Schema with anyOf
.
yaml
type: "io.kestra.plugin.ai.provider.GoogleGemini"
Examples
Chat completion with Google Gemini
yaml
id: chat_completion
namespace: company.ai
inputs:
- id: prompt
type: STRING
tasks:
- id: chat_completion
type: io.kestra.plugin.ai.ChatCompletion
provider:
type: io.kestra.plugin.ai.provider.GoogleGemini
apiKey: "{{ kv('GOOGLE_API_KEY') }}"
modelName: gemini-2.5-flash
messages:
- type: SYSTEM
content: You are a helpful assistant, answer concisely, avoid overly casual language or unnecessary verbosity.
- type: USER
content: "{{inputs.prompt}}"
Properties
apiKey *Requiredstring
API Key
modelName *Requiredstring
Model name