NEW Workflow v2 · the multi-agent verification layer is live
All apps

Gemini

artificial intelligence 8 tools available

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

About this integration

Connect Gemini to Definable to route to the best model per task, mix providers in one workflow, fall back on rate-limits. Personas call Gemini's 8 tools directly from chat or scheduled flows. Add it to your persona's available models and route requests to it where it fits best.

Connect Gemini to Definable and it becomes a set of typed tools your agents plan with — triggered by events, run on schedules, or invoked mid-conversation. Every write is checked by the verifier before it lands.

Auth None required
Tools 8 exposed
Plans All, incl. Free
Data Never trained on

Gemini · in workflows

What teams actually run.

Three patterns teams run with Gemini on day one. Each one is a plain-English prompt — no canvas, no glue code — and you can remix them into anything.

01

Multi-provider routing

Persona decides which model fits
Calls this provider when its strengths apply
Falls back to alternatives on rate-limits
02

Specialised pipeline

Use this provider for one stage
Pipe to a different model for the next
Combine outputs in the response

8 tools available

The Gemini toolbox.

Every Gemini capability your agents can call, each with a typed schema the planner reads. The router picks the right tool per step; the verifier checks the result.

Count Tokens (Gemini)

Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.

Embed Content (Gemini)

Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.

Generate Content (Gemini)

Generates text content or speech audio from prompts using Gemini models. Supports text generation models (Gemini Flash, Pro) and text-to-speech models with configurable parameters. Generated text is nested at results[i].response.data.text. Output may be wrapped in markdown fences (e.g., ```html...```) or preceded by explanatory prose; strip these before file writing or rendering.

Generate Image (Nano Banana)

Generates images from text prompts using Gemini models (Nano Banana). Supports models: 'gemini-2.5-flash-image' (GA stable, fast), 'gemini-3-pro-image-preview' (Nano Banana Pro - advanced with 4K resolution, thinking mode, up to 14 reference images), and 'gemini-2.0-flash-exp-image-generation' (2.0 Flash experimental). Returns one image per call; images are uploaded to S3. Parse response at data.image.s3url or the text-type entry in data.content — prefer the URL to avoid base64 blobs. Always validate s3url before treating call as successful; a 200 response may contain only text with no image. Store s3url immediately as URLs can expire. Output formats are raster only (JPG/PNG/WebP); request PNG for transparency. Concurrent usage may trigger HTTP 429/RESOURCE_EXHAUSTED — keep concurrency ≤3 and use exponential backoff (1s→2s→4s, ~5 retries). NOTE NEVER EVER TRUE SYNC_TO_WORKBENCH IN RUBE_MULTI_EXECUTE_TOOL

Generate Videos (Veo)

Generates videos from text prompts using Google's Veo models. Returns an operation_name for tracking; pass it verbatim (no edits) to GEMINI_WAIT_FOR_VIDEO or GEMINI_GET_VIDEOS_OPERATION. Jobs take 30–180+ seconds; wait 10s before first poll, then poll every 10–30s (allow up to 12 min). Successful results include data.video_file.s3url — missing s3url means failure. If done=true but no video_file, check raiMediaFilteredReasons (safety block); revise prompt and regenerate. Text-only; cannot accept image inputs. Max ~3–5 concurrent jobs; 429 RESOURCE_EXHAUSTED requires exponential backoff. For retries, always start a fresh call — never reuse a failed operation_name.

Get Videos Operation (Veo) (Deprecated)

DEPRECATED: Use WaitForVideo instead. Checks status of a Veo video generation operation. Use operation_name from GenerateVideos to track progress. Wait several seconds after starting GenerateVideos before first call to avoid OPERATION_NOT_FOUND. Poll at 10–30s intervals; use exponential backoff on HTTP 429 RESOURCE_EXHAUSTED; cap total polling at ~15 minutes. Complete when done=true AND a valid video URI is present; done=true without video_file indicates safety filtering blocked output — inspect raiMediaFilteredReasons and rephrase prompt. Video URL is at generatedSamples[].video.uri — persist promptly as URLs are time-limited. Keep concurrent polling to 3–5 parallel calls to avoid rate limits. If WaitForVideo times out, continue polling here using the same operation_name rather than starting a new GenerateVideos job.

List Models (Gemini API)

Lists available Gemini and Veo models with their capabilities and limits. Useful for discovering supported models and their features before making generation requests. Before calling video generation tools, verify model availability here — preview Veo models (e.g., veo-3.0-generate-preview) may be unavailable or return missing video URIs; prefer stable models like veo-2.0-generate-001.

Wait and Download Video (Veo)

Polls a Veo video generation operation until completion, then downloads and returns the video as a FileDownloadable. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. On completion, the URL is nested at data.video_file.s3url — validate it is non-empty before downstream use. A done=true response without a valid s3url indicates safety filter rejection (check raiMediaFilteredReasons) or quota exhaustion — adjust the prompt and regenerate. On timeout, use GEMINI_GET_VIDEOS_OPERATION with incremental backoff before starting a new job. Keep parallel jobs to 3–5 to avoid 429 RESOURCE_EXHAUSTED errors.

See it run

One prompt, start to finish.

A real prompt, the Gemini tools it calls, and what comes back. This is the whole interface — describe the outcome, agents handle the rest.

Run a real Gemini task end-to-end — plan it, execute across the API, and hand back a verified result.

gemini.count_tokens_gemini Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs
gemini.embed_content_gemini Generates text embeddings using Gemini embedding models. Converts text into numerical vect
gemini.generate_content_gemini Generates text content or speech audio from prompts using Gemini models. Supports text gen · verified
done

Done. Gemini responded across 3 calls, the verifier signed off, and the result is logged with every payload.

Pairs well with Gemini

Connect Gemini to your stack with Workflow

AI-native automation between Gemini and 92+ other tools — built, run, and self-healed by Workflow.

All integrations →

FAQ · Gemini

Questions, answered.

What teams ask before connecting Gemini.

01 What can I automate with Gemini on Definable?

Anything Gemini exposes through its API. Common artificial intelligence workflows on Definable include route to the best model per task, mix providers in one workflow, fall back on rate-limits. Personas can call any of the 8 Gemini tools directly, then chain the result into another integration without you writing code.

02 How does Gemini authentication work?

Gemini doesn't require authentication on Definable — it's a public-data integration, so personas can call it immediately without an account hand-off.

03 Is the Gemini integration included in my Definable plan?

Yes — every Definable plan, including Starter, includes access to all 8 Gemini tools. You only need a separate Gemini subscription if Gemini itself charges per seat or per API call.

04 Is using Gemini through Definable secure?

Every call from a persona to Gemini is logged with the user, persona, prompt, and response. Tokens never leave Definable's secrets vault, scopes are configurable per persona, and you can revoke access at any time from the integration page.

05 How do I get started with Gemini on Definable?

Sign up for Definable, open the integrations page, find Gemini, and connect in one click — no auth required. You can immediately attach Gemini to any persona and start running workflows. The free Starter plan includes 5,000 credits/month.

06 What Gemini actions does Definable expose?

Definable exposes all 8 Gemini actions as callable tools — including `Count Tokens (Gemini)`, `Embed Content (Gemini)`, `Generate Content (Gemini)`, plus 5 more. Each tool gets a typed parameter schema so personas know exactly how to call it.

Put Gemini to work tonight.

Connect in two clicks, describe an outcome, and your first workflow is live in minutes. Free plan included — no card required.

← All apps