Compare models
Put up to 4 models beside each other — token prices, context windows, capabilities and provider, from the same catalogue the model pages read.
- Claude Sonnet 5AnthropicRemove
- Hy4 previewTencentRemove
- Claude Fable 5.1AnthropicRemove
- Gemini 3.8 FlashGoogleRemove
4 is the maximum. Remove one to add another.
| Attribute | Claude Sonnet 5claude-sonnet-5 | Hy4 previewhy4-preview | Claude Fable 5.1claude-fable-5.1 | Gemini 3.8 Flashgemini-3.8-flash |
|---|---|---|---|---|
| Pricing | ||||
| Input | $2.00 / 1M | $0.834 / 1M | $10.00 / 1M | $0.75 / 1M |
| Output | $10.00 / 1M | $2.50 / 1M | $50.00 / 1M | $3.75 / 1M |
| Cache Write (5m) | $2.50 / 1M | $0.834 / 1M | $12.50 / 1M | $0.75 / 1M |
| Cache Write (1h) | $4.00 / 1M | $0.834 / 1M | $20.00 / 1M | $0.75 / 1M |
| Cache Read | $0.20 / 1M | $0.834 / 1M | $1.00 / 1M | $0.75 / 1M |
| Web Search | $0 / 1M | $0 / 1M | $0 / 1M | $0 / 1M |
| Context | ||||
| Max context | 1M | 1M | 1M | 1M |
| Max output | N/A | N/A | N/A | N/A |
| Capabilities | ||||
| Vision | Yes | Yes | Yes | Yes |
| Function Calling | Yes | Yes | Yes | Yes |
| JSON Mode | Yes | Yes | Yes | Yes |
| Streaming | Yes | Yes | Yes | Yes |
| Catalogue | ||||
| Provider | Anthropic | Tencent | Anthropic | |
| Category | chat | chat | chat | chat |
| Charge type | Pay As You Go | Pay As You Go | Pay As You Go | Pay As You Go |
| Released | — | — | — | — |
| Description | ||||
| Summary | Sonnet 5 is Anthropic's most capable Sonnet-class model, delivering frontier-level performance across coding, agentic workflows, and professional knowledge tasks. It supports text, image, and file inputs, features a 1M-token context window, and offers adaptive thinking with configurable reasoning levels (low, medium, high, max, and x-high) to balance speed, cost, and reasoning depth. Optimized for complex coding, long-horizon agent execution, and professional workflows, Sonnet 5 combines strong reasoning, robust instruction following, and enhanced safety features, including an updated tokenizer and real-time cyber safeguards for high-risk dual-use scenarios. | Tencent Hy4 Preview is a Mixture-of-Experts (MoE) model from Tencent, featuring 770B total parameters with 49B activated per token. It is designed for coding agents, complex tool-driven workflows, and professional productivity tasks that require strong planning and reliable execution. Optimized for context continuity and sustained multi-step work, Hy4 Preview is well suited for long-horizon coding, agentic automation, tool orchestration, and complex real-world workflows. | Claude Fable 5.1 is an upgraded version of Fable 5, delivering broad improvements with particularly strong gains in agentic coding, long-running workflows, and professional knowledge work. It excels at large code refactors, front-end and visual code generation, financial analysis, and complex analytical tasks. Compared with Fable 5, it also produces more concise plans and summaries while maintaining strong performance across extended tasks, making it a natural upgrade for existing Fable workflows and a strong option alongside Opus 5 for reasoning-intensive applications. | Gemini 3.8 Flash is Google's most intelligent Flash-class model, delivering significant improvements over Gemini 3.7 Flash across software engineering, agentic workflows, and complex multi-step reasoning. Designed to combine strong capability with Flash-tier efficiency, it is well suited for coding assistants, autonomous agents, and high-throughput production workflows that require responsive performance without sacrificing reasoning quality. |