Retrieve model context size

Is it possible to retrieve the specific context size for a model from a provider. I would like it before any request is sent to the provider (for display for example )