DelphiGenAI banner
MaxiDonkey MaxiDonkey

DelphiGenAI

AI community

Description

The GenAI API wrapper for Delphi seamlessly integrates OpenAI’s latest models (gpt-5 serie), delivering robust support for agent chats/responses, text generation, vision, audio analysis, JSON configuration, web search, and asynchronous operations. Image generation with gpt-image-2. Skills and agents

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

Delphi GenAI - Optimized OpenAI Integration


![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/genai-optimized-openai-integration-wrapper/) ![GitHub](https://img.shields.io/badge/platform-all%20platforms-baffc9) [![LS Studio supported](https://img.shields.io/badge/LM%20Studio-supported-blue)](https://lmstudio.ai/)


New


Two quick examples

[!TIP] To obtain an API key, see https://platform.openai.com/settings/organization/api-keys


  • Non-streamed example:

    //uses GenAI, GenAI.Types;
    
      var API_Key := 'OPENAI_API_KEY';
      Client := TGenAIFactory.CreateInstance(API_KEY);
    
      //JSON payload
      var Payload: TResponsesParamsProc :=
        procedure(Params: TResponsesParams)
        begin
          Params
            .Model('gpt-5.5')
            .Input('What is the difference between a mathematician and a physicist?')
            .Store(False);  // Response not stored
        end;
    
      //Synchronous example
      var Value := Client.Responses.Create(Payload);
    
      try
        for var Item in Value.Output do
          for var SubItem in Item.Content do
            Memo1.Lines.Text := SubItem.Text;
      finally
        Value.Free;
      end;

  • Streamed example (SSE):

    //uses GenAI, GenAI.Types;
    
    var Client: IGenAI;
    var API_Key