Supported Models & Providers
Relevant source files
The following files were used as context for generating this wiki page:
OS Chat supports a vast ecosystem of over 50 Large Language Models (LLMs) and specialized AI engines. The system acts as a unified gateway, integrating diverse providers such as OpenAI, Anthropic, Google, and Meta into a single interface. This multi-model architecture allows users to switch between models based on specific needs, such as high-reasoning tasks, creative writing, or fast technical assistance.
Sources: README.md:12-25, src/lib/config/models/tests/model-providers.test.ts:1-20
Architecture and Integration
The model infrastructure is built on a modular configuration system where each provider (e.g., OpenAI, Anthropic, DeepSeek) has its own dedicated model definitions. These are aggregated into a central MODELS array and a MODELS_MAP for constant-time lookup. The backend utilizes the Vercel AI SDK v6 to handle the complexities of different provider APIs, streaming responses, and tool calling.
Sources: CLAUDE.md:104-115, src/lib/config/tests/models.test.ts:74-90
Model Configuration Schema
Every supported model must adhere to a strict Zod-validated schema. This ensures consistency in how the UI and backend handle features like premium status, credit usage, and specialized capabilities.
The diagram above illustrates the logical structure of a model definition as defined in the system's configuration schema.
Sources: src/lib/config/schemas.ts:39-85, src/lib/config/tests/schemas.test.ts:46-75
Supported Providers
OS Chat categorizes models by their primary infrastructure provider. While many are accessed via direct SDKs, some utilize a gateway pattern (e.g., @ai-sdk/gateway) for standardized integration.
| Provider | Key Models | Primary Features |
|---|---|---|
| OpenAI | GPT-5.2, GPT-5.2 Pro, o3, GPT-5 Mini | Reasoning (o3), Image Generation |
| Anthropic | Claude 4.5 Opus/Sonnet/Haiku | High-fidelity reasoning, thinking |
| Gemini 3 Pro, Gemini 2.5 Flash | Thinking, Image Generation (Imagen 4) | |
| DeepSeek | V3.2, R1 | Open-weights reasoning, chat |
| Meta | Llama 4 Maverick, Llama 4 Scout | Efficient open-source performance |
| xAI | Grok 4.1 Fast | Real-time information, fast reasoning |
| Fal | Flux Schnell | High-speed image generation |
Sources: README.md:55-75, src/lib/config/models/tests/model-providers.test.ts:114-170
Gateway and OpenRouter Support
The system includes specialized support for OpenRouter, allowing access to a wider tail of models without individual provider configurations. Models from OpenRouter are often used as fallback or to provide access to experimental open-source variants.
Sources: src/lib/config/models/tests/model-providers.test.ts:47-50, src/routes/api.chat.ts:326-335
Specialized Features & Capabilities
Models in OS Chat are not treated as simple text-in, text-out engines. They are configured with specific feature flags that enable enhanced UI/UX components.
1. Reasoning and "Thinking" Processes
Specific models like o3, Claude 4.5, and Gemini Thinking support an internal reasoning process. The backend captures these "thoughts" and displays them to the user, providing transparency into how the AI arrived at a complex answer.
Sources: README.md:40-45, src/routes/api.chat.ts:133-146
2. Multi-modal and Image Generation
The system distinguishes between standard chat models and those capable of generating or processing visual data. Image generation models like GPT Image 1.5 or Flux Schnell follow a specialized data flow where results are uploaded to Cloudflare R2 storage before being served to the user.
This flowchart represents the specialized execution path for image generation requests.
Sources: src/routes/api.chat.ts:205-276, src/lib/tests/model-utils.test.ts:15-38
3. Tool Calling and Agents
Models marked with the tool-calling feature can interact with external services via the Composio integration. This enables the "Background Agents" feature where a model can autonomously use tools like Gmail, GitHub, or Notion.
Sources: src/lib/config/tests/models.test.ts:133-138, src/routes/api.chat.ts:148-154
Access Control and Credits
Models are categorized into "Standard" and "Premium" tiers, which dictates how they are accessed and charged.
- Premium Models: Generally require a subscription or the usage of "Premium Credits."
- User API Keys: Users can provide their own API keys (e.g., an OpenAI API key) to bypass platform limits. The system supports a "Priority" mode for user keys.
- Rate Limiting: Anonymous users are limited to 5 messages/day, while registered users receive 20 messages/day across standard models.
Sources: src/routes/security.tsx:43-50, src/routes/api.chat.ts:400-435, src/lib/model-utils.ts:104-118
Conclusion
The "Supported Models & Providers" system in OS Chat is designed for maximum flexibility and technical transparency. By abstracting the complexities of numerous AI providers into a unified schema and API handler, the project allows for rapid integration of new models (as seen with the support for GPT-5 and Claude 4.5 variants) while maintaining a consistent experience for end-users. This architecture ensures that OS Chat remains at the forefront of AI capabilities, whether through reasoning, multi-modality, or autonomous tool usage.