Skip to content

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.

  1. GLM 5Z.AIRemove
  2. Gemini 3.1 Flash Image (Google Vertex AI)GoogleEnterprise & partner accessRemove
  3. DeepSeek V4.1 Flash 1017DeepSeekRemove
glm-5 vs gemini-3.1-flash-image-vertex vs deepseek-v4.1-flash-1017
AttributeGLM 5glm-5Gemini 3.1 Flash Image (Google Vertex AI)gemini-3.1-flash-image-vertexDeepSeek V4.1 Flash 1017deepseek-v4.1-flash-1017
Pricing
Input$0.60 / 1M—$0.10 / 1M
Output$2.20 / 1M—$0.50 / 1M
Cache Write (5m)$0.60 / 1MNot applicable$0.10 / 1M
Cache Write (1h)$0.60 / 1MNot applicable$0.10 / 1M
Cache Read$0.60 / 1MNot applicable$0.10 / 1M
Web Search$0 / 1M—$0 / 1M
Request—$0.067 / request—
Billing—Pay Per Request—
Context
Max context202.8KN/A1M
Max outputN/AN/AN/A
Capabilities
VisionYesYesYes
Function CallingYesNoYes
JSON ModeYesNoYes
StreamingYesNoYes
Catalogue
ProviderZ.AIGoogleDeepSeek
Categorychatimagechat
Charge typePay As You GoPay Per RequestPay As You Go
Released———
Description
SummaryGLM-5 is Z.AI's flagship open-source foundation model, engineered for complex systems design and long-horizon agent workflows. Built with expert developers in mind, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models. With strong agentic planning, deep backend reasoning, and iterative self-correction capabilities, GLM-5 extends beyond traditional code generation to support full-system construction and autonomous execution, making it well suited for advanced engineering and agent-driven development environments.Gemini 3.1 Flash Image served from Google Vertex AI. Billed per image at US$0.067. Call it through /v1/chat/completions with stream set to false; the image is returned in the message content as a base64 data URI. Maximum output resolution is 2K. A request for a larger size, such as 4K or 4096x4096, returns a 2K image with the same aspect ratio at the same price. When a size is reduced, the response carries an X-Image-Resolution-Capped header with the requested and delivered size, for example 4096x4096->2048x2048.DeepSeek V4.1 Flash 1017 is the October 17, 2026 snapshot of DeepSeek’s cost-efficient Mixture-of-Experts (MoE) model, built on its innovative Causal Encoder-Decoder (CED) architecture. Featuring 552B total parameters with 8B activated for input and 16B for output, it combines efficient inference with native multimodal understanding through jointly trained text and visual representations. Optimized for coding, terminal and computer-use agents, and long-horizon workflows, the model introduces compressed KV caching that reduces cache memory usage to approximately one-quarter of the previous Flash generation. DeepSeek reports that it surpasses V4 Pro in performance, inference speed, and task completion time, making it well suited for cost-efficient autonomous agents, complex software engineering, and long-context analysis.