Skip to content

mbabicz/SwiftAI

Repository files navigation

SwiftAI — Claude & DALL·E iOS App

mbabicz iOS Swift Swift Powered by Claude Powered by DALL·E

ABOUT THE PROJECT

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.

INSTALLATION

  1. Clone the repository
  2. Open SwiftGPT.xcodeproj in Xcode
  3. Build and run on a simulator or device (iOS 16+)
  4. In the app, tap the ⚙ Settings icon and enter:

CLAUDE CHAT

Real-time streaming chat powered by Anthropic's Claude API:

  • Direct REST integration with https://api.anthropic.com/v1/messages
  • Streaming via URLSession async bytes + Server-Sent Events
  • Conversation history maintained per session
  • Model: claude-sonnet-4-6

DALL·E 2 IMAGE GENERATION

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)

BUILT WITH

Swift SwiftUI

About

iOS app that features a chat powered by ChatGPT and DALL·E 2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages