Skip to content

Apple Foundation Model

Free
apple/foundation-model

Text · 4K context · Jun 2025 · 1 upstreams

Apple's on-device model, served by the Mac you pair through AnyRouter Relay. Free, and your prompts stay on your own Mac.

Runs on your Mac

Free · runs on your own Mac

Run this on your Mac to serve it to your own account.

See the setup steps

Runs only on your own Mac. Never shared with other users.

Pair your own Mac

Needs an Apple Silicon Mac with Apple Intelligence and the on-device model server (fm serve) running.

  1. 1
    Install the CLI
    bash
    curl -fsSL https://anyrouter.dev/setup.sh | bash
  2. 2
    Sign in, then start the relay
    bash
    anyr login

    Then run anyr relay start, the command at the top of this card.

More options

--model <id> serves one model and --all serves every detected model, skipping the picker.

anyr login --device signs in on a headless machine.

Send a test request:

bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "apple/foundation-model", "messages": [{"role": "user", "content": "hi"}]}'

Read the local relay docs.

context
4K
input / 1M
$0
output / 1M
$0
routes
1
speed, 24h
No data yet

Upstreams

1
  1. 1AnyRouterPlatformFree

Quick start

/api/v1/chat/completions
cURL
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "apple/foundation-model",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'

Details

Owner
Apple
Kind
Chat
Released
Jun 2025
Context
4K
Data policy
Zero retention
Endpoint
/api/v1/chat/completions