gemini.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Content
countTokens
content.countTokens
Count tokens in text using Gemini tokenization, for cost estimation and input limit checks
Risk: read
contents full type
contents full type
embedContent
content.embedContent
Generate a numerical vector embedding for text, for semantic search and similarity comparison
Risk: read
content full type
content full type
embedding full type
embedding full type
generateContent
content.generateContent
Generate text or speech audio from a prompt using a Gemini Flash/Pro model
Risk: read
contents full type
contents full type
generationConfig full type
generationConfig full type
safetySettings full type
safetySettings full type
systemInstruction full type
systemInstruction full type
candidates full type
candidates full type
usageMetadata full type
usageMetadata full type
Images
generateImage
images.generateImage
Generate a raster image (JPG/PNG/WebP) from a prompt using a Nano Banana image model
Risk: write
referenceImages full type
referenceImages full type
generationConfig full type
generationConfig full type
images full type
images full type
candidates full type
candidates full type
usageMetadata full type
usageMetadata full type
Models
listModels
models.listModels
List available Gemini and Veo models and their capabilities/limits
Risk: read
Output
models full type
models full type
Videos
generateVideos
videos.generateVideos
Generate a text-to-video clip using a Veo model; returns an operation name for status tracking
Risk: write
image full type
image full type
parameters full type
parameters full type
getVideosOperation
videos.getVideosOperation
(Deprecated — use videos.waitForVideo) Check the status of a Veo video generation operation
Risk: read
Output
error full type
error full type
response full type
response full type
waitForVideo
videos.waitForVideo
Poll a Veo video generation operation until it completes and return the generated video
Risk: write
Output
data full type
data full type
error full type
error full type