{"slug": "we-built-the-new-fastest-api-for-glm-5-2", "title": "We built the new fastest API for GLM-5.2", "summary": "Baseten has built the fastest API for GLM-5.2, achieving peak speeds of 280 tokens per second and average speeds around 100 tokens per second, more than double the performance of the launch-day API as benchmarked by Artificial Analysis. The company also launched GLM-5.2-Fast, a lower-latency API optimized for coding and agents, running on NVIDIA B200 GPUs with input and output token prices 50% higher than the general API.", "body_md": "A month ago, GLM-5.2 was released. As part of our day-zero support, [we built the fastest API in the world for GLM-5.2](/blog/how-we-built-the-worlds-fastest-api-for-glm-52/), with peak speeds of 280 tokens per second and average speeds around 100 tokens per second. Today, our GLM-5.2 [as benchmarked by Artificial Analysis](https://artificialanalysis.ai/models/glm-5-2/providers) shows more than double the performance of the launch-day API. We find that our improved API performance shows up in both benchmarks and real-world usage.\n\nAs models like GLM-5.2 demonstrate sustained popularity in the market, we deepen our investment in model-specific optimization work to unlock better latency and throughput for our users. In addition to improving our GLM-5.2 API, we built another API for the model: [GLM-5.2-Fast](/library/glm-52-fast/).\n\nSome performance work benefits both APIs. Over the past month, we have optimized the scheduler, slightly increasing throughput, as well as rolled out improved NVFP4 weights and an updated speculative decoding profile. We’ve also fixed bugs on both quality and performance in our inference engine and throughout the stack.\n\nFor the fast API, we focused on reducing latency for coding and agents. Inference engineering offers multiple opportunities to trade off along the pareto frontier between latency and throughput. Based on a strong signal from the market that there is willingness to pay for more performance, Baseten’s model performance team revisited configuration options across parallelism, batching, and caching to push the system as far toward latency as possible. There were two changes that made the largest impact:\n\nWhile the general API uses Attention Data Parallelism (ADP) to improve throughput, the fast API solely uses Tensor and Expert Parallelism with configs selected for latency.\n\nA substantial reduction in max batch size means fewer requests are competing for resources.\n\nThis fast API runs on the same NVIDIA B200 GPUs as the general API. However, because the performance optimizations trade off throughput to improve latency, input and output token prices are 50% higher on the fast API.\n\nThis performance work shows up in the latest benchmarks from Artificial Analysis, measured at approximately 7:00 PM Pacific Time on Saturday, July 25, 2026.\n\nLLM performance varies substantially based on the amount of traffic in a system, the pattern of said traffic, and the input and output sequence lengths. We’ve received positive feedback from the market around our API’s leading performance in real-world usage, not just benchmarks. For reference, the Artificial Analysis benchmark sends prompts of approximately 10,000 input tokens to generate responses of approximately 1,000 output tokens.\n\nWe’re not done optimizing the performance of GLM-5.2. We have plans to roll out another improvement to our speculative decoding algorithm shortly. We’re also learning a lot from the process of building an API for Kimi K3, and we look forward to applying these learnings back to other open models like GLM-5.2.\n\nThe new fast API for GLM-5.2 is publicly available on Baseten. Try it today at [baseten.co/library/glm-52-fast/](https://www.baseten.co/library/glm-52-fast/).", "url": "https://wpnews.pro/news/we-built-the-new-fastest-api-for-glm-5-2", "canonical_source": "https://www.baseten.co/blog/how-we-built-the-new-fastest-api-for-glm-52/", "published_at": "2026-07-26 02:51:43+00:00", "updated_at": "2026-07-26 03:22:15.958681+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-infrastructure", "ai-products"], "entities": ["Baseten", "GLM-5.2", "Artificial Analysis", "NVIDIA B200", "GLM-5.2-Fast", "Kimi K3"], "alternates": {"html": "https://wpnews.pro/news/we-built-the-new-fastest-api-for-glm-5-2", "markdown": "https://wpnews.pro/news/we-built-the-new-fastest-api-for-glm-5-2.md", "text": "https://wpnews.pro/news/we-built-the-new-fastest-api-for-glm-5-2.txt", "jsonld": "https://wpnews.pro/news/we-built-the-new-fastest-api-for-glm-5-2.jsonld"}}