CoreAIKit

Examples

Start here: OpsGallery — all twenty task ops as cards, rendered from CoreAI.Op.allCases: pick an input, run the one-line call, see the result. The fastest way to find out what the kit can do on your own data.

Building any GUI example: xcodegen generate (brew install xcodegen), open the project, and either pick your team in Signing & Capabilities or export DEVELOPMENT_TEAM=XXXXXXXXXX before generating — no project hard-codes one.

Every other example app in one place, on two shelves:

Model runners

App Kind What it runs
Transcribe speech-to-text Any asr catalog model (Whisper / Qwen3-ASR / Parakeet): record, choose, or demo clip → transcript. GUI + swift run transcribe-cli.
ChatDemo chat Minimal multiplatform chat over ChatSession; pick a starter model, it downloads and streams.
VLChat vision-language Any vlm catalog model (Qwen3-VL 2B/4B/8B, Holo2 GUI grounding): pick a photo, ask about it. GUI + swift run vlchat-cli.
Speak text-to-speech Any tts catalog model (VoxCPM / VoxCPM2 / Kokoro): type a sentence, hear it. GUI + swift run speak-cli.
Music text-to-music Any music catalog model (Stable Audio): prompt → 44.1 kHz stereo. GUI + swift run music-cli.
AudioChat audio understanding Any audio catalog model (Qwen2.5-Omni): load a clip, ask “what do you hear?”. GUI + swift run audiochat-cli (macOS).
DepthCamera depth Any depth catalog model: live camera depth via CameraFeed. GUI + swift run depth-cli.
ActionCamera video Any video catalog model (V-JEPA 2): a rolling 16-frame clip → live action label. GUI + swift run action-cli.
ReadDoc document OCR Any ocr catalog model (Unlimited-OCR): document image → structured markdown. GUI + swift run readdoc-cli.
DiffuseChat diffusion LM Any dllm catalog model (LLaDA-8B): watch the reply denoise in place (parallel fill-in, not left-to-right). GUI + swift run diffuse-cli.
DetectCamera detection Any detection catalog model (RF-DETR / YOLOX) behind one KitDetector. GUI + swift run detect-cli.
UpscaleDemo super-resolution AdcSR ×4 super-resolution: pick a photo, tap Upscale. GUI + swift run upscale-cli.
PhotoSearch image-text embeddings Semantic photo search — the photo library indexed with CLIP.
DocSearch visual doc retrieval Any retrieval catalog model (ColModernVBERT): query + page images → MaxSim ranking, no OCR. GUI (iPhone) + swift run docsearch-cli.

SDK-feature demos

App OS surface What it shows
SiriAsk Siri / App Intents “Hey Siri, Ask Gemma” → an on-device Gemma 4 answers, warm-resident.
SpotlightApp Spotlight indexing Ask your own files with your own local model.
SpotlightChat SpotlightSearchTool Local RAG through Apple’s Spotlight tool (WWDC26), driven by your model.
FMToolDemo FoundationModels Local tool calling behind Apple’s LanguageModelSession.
GuidedDemo FoundationModels Guided generation: logits masked through a JSON-schema grammar.
DocChat On-device RAG end to end: notes indexed with EmbeddingGemma, answered by a local chat model.
AskVLM Visual Intelligence Qwen3-VL as its own Visual Intelligence tab.
VisualIntel Visual Intelligence Your own models behind system Visual Intelligence.

All examples build against the kit via path: ../.. — clone the repo and they can’t version-skew. GUI apps commit their generated .xcodeproj (source of truth = project.yml): clone → open → Run, no xcodegen install needed. CLI shells run headless on macOS with swift run — the agent-verifiable door.