Do they do the same when using the model through API in something like Opencode?
Yes, they do. They give you just a token which is exchanged for the raw text only on the server side
Anthropic has some very interesting views on Intellectual Property xD