API Agents vs. GUI Agents: Divergence and Convergence
Chaoyun Zhang, Shilin He, Liqun Li, Si Qin, Yu Kang, Qingwei Lin, Saravan Rajmohan, Dongmei Zhang
TL;DR
This work systematically contrasts API-based and GUI-based LLM agents, detailing how each paradigm processes tasks, their respective strengths and limitations, and scenarios where hybridization offers superior performance. It analyzes key dimensions such as modality, efficiency, reliability, and maintainability, and presents concrete convergence paths including API wrappers, unified orchestrators, and low-code/no-code platforms. The authors provide prototyping evidence from OS-world office tasks showing that hybrids improve success rates and reduce workflow steps, supporting practical adoption in diverse environments. The paper concludes with strategic guidance for selecting or blending approaches and envisions a future where API and GUI automation are increasingly integrated into unified, flexible automation stacks.
Abstract
Large language models (LLMs) have evolved beyond simple text generation to power software agents that directly translate natural language commands into tangible actions. While API-based LLM agents initially rose to prominence for their robust automation capabilities and seamless integration with programmatic endpoints, recent progress in multimodal LLM research has enabled GUI-based LLM agents that interact with graphical user interfaces in a human-like manner. Although these two paradigms share the goal of enabling LLM-driven task automation, they diverge significantly in architectural complexity, development workflows, and user interaction models. This paper presents the first comprehensive comparative study of API-based and GUI-based LLM agents, systematically analyzing their divergence and potential convergence. We examine key dimensions and highlight scenarios in which hybrid approaches can harness their complementary strengths. By proposing clear decision criteria and illustrating practical use cases, we aim to guide practitioners and researchers in selecting, combining, or transitioning between these paradigms. Ultimately, we indicate that continuing innovations in LLM-based automation are poised to blur the lines between API- and GUI-driven agents, paving the way for more flexible, adaptive solutions in a wide range of real-world applications.
