Add a New AI Model
Adding a model is usually quick. You’re not rewriting the whole app — you’re plugging into an existing system.The Process
Check provider support
Make sure the provider is already supported in the repo (OpenAI, Anthropic, Google, Groq, xAI, DeepSeek, Replicate). If it’s a new provider, you’ll need to add it first.
Choose the right registry
Not every model lives in the same file:
lib/ai/models.ts— shared chat/text model registryapp/(apps)/image-studio/lib/models.ts— Image Studio catalogapp/(apps)/video-studio/lib/models.ts— Video Studio catalog
Answer these questions about your model
Before you expose it in the UI, think through:
- Does it support text?
- Does it support vision (image input)?
- Does it support browsing/web search?
- Does it support thinking/reasoning controls?
- Should it be free or credit-gated?
Test in Chat first
The Chat app is the best place to verify a new model works. Test streaming, tool usage, and any special capabilities.
The Main Files
lib/ai/models.ts— shared chat/text model catalogapp/(apps)/image-studio/lib/models.ts— image generation catalogapp/(apps)/video-studio/lib/models.ts— video generation catalog

