Mistral logoMistral

    zai-glm-5-2

    Auto-router

    mistral/zai-glm-5-2

    ChatToolsSystem prompt

    Context

    1M

    Max output

    128K

    Input / 1M

    $1.40

    Output / 1M

    $4.40

    Modality

    Chat

    Cutoff

    unknown

    About this model

    Z.ai GLM 5.2 is a third-party open-weight text model hosted by Mistral (served without Mistral modifications), built for long-context coding and agentic workflows.

    Best suited for

    • Long-context coding (1M token context, 128k max output)
    • Agentic workflows
    • Function calling / tool use
    • Structured outputs

    Capabilities

    Tools

    Native function calling, so agents can invoke your endpoints.

    System prompt

    Honours a dedicated system role, separate from the user turn.

    Supported parameters

    max_tokensMax Tokens Limit

    Specifies the maximum number of text units (tokens) allowed in a response, limiting its length.

    tools

    Lists tool definitions or capabilities available to the model.

    tool_choice

    Decides whether to use tools or just the model for generating responses.

    response_type

    Defines the format or type of the generated response.

    parallel_tool_calls

    Enables parallel execution of tools, allowing multiple tools to run simultaneously.

    stream

    Sends the response in real-time as it's being generated.