Skip to main content
Every 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
Input
Output

embedContent

content.embedContent Generate a numerical vector embedding for text, for semantic search and similarity comparison Risk: read
Input
Output

generateContent

content.generateContent Generate text or speech audio from a prompt using a Gemini Flash/Pro model Risk: read
Input
Output

Images

generateImage

images.generateImage Generate a raster image (JPG/PNG/WebP) from a prompt using a Nano Banana image model Risk: write
Input
Output

Models

listModels

models.listModels List available Gemini and Veo models and their capabilities/limits Risk: read
Input Output

Videos

generateVideos

videos.generateVideos Generate a text-to-video clip using a Veo model; returns an operation name for status tracking Risk: write
Input
Output

getVideosOperation

videos.getVideosOperation (Deprecated — use videos.waitForVideo) Check the status of a Veo video generation operation Risk: read
Input Output

waitForVideo

videos.waitForVideo Poll a Veo video generation operation until it completes and return the generated video Risk: write
Input Output