messages
Anthropic Messages, the lane Claude Code speaks.
Create a message
Anthropic Messages, on any model in the catalog. Authenticate with `Authorization: Bearer` (the SDK's `auth_token`), never `x-api-key`. `model` takes a catalog alias or a real Claude model name. Set `stream: true` for the Anthropic event sequence. The response's `model` echoes what you sent.
Count tokens
Prompt tokens a Messages request would consume. Exact for a concrete Claude model name; an estimate from the platform's Claude counting model for any other alias. Free and unmetered.