openai-cpp and liboai
These are direct competitors offering similar C++ bindings for the OpenAI API, with liboai being more actively maintained (higher star count) and explicitly targeting C++17 while openai-cpp lacks version specification.
About openai-cpp
olrea/openai-cpp
OpenAI C++ is a community-maintained library for the Open AI API
About liboai
D7EAD/liboai
A C++17 library to access the entire OpenAI API.
Covers ChatGPT, audio transcription, image generation, embeddings, fine-tuning, and moderation endpoints with asynchronous support. Built as a spiritual port of OpenAI's Python library using cURL and nlohmann-json for HTTP requests and JSON serialization. Mirrors Python API conventions for familiar developer experience across languages.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work