Developer HemulGM has built an FMX interface for the ChatGPT API as a fully native cross-platform AI client built with Delphi and FireMonkey. Instead of embedding a browser, the application delivers a polished desktop and mobile experience using native FMX controls while supporting modern AI features such as conversations, image generation, speech recognition, editable chats, function calling, and custom API endpoints.
A standout part of the project is FMXRichMemo, a custom rich text editor developed specifically for FireMonkey. Rather than relying on the standard TMemo, FMXRichMemo adds syntax highlighting for Pascal, Python, JSON, SQL, HTML, CSS, and Markdown, making AI-generated code and formatted responses significantly easier to read and edit. The component also serves as a reusable control for any Delphi application that needs a modern code or rich-text editing experience.
The application showcases:
- Native FireMonkey UI across desktop and mobile
- AI conversations with GPT models
- DALLĀ·E image generation
- Speech recognition
- Editable conversation history
- Function calling and custom API endpoints
- Rich code editing with FMXRichMemo
- Multi-language syntax highlighting
More than just a ChatGPT API client, the project demonstrates how to build polished, production-quality AI applications entirely in Object Pascal while introducing reusable FireMonkey components that developers can incorporate into their own projects.

