Documentation

Everything you need to get started

Quick Start

Get up and running in minutes with our step-by-step guide.

Installation

Swift Package Manager

  1. 1.In Xcode, go to File → Add Package Dependencies
  2. 2.Enter the repository URL
https://github.com/user/SwiftAIKit-iOS

CocoaPods

  1. 1.Add to your Podfile
  2. 2.Run pod install
pod 'SwiftAIKit'

Basic Usage

Initialize the client and make your first AI request

import SwiftAIKit

let config = AIConfiguration(
    apiKey: "your-api-key",
    bundleId: Bundle.main.bundleIdentifier!
)

let client = AIClient(configuration: config)

// Make a chat completion request
let response = try await client.chat.completions(
    model: "gpt-4",
    messages: [
        .user("Hello, how are you?")
    ]
)

print(response.choices.first?.message.content ?? "")

API Reference

Complete API documentation with all available methods and parameters.

SwiftAIKit
© Copyright 2026 SwiftAIKit. Designed by Creative Designs Guru.