# Apple Foundation Model (on-device)

> Apple's on-device Foundation Model, run locally on a user's own paired Mac and relayed to AnyRouter over an outbound WebSocket (no third-party vendor account, no server-side compute). Ships $0 in/out — the user supplies their own hardware.

**ID**: `apple/foundation-model`  
**Creator**: apple  
**Category**: text  
**Context**: 4K tokens  
**Input**: $0  
**Output**: $0  
**Released**: 2025-06-09  
**Web page**: https://anyrouter.dev/model/apple/foundation-model

**Input modalities**: text  
**Output modalities**: text  

**Capabilities**: chat, streaming

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```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": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| anyrouter | $0 | $0 |

## Source

- Upstream docs: https://developer.apple.com/documentation/foundationmodels
