Overview
Configure which AI models are available in your app and how they behave. All model configuration lives inchat.config.ts under config.models.
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:Task-Specific Defaults
Different tasks use different models by default. This lets you optimize for cost and quality per use case.| Task | Description |
|---|---|
chat | Main conversation model |
title | Generates chat titles |
pdf | PDF document analysis |
artifact | Creates artifacts (documents, code, sheets) |
artifactSuggestion | Suggests artifact improvements |
followupSuggestions | Generates follow-up questions |
suggestions | General suggestions |
polishText | Text refinement |
formatSheet | Spreadsheet formatting |
analyzeSheet | Spreadsheet analysis |
codeEdits | Code modifications |
chatImageCompatible | Chat with image input support |
image | Image generation (see Image Generation) |
AI Providers
Available providers should be listed inconfig.services.aiProviders:
Image Models
Image models use a separateImageModelId type. Set the default:
Model Types
Two types of models can generate images:| Type | Type Definition | Description |
|---|---|---|
| Image model | ImageModelId | Standalone image models from AI Gateway |
| Multimodal | MultimodalImageModelId | Language models with image-generation tag |
AnyImageModelId covers both.
Multimodal Image Models
Language models tagged withimage-generation in models.generated.ts can generate images inline. The generateImage tool automatically detects these and uses generateText with image output modalities instead of the dedicated generateImage API.
lib/models/image-model-id.ts
generateImage tool for both generation and edit modes. See Image Generation for details.