{
  "schemaVersion": 1,
  "capturedAt": "2026-07-28T11:07:07.042116+00:00",
  "model": "glm-5.2",
  "query": "GLM-5.2 context window and API pricing official Z.ai documentation",
  "scope": "One account, one key, one host, one date and one benign query; compatibility evidence, not an SLA or quality benchmark.",
  "routes": [
    {
      "case": "raw-paygo",
      "surface": "raw-web-search-api",
      "endpointFamily": "pay-as-you-go",
      "httpStatus": 200,
      "elapsedMs": 2666,
      "resultCount": 5,
      "modelReturned": null,
      "finishReason": null,
      "usage": null,
      "citationTokenCount": null,
      "controlExactMatch": null
    },
    {
      "case": "raw-coding-path",
      "surface": "raw-web-search-api",
      "endpointFamily": "coding-plan",
      "httpStatus": 200,
      "elapsedMs": 3077,
      "resultCount": 5,
      "modelReturned": null,
      "finishReason": null,
      "usage": null,
      "citationTokenCount": null,
      "controlExactMatch": null
    },
    {
      "case": "chat-paygo-search",
      "surface": "chat-web-search",
      "endpointFamily": "pay-as-you-go",
      "httpStatus": 200,
      "elapsedMs": 5684,
      "resultCount": 5,
      "modelReturned": "glm-5.2",
      "finishReason": "stop",
      "usage": {
        "prompt_tokens": 444,
        "cached_tokens": 0,
        "completion_tokens": 81,
        "total_tokens": 525
      },
      "citationTokenCount": 3,
      "controlExactMatch": null
    },
    {
      "case": "chat-coding-search",
      "surface": "chat-web-search",
      "endpointFamily": "coding-plan",
      "httpStatus": 200,
      "elapsedMs": 5567,
      "resultCount": 5,
      "modelReturned": "glm-5.2",
      "finishReason": "stop",
      "usage": {
        "prompt_tokens": 446,
        "cached_tokens": 0,
        "completion_tokens": 85,
        "total_tokens": 531
      },
      "citationTokenCount": 3,
      "controlExactMatch": null
    },
    {
      "case": "chat-coding-control",
      "surface": "chat-no-search-control",
      "endpointFamily": "coding-plan",
      "httpStatus": 200,
      "elapsedMs": 2472,
      "resultCount": 0,
      "modelReturned": "glm-5.2",
      "finishReason": "stop",
      "usage": {
        "prompt_tokens": 15,
        "cached_tokens": 0,
        "completion_tokens": 6,
        "total_tokens": 21
      },
      "citationTokenCount": 0,
      "controlExactMatch": true
    }
  ],
  "chatEvidence": [
    {
      "case": "chat-paygo-search",
      "answer": "- **Context Window**: GLM-5.2 supports a 1M-token lossless context window, optimized for long-horizon coding agent scenarios. [1][2]\n- **API Pricing**: GLM-5.2 is priced at $1.40 per million input tokens and $4.40 per million output tokens via Requesty, with prompt caching supported. [4]",
      "results": [
        {
          "title": "GLM-5.2 - Overview - Z.AI DEVELOPER DOCUMENT",
          "link": "https://docs.z.ai/guides/llm/glm-5.2",
          "domain": "docs.z.ai",
          "refer": "ref_1",
          "publishDate": null
        },
        {
          "title": "GLM 5.2 - API Pricing & Benchmarks",
          "link": "https://openrouter.ai/z-ai/glm-5.2",
          "domain": "openrouter.ai",
          "refer": "ref_2",
          "publishDate": null
        },
        {
          "title": "GLM Coding Plan",
          "link": "https://z.ai/subscribe",
          "domain": "z.ai",
          "refer": "ref_3",
          "publishDate": null
        },
        {
          "title": "Z.ai glm-5.2 API Pricing & Cost",
          "link": "https://www.requesty.ai/models/zai/glm-5.2",
          "domain": "www.requesty.ai",
          "refer": "ref_4",
          "publishDate": "Jun 16, 2026"
        },
        {
          "title": "What Is GLM-5.2?",
          "link": "https://apidog.com/blog/glm-5-2-what-is/",
          "domain": "apidog.com",
          "refer": "ref_5",
          "publishDate": "Jun 17, 2026"
        }
      ],
      "sourcePolicy": "The prompt requested official Z.ai sources, but numeric reference 4 mapped to a third-party Requesty page."
    },
    {
      "case": "chat-coding-search",
      "answer": "- **Context Window**: GLM-5.2 delivers a solid 1M-token lossless context window, optimized for long-horizon coding agent scenarios [1][2].  \n- **API Pricing**: GLM-5.2 is priced at **$1.40 per million input tokens** and **$4.40 per million output tokens** via Requesty, with prompt caching supported [4].",
      "results": [
        {
          "title": "GLM-5.2 - Overview - Z.AI DEVELOPER DOCUMENT",
          "link": "https://docs.z.ai/guides/llm/glm-5.2",
          "domain": "docs.z.ai",
          "refer": "ref_1",
          "publishDate": null
        },
        {
          "title": "GLM 5.2 - API Pricing & Benchmarks",
          "link": "https://openrouter.ai/z-ai/glm-5.2",
          "domain": "openrouter.ai",
          "refer": "ref_2",
          "publishDate": null
        },
        {
          "title": "GLM Coding Plan",
          "link": "https://z.ai/subscribe",
          "domain": "z.ai",
          "refer": "ref_3",
          "publishDate": null
        },
        {
          "title": "Z.ai glm-5.2 API Pricing & Cost",
          "link": "https://www.requesty.ai/models/zai/glm-5.2",
          "domain": "www.requesty.ai",
          "refer": "ref_4",
          "publishDate": "Jun 16, 2026"
        },
        {
          "title": "GLM-5.2: Built for Long-Horizon Tasks",
          "link": "https://z.ai/blog/glm-5.2",
          "domain": "z.ai",
          "refer": "ref_5",
          "publishDate": "Jun 16, 2026"
        }
      ],
      "sourcePolicy": "The prompt requested official Z.ai sources, but numeric reference 4 mapped to a third-party Requesty page."
    }
  ],
  "mcp": {
    "initializeHttpStatus": 200,
    "requestedProtocol": "2025-03-26",
    "returnedProtocol": "2024-11-05",
    "sessionIdPresent": true,
    "sessionIdStored": false,
    "toolsListHttpStatus": 200,
    "tools": [
      {
        "name": "web_search_prime",
        "description": "Search web information, returns results including web page title, web page URL, web page summary, website name, website icon, etc.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "search_query": {
              "type": "string",
              "description": "Content to be searched, it is recommended that the search query not exceed 70 characters"
            },
            "search_domain_filter": {
              "type": "string",
              "description": "Used to limit the scope of search results, only return content from specified whitelist domains, such as: www.example.com."
            },
            "search_recency_filter": {
              "type": "string",
              "description": "Search for web pages within a specified time range. Default is noLimit Available values:- oneDay, within one day- oneWeek, within one week- oneMonth, within one month- oneYear, within one year- noLimit, no limit (default)"
            },
            "content_size": {
              "type": "string",
              "description": "Control the number of words in the web page summary; default value is medium - medium: balanced mode, suitable for most queries. 400-600 words.- high: maximize context to provide more comprehensive answers, but higher cost, 2500 words."
            },
            "location": {
              "type": "string",
              "description": "Guess which region the user is from based on user input. Default is cn Available values: - cn, Chinese region- us, non-Chinese region"
            }
          },
          "required": [
            "search_query"
          ],
          "additionalProperties": false
        }
      }
    ],
    "callHttpStatus": 200,
    "calledTool": "web_search_prime",
    "queryArgument": "search_query",
    "callResultCharacterCount": 2874,
    "callResultSha256": "5ee31f6df9b87d435e004dfb388b800bad2170fad11a5f26c28b38c31bc5a99f"
  },
  "summary": {
    "http_request_count": 9,
    "http_200_count": 9,
    "http_statuses": {
      "200": 9
    },
    "median_elapsed_ms": 2587,
    "elapsed_range_ms": [
      809,
      5684
    ],
    "raw_paygo_result_count": 5,
    "chat_paygo_search_result_count": 5,
    "chat_coding_search_result_count": 5,
    "coding_control_exact_match": true,
    "mcp_tool_count": 1,
    "mcp_call_http_status": 200
  },
  "paygoCostIllustration": {
    "pricingCheckedAt": "2026-07-28",
    "inputUsdPerMillionTokens": 1.4,
    "outputUsdPerMillionTokens": 4.4,
    "searchUsdPerUse": 0.01,
    "observedPromptTokens": 444,
    "observedCompletionTokens": 81,
    "observedModelUsd": 0.000978,
    "oneSearchPlusModelUsd": 0.010978,
    "searchSharePercent": 91.09,
    "oneThousandSameShapeRequestsUsd": 10.978
  },
  "credentialStored": false,
  "authorizationHeaderStored": false,
  "responseIdsStored": false,
  "sessionIdsStored": false,
  "reasoningStored": false
}
