---
title: "AnyLanguageModel 1.0: One Year of Local Models on Apple Platforms"
description: "AnyLanguageModel 1.0 is a Swift package that acts as a drop-in replacement for Apple's Foundation Models framework, letting apps swap the model and provider by changing a single import."
url: "https://swe.quest/articles/anylanguagemodel-1-0-one-year-of-local-models-on-apple-platforms-2fd58a39aa0b428c"
canonical: "https://huggingface.co/blog/anylanguagemodel-1-0"
source: "Hugging Face"
published: "2026-10-20"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["swift","llms","inference","mobile","api-design"]
---

# AnyLanguageModel 1.0: One Year of Local Models on Apple Platforms

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-10-20, 4 min read, Release. Original: [https://huggingface.co/blog/anylanguagemodel-1-0](https://huggingface.co/blog/anylanguagemodel-1-0)

## Summary

AnyLanguageModel 1.0 is a Swift package that acts as a drop-in replacement for Apple's Foundation Models framework, letting apps swap the model and provider by changing a single import. Over the past year it gained tool calling, guided generation including nested @Generable types, and image support across every provider. It covers local models via llama.cpp, MLX and Core ML as well as hosted APIs (OpenAI, Anthropic, Gemini, Ollama, Hugging Face Inference Providers, Private Cloud Compute), and reasoning blocks are omitted automatically when switching to a provider that can't replay them. API keys now come from a closure so apps can fetch short-lived tokens, the library runs on Linux, and swift-huggingface and swift-xet 1.0 ship alongside it for faster model downloads from the Hub.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Swift](https://swe.quest/tags/swift.md) (Languages)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)

## Prerequisites

- Swift Package Manager ([easy posts on Swift](https://swe.quest/tags/swift.md?difficulty=easy))
- Apple Foundation Models framework

## Keywords

AnyLanguageModel, Foundation Models, MLX, llama.cpp, Core ML, swift-huggingface, swift-xet, Hugging Face Inference Providers

## Related posts

- [Introducing AnyLanguageModel: One API for Local and Remote LLMs on Apple Platforms](https://swe.quest/articles/introducing-anylanguagemodel-one-api-for-local-and-remote-llms-on-apple-049ac2052cff4c11.md): Hugging Face · 2025-11-20 · Medium · 6 min read · Swift, LLMs, API design, Inference & serving, Mobile
  AnyLanguageModel is a Swift package that mirrors Apple's Foundation Models API, so a single \`import\` swap lets apps target Apple's system model, Core ML, MLX, llama.cpp, Ollama, or cloud providers (OpenAI, Anthropic, Gemini, Hugging Face Inference Providers) through the same session-based interface.
- [Releasing Swift Transformers: Run On-Device LLMs in Apple Devices](https://swe.quest/articles/releasing-swift-transformers-run-on-device-llms-in-apple-devices-ee6106831bf892fd.md): Hugging Face · 2023-08-08 · Medium · 15 min read · Swift, Inference & serving, LLMs, Mobile
  Hugging Face released swift-transformers, an alpha Swift package with a transformers-like API for on-device text generation, along with the swift-chat demo app, updated exporters and transformers-to-coreml conversion tools, and pre-converted Llama 2 7B and Falcon 7B Core ML models.
- [Swift Transformers Reaches 1.0 – and Looks to the Future](https://swe.quest/articles/swift-transformers-reaches-1-0-and-looks-to-the-future-a8395154e2037c4e.md): Hugging Face · 2025-09-26 · Easy · 5 min read · Swift, Inference & serving, LLMs, Mobile
  swift-transformers, Hugging Face's Swift library for running local models on Apple Silicon, reaches 1.0.
- [Introducing swift-huggingface: The Complete Swift Client for Hugging Face](https://swe.quest/articles/introducing-swift-huggingface-the-complete-swift-client-for-hugging-face-a785ae7c4e628cdb.md): Hugging Face · 2025-12-05 · Medium · 6 min read · Swift, Developer tools, Mobile, Machine learning
  swift-huggingface is a ground-up rewrite of the Swift client for the Hugging Face Hub, replacing swift-transformers' HubApi.
- [Introducing AnySpeechRecognizer and AnyDecisionModel: Open Models for Speech and Decisions on Apple Platforms](https://swe.quest/articles/introducing-anyspeechrecognizer-and-anydecisionmodel-open-models-for-speech-and-2746fca6b9690c89.md): Hugging Face · 2026-10-29 · Medium · 12 min read · Speech & audio, Swift, Inference & serving, LLMs, Machine learning
  AnySpeechRecognizer mirrors Apple's SpeechAnalyzer API but lets apps swap in other engines (NVIDIA Parakeet v3/Ultra/Unified and Alibaba Qwen3-ASR on Core ML) and adds Sortformer-based speaker diarization for up to four speakers.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
