OpenAI GPT-4, DALL-E, Whisper

Integrate OpenAI GPT-4, DALL-E, and Whisper APIs into Delphi applications. Chat completions, image generation, and speech-to-text.

Capabilities

  • Chat completions with GPT-4, GPT-4o, and GPT-3.5
  • Image generation and editing with DALL-E 3
  • Speech-to-text transcription with Whisper
  • Function calling and tool use support
  • Streaming responses for real-time output
  • Embeddings for semantic search and RAG

Delphi Example

uses
  sgcAI_OpenAI;

var
  OpenAI: TsgcAIOpenAI;
begin
  OpenAI := TsgcAIOpenAI.Create(nil);
  OpenAI.ApiKey := 'sk-...';
  OpenAI.Model := 'gpt-4o';
  OpenAI.OnResponse := HandleResponse;
  // Send a chat completion request
  OpenAI.ChatCompletion('Explain WebSockets in 3 sentences.');
end;

Documentation & Demos

Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.

Ready to Integrate OpenAI?

Download the free trial and start building in minutes.