Gemini

Learn how to use Gemini with Composio

Overview

Enum

GEMINI

Description

Comprehensive Gemini integration supporting Veo 3 video generation, Gemini Flash text generation, chat completions, and multimodal AI capabilities via the Google Gemini API.

Authentication Details

api_key
stringRequired

Actions

Counts the number of tokens in text using gemini tokenization. useful for estimating costs, checking input limits, and optimizing prompts before making api calls.

Action Parameters

model
stringDefaults to gemini-1.5-flash
text
stringRequired

Action Response

data
object
error
string
successful
boolean
Downloads a generated veo video to local storage. takes the video uri from a completed operation and saves it to the specified file path.

Action Parameters

download_path
stringRequired
video_uri
stringRequired

Action Response

data
object
error
string
successful
boolean
Generates text embeddings using gemini embedding models. converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.

Action Parameters

model
stringDefaults to text-embedding-004
task_type
string
text
stringRequired
title
string

Action Response

data
object
error
string
successful
boolean
Generates text content from prompts using gemini models. supports various models like gemini flash and pro with configurable temperature, token limits, and safety settings for diverse text generation tasks.

Action Parameters

max_output_tokens
integer
model
stringDefaults to gemini-1.5-flash
prompt
stringRequired
safety_settings
array
stop_sequences
array
system_instruction
string
temperature
number
top_k
integer
top_p
number

Action Response

data
object
error
string
successful
boolean
Generates images from text prompts using gemini 2.5 flash image preview model. supports creative image generation with customizable parameters like aspect ratio, safety settings, and optional file saving.

Action Parameters

max_output_tokens
integer
model
stringDefaults to gemini-2.5-flash-image-preview
prompt
stringRequired
safety_settings
array
save_path
string
system_instruction
string
temperature
number
top_k
integer
top_p
number

Action Response

data
object
error
string
successful
boolean
Generates videos from text prompts using google's veo models. creates high-quality video content with customizable aspect ratios, duration, and style controls. returns operation id for tracking progress.

Action Parameters

aspect_ratio
string
extras
object
model
stringDefaults to veo-3.0-generate-preview
negative_prompt
string
person_generation
string
prompt
stringRequired

Action Response

data
object
error
string
successful
boolean
Checks the status of a veo video generation operation. use the operation name from generatevideos to track progress and get the download url when complete.

Action Parameters

operation_name
stringRequired

Action Response

data
object
error
string
successful
boolean
Lists available gemini and veo models with their capabilities and limits. useful for discovering supported models and their features before making generation requests.

Action Parameters

filter_prefix
string

Action Response

data
object
error
string
successful
boolean
Polls a veo video generation operation until completion or timeout. automatically checks status at intervals and returns the final video url when ready.

Action Parameters

operation_name
stringRequired
poll_interval_s
integerDefaults to 10
timeout_s
integer

Action Response

data
object
error
string
successful
boolean