{"repo":"skito/aipi-php","free":true,"listed":false,"github":"https://github.com/skito/aipi-php","clone":"git clone https://github.com/skito/aipi-php.git","description":"Universal API client for common AI models","language":"PHP","stars":39,"topics":["anthropic","artificial-intelligence","large-language-models","openai","php","google-deepmind","xai"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"AIpi - Universal API client for common AI models Simple lightweight PHP library for interacting with common AI models, that provides universal interface. 🤖 Multimodel support. Unified API for all models. 🛰️ Fallback models — define multiple models and vendors to auto-switch on API failure. 🔧 Tools support & agentic - autoresolve tool calls with callbacks. 🚀 Extendable - easy to add your own models and tools. ⚡ No dependencies, just native PHP. cURL required. 📦 No composer required! But composer compatible. Quick links - Setup - Quick start - Tools and Toolbox - Constructors and common options - Supported models - Requests and support Setup You can choose to use the autoloader or include the full source at once. Using the autoloader: Or include full source at once: Or using composer: Quick start [BASIC USAGE] COMMUNICATION SEQUENCE [WITH TOOLS] Use tools for agentic behaviour. Custom tool example Toolbox example COMMUNICATION SEQUENCE [VISION] Depending on the model, you can work with binary data or links. GPT Claude Gemini [Embeddings] [MORE EXAMPLES] For more examples, please refer to the models docs and the demo folder. Currently supported: chat/completitions , vision , image generation , audio generation , audio transcription , document vision , embeddings , moderations . Tools and Toolbox Tools are definitions of functions that can be called by the AI model. You can make your own tool definitions such as Tools/FunctionCall to be used in the thread. Toolbox is a colle","default_branch":null,"files":null,"tree":[],"storefront":"/r/skito","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/skito/aipi-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}