FME Transformers: 2026.3

Categories
Integrations

GoogleGeminiConnector

Connects to Google Gemini models for content generation, image creation, image editing, speech, and embeddings.

Jump to Configuration

Typical Uses

  • Generating text responses, summaries, or structured JSON from a prompt using a Gemini model
  • Creating or editing images from a text prompt using a Gemini image model
  • Synthesizing speech audio from text, including multi-speaker dialogue
  • Generating vector embeddings for text, image, audio, video, or PDF input

How does it work?

The GoogleGeminiConnector uses your credentials to connect to Google Gemini and perform various tasks:

Action Task

Generate Content

Send a text prompt (with optional supporting media, chat history, and tool use) to a Gemini model and return the generated text response.

This also can be used to analyze or describe audio or video input.

Generate Image

Generate an image from a text prompt using a Gemini image model.

Edit Image

Edit an existing input image according to a text prompt, using a Gemini image model.

Generate Speech

Synthesize speech audio from text, with single- or two-speaker voice configuration.

Generate Embeddings

Generate a vector embedding for text, image, audio, video, or PDF input.

Optional Input Port

This transformer has two modes, depending on whether a connector is attached to the Input port or not:

  • Input-driven: When input features are connected, the transformer runs once for each feature it receives in the Input port.
  • Run Once: When no input features are connected, the transformer runs one time.

When the Input port is in use, the Initiator output port is also enabled.

Usage Notes

  • All actions except Generate Embeddings call the same underlying Gemini Interactions API endpoint; Generate Embeddings uses a separate endpoint (embedContent)
  • For Generate Image and Edit Image the generated image is always attached to the output feature as raster geometry, regardless of Save Response To. Only PNG and JPEG images support this; other formats log a warning and are skipped, without affecting the non-geometry response data.
  • If multiple supporting inputs need to be provided for an action (such as multiple images for Edit Image or multiple JSON files for Generate Content ), set Supporting Input to File. This is the only input method which supports multiple supporting inputs.
  • The transformer will only include parts of the response explicitly marked as model_output when outputting its response. To see the full response, include _googleai_json_response in Attributes To Add. To include model reasoning output (thinking), include _googleai_thinking_summaries{} in Attributes To Add. Note that including thinking summaries will increase token usage.
  • To continue a Generate Content workflow across multiple requests, enable Chat History and provide a Previous Interaction ID set to the _googleai_interaction_id attribute value of the previous feature.
  • Users are responsible for verifying output. Text content which is blocked ( due to content filters, for example) may not always result in a <Rejected> feature.
  • Google releases some Gemini models and functionality on its beta API before the stable one. If a model or functionality returns an error, try setting the web connection's Base URL to the v1beta option.
  • Users can edit the AI Model parameter to specify a custom Google Gemini model. For a list of all models, see https://ai.google.dev/gemini-api/docs/models. Note that not all models are supported by the underlying API and that only models suited for the selected Action should be used.
  • Data sent to Google AI is subject to Google's data handling and privacy policies.

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Feature-Based

Feature Holding

No

Dependencies  
Aliases GeminiAIConnector, GeminiConnector, GoogleAIConnector
History  

FME Online Resources

The FME Community and Support Center Knowledge Base have a wealth of information, including active forums with 35,000+ members and thousands of articles.

Search for all results about the GoogleGeminiConnector on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.