New

    Introducing AutoEvals: Find the right model for your task

    Z.aiText Generation Model

    GLM-5.2 Fast

    GLM-5.2 on Inference.net's low-latency serving tier, with the same open weights, 1M-token context, reasoning, structured outputs, and tool support. Use it for interactive agents that need faster generation.

    import OpenAI from "openai";
    
    const openai = new OpenAI({
      baseURL: "https://api.inference.net/v1",
      apiKey: "<YOUR_API_KEY>",
    });
    
    const completion = await openai.chat.completions.create({
      model: "glm-5.2-fast",
      messages: [
        {
          role: "user",
          content: "What is the meaning of life?"
        }
      ],
      stream: true,
    });
    
    for await (const chunk of completion) {
      process.stdout.write(chunk.choices[0]?.delta.content as string);
    }

    Start building with GLM-5.2 Fast today

    Serverless, OpenAI-compatible, and billed per token. No commitments.