DelphiGemini banner
MaxiDonkey MaxiDonkey

DelphiGemini

AI community

Description

Delphi wrapper for the Google Gemini API: stateless generation and agent workflows with multimodal, streaming, persistent interactions, structured outputs, vector search, batch, image/video generation, and grounding (Search/Maps).

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

DelphiGemini – Google Gemini API Wrapper for Delphi

![Delphi async/await supported](https://img.shields.io/badge/Delphi%20async%2Fawait-supported-blue) ![GitHub](https://img.shields.io/badge/IDE%20Version-Delphi%2010.4/11/12-ffffba) [![GetIt – Available](https://img.shields.io/badge/GetIt-Available-baffc9?logo=delphi&logoColor=white)](https://getitnow.embarcadero.com/gemini-api-wrapper-for-delphi/) ![GitHub](https://img.shields.io/badge/platform-all%20platforms-baffc9)


New


Two simple illustrative examples of synchronous text generation.

[!TIP] To obtain a Google API key, please refer to the [following link](https://aistudio.google.com/api-keys).


  • Non streamed example :

      // uses Gemini, Gemini.Types, Gemini.Helpers
      // Client: IGemini;
    
      Client := TGeminiFactory.CreateInstance('GEMINI_API_KEY');
    
      // Json Payload
      var Params: TProc :=
        procedure (Params: TInteractionParams)
        begin
          Params
            .Model('gemini-3-flash-preview')
            .Input('From which version of Delphi were multi-line strings introduced?' );
        end;
    
      Memo1.Lines.Add('Please wait...');
    
      //Synchronous example (non streamed)
      var Value := Client.Interactions.Create(Params);
    
      try
        for var Output in Value.Outputs do
          if Output.&Type = TContentType.text then
            Memo1.Lines.Text := Memo1.Text + Output.Text;
      finally
        Value.Free;
      end;

  • Streamed example

      // uses Gemini, Gemini.Types, Gemini.Helpers;
      // Client: IGemini;
    
      Client := TGeminiFactory.CreateInstance('GEMINI_API_KEY');
    
      // Json Payload
      var Params: TProc :=
        procedure (Params: TInteractionParams)
        begin
          Params
            .Model('gemini-3-flash-preview')
            .Input('From