MaxiDonkey

DelphiGenAI — AI skill for Claude Code

AI community

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 configur.

How to install DelphiGenAI

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

What DelphiGenAI does

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

Alternatives in AI

  • Claude Task Master — by eyaltoledano - A task management system for AI-driven development with Claude, designed to work seamlessly 26k ★
  • Codecompanion.nvim — GitHub Repo stars AI-powered coding seamlessly in Neovim Neovim AI coding 6.3k ★
  • Deepreasoning — A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthr 5.4k ★

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