Skip to main content
The RunAnywhere Swift SDK runs language, speech, and vision models on the device. Prompts, audio, and images stay on the hardware, and everything keeps working with no network. One package supplies the whole surface. You register the backends you need, call RunAnywhere.initialize(), and then reach for a namespace.

Requirements

The namespaces

Every capability hangs off RunAnywhere as a namespace. This is the whole API.
The flat verbs from earlier releases (RunAnywhere.generate, RunAnywhere.loadModel, RunAnywhere.transcribe, and the rest) are deprecated in favour of these namespaces and will be removed. New code should use the namespaced form throughout.

Products

runanywhere-swift publishes five libraries. RunAnywhere is always required; add the backends that match the models you plan to run. MLX reports unavailable on the simulator. MLX.register() returns false there, so a simulator build validates packaging and startup but runs no MLX inference.

Where to go next

Installation

Add the package and pick your products

Quick Start

A working chat in one file

Text generation

Prompts, conversations, and options

Voice agent

Speech in, speech out