Using a Mac Mini for AI inference is kind of a hack though and the software stack is pretty wonky, whereas these things are purpose-built x86 devices with warranties and support and whatnot.
Regardless, the math for self-hosting currently doesn't add up when compared to heavily-subsidized monthly offerings from OpenAI and Anthropic unless you absolutely can't have the data you're working with go across a wire (privacy, trade secrets, etc).