Models API returns a line field naming each model's line
GET /v1/models and GET /v1/models/{model_id} now return a line field naming the model line each model belongs to, such as opus, so clients can group models without parsing IDs. It is null for a model in no line.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact No impactNo cost, risk or roadmap impact. This is an additive metadata field on the Models API.
Engineer
What to change, what breaks, what to test Worth knowingIf you group models by parsing IDs, switch to the new line field from GET /v1/models; handle null and do not hard-code the set of values. Optional: no existing call breaks.
General consumer
Using the Claude apps, not the API No impactNothing to do. This is a developer API change and does not affect the Claude apps.
The Models API now returns a line field on every model. Both GET /v1/models and GET /v1/models/{model_id} include it. It names the model line the model belongs to: Claude Opus 4.5 and Claude Opus 4.6 both report opus, for example. line is null when a model belongs to no line.
Anthropic’s guidance is to read line instead of inferring a model’s family from its id, for example when building a model picker. The models overview also says Anthropic might add more lines, so code should not treat the set of values as a fixed enum.
The field is additive. Existing requests are unaffected, but a client that validates Models API responses against a strict schema will see a new key.
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
line | added | no |