SwiftAI is a native iOS application built with SwiftUI that integrates:
- Anthropic Claude — conversational AI chat with real-time streaming responses, powered by the Claude REST API directly (no third-party wrapper)
- OpenAI DALL·E 2 — AI image generation from text prompts
The Claude chat uses the claude-sonnet-4-6 model with Server-Sent Events (SSE) streaming for a smooth, real-time experience. Users provide their own API keys directly in the app — no hardcoded secrets.
![]() |
![]() |
|---|
- Clone the repository
- Open
SwiftGPT.xcodeprojin Xcode - Build and run on a simulator or device (iOS 16+)
- In the app, tap the ⚙ Settings icon and enter:
- Your Claude API key from console.anthropic.com
- Your OpenAI API key from platform.openai.com (for DALL·E only)
Real-time streaming chat powered by Anthropic's Claude API:
- Direct REST integration with
https://api.anthropic.com/v1/messages - Streaming via
URLSessionasync bytes + Server-Sent Events - Conversation history maintained per session
- Model:
claude-sonnet-4-6
![]() |
![]() |
|---|
Generate images from text prompts using OpenAI's DALL·E 2:
- Context menu to share or save generated images to Photos
- Requires a separate OpenAI API key (entered in Settings)
![]() |
![]() |
|---|
- Anthropic Claude API — LLM chat backend
- OpenAIKit — DALL·E image generation
- SFSafeSymbols — type-safe SF Symbols





