Mara is invented for this example. She has a Mac mini on the desk and would like the model to live in the box, so a token bill never starts. The box is small. The hope is that small is enough.

APA V3, the earlier agent system, ran on a Mac mini M4, and the inference ran on that machine. It was unstable: Metal GPU out-of-memory errors and crashes under load. Heavy inference does not run on that machine now. Model calls go to hosted APIs, a cheaper model for scoring and a stronger one for the text a person will read, under a hard monthly token cap. The mini is the base 16GB configuration. Ollama loaded the weights. The hosted calls go through OpenRouter. The other figures are from pages I opened on 23 November 2026.

In plain words

A Mac mini M4 has one pool of memory, shared by the processor and the graphics hardware. Mine is the base configuration on Apple’s page: 16GB unified. macOS, the other apps, and the GPU draw from that same pool. A quantised file of about eight billion parameters is a few gigabytes in the sizes llama.cpp prints, and that number is the weights only. Context sits on top. My machine ran out: Metal GPU out-of-memory errors, and crashes under load.

The calls now go to a hosted API, through OpenRouter. A cheaper model scores, a stronger one writes what a person might read, and a monthly cap covers both. Two public list prices are below, as an example. My invoice is not.

What Apple lists

Apple’s tech specs for Mac mini (2024), accessed 23 November 2026. Year introduced: 2024.

The M4 chip on that page is a 10-core CPU and a 10-core GPU, at 120GB/s memory bandwidth. Memory is 16GB unified, configurable to 24GB or 32GB. The 16GB line is the base. It is the memory in this mini.

The M4 Pro starts at 24GB unified, configurable to 48GB or 64GB, at 273GB/s. That row is not this machine.

A footnote says 1GB equals 1 billion bytes. It sits under storage. The memory lines say “16GB unified memory,” and the larger options, and stop there.

One pool, and a limit the device reports

Apple’s Metal Compute on MacBook Pro tech talk, accessed 23 November 2026, describes unified memory. With it, “the traditional management of copies between system RAM and video RAM goes away.” Shared resources “allow the GPU and CPU to read and write the same memory.”

On this mini that room is 16GB. macOS, the other apps, and the GPU share it. A heavy model is heavy next to everything else.

The talk names a working set: how much memory one command encoder can reference at a time. Software reads it from the Metal device as recommendedMaxWorkingSetSize. Apple’s page for that property calls it “an approximation of how much memory, in bytes, this GPU device can allocate without affecting its runtime performance.” Keep the GPU’s resources and heaps under that threshold if you want the performance.

The talk then gives two sizes, for MacBook Pros. An M1 Pro or M1 Max with 32GB of system RAM: the GPU can access 21GB. An M1 Max with 64GB: 48GB. Split the work across command encoders, the talk says, and Metal can allocate past that set. Those rows are M1 laptops. I did not read the property on my mini.

What the file weighs

llama.cpp’s quantize tool prints a size beside each method, from tools/quantize/quantize.cpp, fetched 23 November 2026. The same strings carry a perplexity delta. I am quoting the size only. This is not a log from my desk. The G in those strings is not Apple’s GB.

Weights, as printedFigureThe pool on this miniStill in the pool, besides the file
Llama-3-8B, Q4_K_M4.58G16GB unified, sharedmacOS, the other apps, the GPU, and the context
Llama-3-8B, Q8_07.96GThe same 16GBThe same tenants
Mistral-7B, F1614.00GThe same 16GB. This file crowds that lineThe same tenants. The labels still do not subtract

16 minus 4.58 is not a free balance. One column says G and the other says GB, and the file size stops before context.

Ollama was the program that loaded the local models. Ollama’s quickstart, accessed the same day, puts the Gemma 4 E2B download at about 7.2 GB and recommends 8 GB of available VRAM, or unified memory on a Mac. More context needs more memory. With less VRAM, Ollama can use system RAM, and responses may be slower. The 16GB on this mini is the whole pool. It is not 8 GB waiting empty.

Ollama’s context-length page applies to that install. It defaults the context from available VRAM: under 24 GiB, 4k tokens; 24 to 48 GiB, 32k; 48 GiB and above, 256k. Agents, web search, and coding tools should be at least 64,000 tokens, it says, and a longer context needs more memory. Apple’s 16GB is a different label from those GiB of VRAM. This draft does not turn one into the other.

What mine did

Heavy inference stays off that machine. The local runs were Ollama. The calls that remain go through OpenRouter. A cheaper model scores, a stronger one writes the text a person will read, and a hard monthly cap covers both. The cap’s size is not in this post. What the tool may then do with a draft is Three switches before an agent acts.

  1. A cheaper model scores
  2. A stronger model writes the text a person reads
  3. A hard monthly cap covers both

The file, or the rate card

Weights on the miniA hosted API
Where the model sitsIn the one 16GB pool, loaded by OllamaOff this machine, through OpenRouter
What I ran intoMetal GPU out-of-memory, then a crash under loadThe month’s tokens, against a cap set before they are spent
Which modelThe file that was loaded. It stays unnamedA cheaper one to score, a stronger one for the sentence a person reads

OpenRouter’s FAQ, accessed 23 November 2026, says it provides a unified API to access the major language models. The same page says it passes through the pricing of the underlying providers, and that purchasing credits carries a fee of 5.5%, with a minimum of $0.80.

The table below is an example of public list prices. These are OpenAI’s Standard rates for one cheap model and one strong one, as opened on 23 November 2026. A rate card, not my invoice. These two IDs are not named here as the pair under my cap.

The models page says to start with GPT-6.2 Astra, “our flagship model for complex reasoning and coding,” or GPT-6 Luna “for cost-sensitive, high-volume workloads.” The pricing page bills per 1M tokens. Short context there is 272K input tokens or fewer. Long context is above that.

ModelInput, Standard, short contextOutput, Standard, short context
GPT-6 Luna$0.10 per 1M tokens$0.50 per 1M tokens
GPT-6.2 Astra$8.00 per 1M tokens$40.00 per 1M tokens

The Luna page writes $0.1 and $0.5. The Astra page writes $8 and $40. Same rates. Cached input is cheaper on both, and the table leaves it out.

Above 272K input tokens, both model pages reprice the whole request: twice the input and the cache, 1.5 times the output. On the pricing page the long-context row for gpt-6.2-astra is $16.00 in and $60.00 out per 1M tokens.

A cap is set before the month spends it. The invoice after that is a different number. That split is Payback is a clock. The total is a pile. There is no electricity reading for the mini in this draft, and no verdict on which side costs less.

I built 20+ modules before I had revenue.

A small model, for a chat that fits the memory her mini actually has, is still Mara’s to try. I would hand her these pages first. Heavy inference on my stack is finished. The models moved out. The cap stays.

Sources