MultimodalCompletion
Use Multimodal completion using the Gemini Client.
See Gemini API about multimodal input for more information.
yaml
type: "io.kestra.plugin.gemini.MultimodalCompletion"
Examples
Multimodal completion using the Gemini Client
yaml
id: gemini_multimodal_completion
namespace: company.team
inputs:
- id: image
type: FILE
tasks:
- id: multimodal_completion
type: io.kestra.plugin.gemini.MultimodalCompletion
apiKey: "{{ secret('GEMINI_API_KEY') }}"
model: "gemini-2.5-flash"
contents:
- content: Can you describe this image?
- mimeType: image/jpeg
content: "{{ inputs.image }}"
Properties
Outputs
Definitions
io.kestra.plugin.gemini.MultimodalCompletion-SafetyRating
blocked boolean
Whether the response has been blocked for safety reasons.
category string
Safety category.
probability string
Safety rating probability.
io.kestra.plugin.gemini.MultimodalCompletion-Content
content *Requiredstring
The content itself, should be a string for text content or a Kestra internal storage URI for other content types.
If the content is not text, the mimeType
property must be set.
mimeType string
Mime type of the content, use it only when the content is not text.
role string
Default
user
The content role, defaults to "user".