The Main Idea
In most cases, adding a model is not about rewriting the whole app. It usually means:- make sure the provider is supported
- add the provider key
- expose the model in the shared model registry
- decide where the model should appear in the UI
Main File To Check First
Start with:lib/ai/models.ts
Questions To Answer Before Adding A Model
- does it support text?
- does it support vision?
- does it support browsing?
- does it support thinking/reasoning controls?
- should it be free or credit-gated?
Good Implementation Order
- add the provider key if needed
- expose the model metadata
- test it in chat first
- then expose it in other apps only if it fits those workflows
Common Mistakes
- adding the model name but forgetting the provider key
- exposing a model in a vision flow when it is text-only
- assuming a model supports browsing because another model from the same provider does
- exposing too many similar models and making the UI harder to use

