Skip to content

JSON API Match models across providers (missing base_model) #2098

@martinzugnoni

Description

@martinzugnoni

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions