Multi-Model Configuration
zai supports several approaches for using different models within a single session, allowing you to optimize for cost, performance, and task specialization. Strategies range from manual or turn-based model selection to dynamic, context-aware switching.
📚 Documentation & Guides
Switching Models Mid-Session
Use the /model command to change models without losing your session, keeping the same provider or switching to another.
Subagents
Delegate focused tasks to isolated zai instances, each able to run its own provider and model.
Context Engineering
Shape what zai keeps in context across a session, including compaction and persistent instructions.