GLM 5.2 is 35% off on AI Gateway through July 24 when routed through Novita.
To get the discounted rate, set the model to zai/glm-5.2
in the AI SDK and route requests through Novita:
agent.ts
1import { streamText } from 'ai';2const result = streamText({3 model: 'zai/glm-5.2',4 prompt: 'Migrate every API route to the new auth middleware and open a PR.',5 providerOptions: {6 gateway: {7 order: ['novita'],8 },9 },10});
Routing GLM 5.2 requests to Novita with the gateway provider options
After July 24, the model stays available at standard provider rates with no markup.
Try GLM 5.2 in the model playground.