# MacPaw/OpenAI

Swift community driven package for OpenAI public API

Repository: https://github.com/MacPaw/OpenAI
Canonical: https://ross.abutalabs.com/products/macpaw-openai
Language: Swift
License: MIT
License Family: permissive
Topics: ai, openai, openai-api, spm, swift, swiftpackagemanager
Last push: 2026-07-21T14:24:00+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 94, longevity 96
- inputs: {"age_days": 1353, "days_push": 43, "days_rel": 43, "gap_med": 14.0, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2935, forks 518 (observed 2026-08-28T04:07:30.807878+00:00)

## What it is
A community-maintained Swift package that wraps the OpenAI public API, supporting chat completions, responses, function calling, MCP tools, images, audio, embeddings, and the Assistants API. It also works with other OpenAI-compatible providers such as Gemini, DeepSeek, Perplexity, and OpenRouter.

## Use cases
- integrate OpenAI chat completions into an iOS or macOS app
- call OpenAI API from Swift with Swift Package Manager
- add AI assistant features to a Swift application
- generate images or transcribe audio using OpenAI from Swift
- use OpenAI-compatible providers like DeepSeek or OpenRouter in Swift
- implement function calling and MCP tool integration in Swift

## When to choose
- you are building an Apple-platform or Swift app that needs OpenAI API access
- you want a maintained, MIT-licensed Swift SDK with broad API coverage
- you need compatibility with multiple OpenAI-compatible providers

## When to avoid
- your project is in Python, JavaScript, or another non-Swift language
- you need a provider not exposing an OpenAI-compatible API
- you only need raw HTTP calls and prefer no SDK dependency

## Facets
- artifact type: library
- maturity: active
- function: sdk, http-client, llm-inference, chatbot, speech-recognition, tts, image-processing, mcp
- domain: artificial-intelligence, large-language-models, developer-tools, apis
- platform: cross-platform
- tags: openai-api, swift-package-manager, chat-completions, assistants-api, embeddings, multi-provider, swift, ios, macos

## Member repositories
- MacPaw/OpenAI (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:30.807878+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:33:10.176620+00:00, confidence not recorded.
  - readme: https://github.com/MacPaw/OpenAI (fetched 2026-08-28T04:07:30.807878+00:00, sha 03c52ff3d20b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
