I can't find a way of matching the canonical model from provider-specific model data in the JSON API.
Looking at the .toml files in the repo it seems that the base_model field is used to link back to the canonical model data
https://github.com/anomalyco/models.dev/blob/dev/providers/openrouter/models/openai/gpt-5.5.toml
base_model = "openai/gpt-5.5"
Points to: https://github.com/anomalyco/models.dev/blob/dev/models/openai/gpt-5.5.toml
The problem is that base_model is not exposed in any of the 3 JSON APIs, and "id" in each provider model document in the API response is provider-specific and not the canonical model ID.
What would be the correct way of matching models across providers in the JSON API?
Thanks!
I can't find a way of matching the canonical model from provider-specific model data in the JSON API.
Looking at the
.tomlfiles in the repo it seems that thebase_modelfield is used to link back to the canonical model datahttps://github.com/anomalyco/models.dev/blob/dev/providers/openrouter/models/openai/gpt-5.5.toml
Points to: https://github.com/anomalyco/models.dev/blob/dev/models/openai/gpt-5.5.toml
The problem is that
base_modelis not exposed in any of the 3 JSON APIs, and"id"in each provider model document in the API response is provider-specific and not the canonical model ID.What would be the correct way of matching models across providers in the JSON API?
Thanks!