{"repo":"PreternaturalAI/AI","free":true,"listed":false,"github":"https://github.com/PreternaturalAI/AI","clone":"git clone https://github.com/PreternaturalAI/AI.git","description":"The definitive, open-source Swift framework for interfacing with generative AI.","language":"Swift","stars":228,"topics":["ai","chatgpt","gpt","llm","protocol-oriented","rag","swift","swiftui","whisper"],"license":"MIT","category":"ai-agents","readme_excerpt":"[!IMPORTANT] This package is presently in its alpha stage of development (2026-03-04). --- Supported Platforms &nbsp; &nbsp; &nbsp; &nbsp; AI The definitive, open-source Swift framework for interfacing with generative AI. Installation\\ Usage Import the framework Initialize an AI Client LLM Clients Abstraction Supported Models Completions Basic Completions Vision: Image-to-Text Function Calling DALLE-3 Image Generation Audio Audio Transcription: Whisper Audio Generation: OpenAI Audio Generation: ElevenLabs Text Embeddings Roadmap \\ Acknowledgements \\ License Installation Swift Package Manager 1. Open your Swift project in Xcode. 2. Go to File - Add Package Dependency . 3. In the search bar, enter this URL. 4. Choose the version you'd like to install. 5. Click Add Package . Usage Import the framework Initialize an AI Client Initialize an instance of an AI API provider of your choice. Here are some examples: You can now use client as an interface to the supported providers. LLM Clients Abstraction If you need to abstract out the LLM Client (for example, if you want to allow your user to choose between clients), simply initialize an instance of LLMRequestHandling with an LLM API provider of your choice. Here are some examples: You can now use client as an interface to an LLM as provided by the underlying provider. Supported Models Each AI Client supports multiple models. For example: Completions Basic Completions Modern Large Language Models (LLMs) operate by receiving a series o","default_branch":null,"files":null,"tree":[],"storefront":"/r/PreternaturalAI","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PreternaturalAI/AI/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."}