get_model_profile()

Look up a model’s capability profile.

Usage

Source

get_model_profile(model_key)

Parameters

model_key: str
Either a "provider:model" string (e.g., "anthropic:claude-sonnet-4-6") or a bare model name (e.g., "gpt-4o"). Bare names are searched across all providers; the first match is returned.

Returns

ModelProfile | None
The profile if found, otherwise None.

Examples

import talk_box as tb

profile = tb.get_model_profile("anthropic:claude-sonnet-4-6")
profile.context_window   # 200_000
profile.supports_tools   # True
profile.cost_tier        # CostTier.HIGH