Skip to content
Get Pro

Model Picker

A compact model menu with descriptions, plan badges, effort controls, and additional models.

Loading component preview…

Installation

Add the component source directly to your project.

pnpm dlx shadcn@latest add https://pastaui.com/r/model-picker.json

API reference

Model Picker

Model Picker properties
PropTypeDefaultDescription
models[].provideropenai | claudeShows the SVGL provider icon before the model name. Copy public/icons/providers into your app public directory.
moreModelsModelOption[][]Models in the More models submenu.
effort / defaultEffortlow | medium | high | extramediumControlled or initial reasoning effort.
onEffortChange(effort: ModelEffort) => voidReceives effort changes.
onUpgrade(modelId: string) => voidHandles upgrade requests for gated models without selecting them.
footerReactNodeOptional supporting plan or availability information.
modelsModelOption[]Provides model names, descriptions, badges, and optional upgrade requirements.
valuestringControls the selected model id.
onValueChange(value: string) => voidRuns when a model is selected.