Overview
Configure which AI models are available in your app and how they behave. All model configuration lives inchat.config.ts under config.ai.

Configuration Options
Provider Order
Control the display order of providers in the model selector:Disabling Models
Hide specific models from all users:Curated Defaults
Models enabled by default for new users. Users can enable additional models in settings.Anonymous Models
Restrict which models anonymous (non-authenticated) users can access:Workflow Defaults
ai.workflows sets the default model for shared app workflows (tasks that don’t have a user-facing model picker):
| Field | Description |
|---|---|
chat | Main conversation model |
title | Generates chat titles |
pdf | PDF document analysis |
chatImageCompatible | Chat fallback model when image input is required |
Tool Model Defaults
ai.tools configures the default model for each tool. These are merged with the gateway defaults — only fields you provide override the defaults.
| Tool field | Description |
|---|---|
followupSuggestions.default | Generates follow-up questions |
text.polish | Text refinement |
sheet.format | Spreadsheet formatting |
sheet.analyze | Spreadsheet analysis |
code.edits | Code modifications |
image.default | Image generation (see Image Generation) |
video.default | Video generation (see Video Generation) |
deepResearch.defaultModel | Research and supervision agent (see Deep Research) |
deepResearch.finalReportModel | Final report synthesis for deep research |
AI Providers
Available providers should be listed inconfig.services.aiProviders:
Image Models
Set the default image model inai.tools.image.default (gateway-specific model ID). The generateImage tool resolves the model at runtime: if the user’s selected chat model supports image output (per the app model registry), it uses that; otherwise it uses this default. Resolution uses the dynamic gateway-based registry, not a static snapshot. See Image Generation for details.