teunlao/swift-ai-sdk
Unified AI SDK for Swift, bringing the power of Vercel AI SDK to Apple platforms
This is a unified AI SDK designed for developers building applications for Apple platforms (iOS, macOS, watchOS, tvOS). It helps you integrate advanced AI capabilities like streaming text generation, structured data output, and tool-calling from various AI providers (e.g., OpenAI, Anthropic, Google) into your Swift applications. You provide a prompt or a query, and it returns generated text, structured data, or a request to use a specific tool.
102 stars.
Use this if you are a Swift developer building an app for Apple platforms and need to integrate AI models efficiently, with support for multiple providers and features like streaming or structured output.
Not ideal if you are not a Swift developer or if your project doesn't target Apple platforms.
Stars
102
Forks
9
Language
Swift
License
Apache-2.0
Category
Last pushed
Mar 12, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/teunlao/swift-ai-sdk"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
OpenDive/OpenAIKit
Swift Package for OpenAI's API
mbabicz/SwiftAI
iOS app that features a chat powered by ChatGPT and DALL·E 2
MaxiDonkey/DelphiGenAI
The GenAI API wrapper for Delphi seamlessly integrates OpenAI’s latest models (gpt-5 serie),...
Renset/macai
All-in-one native macOS AI chat application for virtually any AI provider
alfianlosari/ChatGPTSwift
Access ChatGPT API using Swift