{
 "kind": "api",
 "slug": "z-ai",
 "path": "apis/z-ai/",
 "name": "Z.ai API",
 "logo": null,
 "maker": "Z.ai (Zhipu AI)",
 "density": "basic",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "Model hosting and inference",
   "apis/inference/"
  ]
 ],
 "lead": "API for GLM language, vision, image, video and speech models with built-in web search.",
 "chips": [
  {
   "label": "Model hosting and inference",
   "path": "apis/inference/"
  },
  {
   "label": "Official MCP server"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install zai-sdk"
 },
 "links": [
  {
   "label": "Website",
   "href": "https://z.ai"
  },
  {
   "label": "Pricing",
   "href": "https://docs.z.ai/guides/overview/pricing"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free credits",
   "status": "cond",
   "sub": "One-time or needs a card",
   "quote": null,
   "note": "Free tier: GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash are free. As reported on the official pricing page, checked Oct 27, 2026.",
   "src": "https://docs.z.ai/guides/overview/pricing"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "Not checked yet",
   "status": "unknown",
   "sub": "Read the terms before you ship",
   "note": "We have not read this API's terms yet. Until we do, check its terms of service for commercial use and whether it trains on what you send.",
   "src": "https://z.ai"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "Not checked yet",
   "status": "unknown",
   "sub": null,
   "note": "We have not read how this API signs you up and issues keys yet.",
   "src": "https://z.ai"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official MCP server",
   "status": "yes",
   "sub": "llms.txt · OpenAPI · SDK",
   "quote": null,
   "note": " Our agent check: 5 of 6 (Nov 13, 2026).",
   "src": "https://docs.z.ai/llms.txt"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Oct 27, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Z.ai API does",
   "parts": [
    {
     "t": "prose",
     "text": "API for GLM language, vision, image, video and speech models with built-in web search."
    },
    {
     "t": "list",
     "items": [
      "Z.ai API is one of 42 APIs in the Model hosting and inference category on AgentGid.",
      "Its cheapest paid plan ($18 a month) is the 4th cheapest of the 12 here with a monthly plan.",
      "It is one of 13 that can be started for free.",
      "It ships an official MCP server, like 5 others here.",
      "Its official SDK is the 13th most downloaded in the category (42.8K a week)."
     ],
     "muted": true
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Z.ai API popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "42.8K",
       "l": "SDK downloads a week",
       "d": null,
       "up": false
      },
      {
       "n": "2",
       "l": "public agent repos use its SDK"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash are free"
      },
      {
       "l": "Cheapest plan",
       "v": "$18 a month"
      },
      {
       "l": "Usage price",
       "v": "$0.15/1M input, $0.50/1M output (GLM-5.3-Flash); $1.4/1M input, $4.4/1M output (GLM-5.3); Web Search $0.01/use"
      }
     ]
    },
    {
     "t": "more",
     "items": [
      {
       "title": "Price history",
       "items": [
        "A year of the pricing page in the Internet Archive (1 months): the lowest monthly figure went from $18 (2026-11) to $18 (2026-11)."
       ]
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Oct 27, 2026. Prices change: confirm before you buy.",
     "link": "docs.z.ai/guides/overview/pricing",
     "href": "https://docs.z.ai/guides/overview/pricing"
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "5 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP yes, status page no, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "Official: @z_ai/mcp-server",
       "sub": null
      },
      {
       "l": "PyPI",
       "v": "pip install zai-sdk",
       "code": true
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Z.ai API",
       "me": true,
       "facts": [
        "from $0.01/use",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "OpenAI API",
       "why": "GPT models for text, vision, tool calling and agents, priced per 1M tokens.",
       "path": "apis/openai-api/",
       "facts": [
        "from $0.1",
        "No free tier"
       ]
      },
      {
       "name": "Gemini API",
       "why": "Gemini models for text, image, audio and video input, priced per 1M tokens, with a free tier.",
       "path": "apis/google-gemini-api/",
       "facts": [
        "Free plan",
        "Free tier"
       ]
      },
      {
       "name": "Mistral AI API",
       "why": "Mistral's open-weight and commercial models via API, priced per 1M tokens.",
       "path": "apis/mistral-api/",
       "facts": [
        "from $0.5 per million input tokens",
        "No free tier"
       ]
      },
      {
       "name": "Groq (LLM inference)",
       "why": "Fast inference API for open models such as GPT-OSS and Llama, priced per 1M tokens.",
       "path": "apis/groq/",
       "facts": [
        "from $0.075",
        "No free tier"
       ]
      }
     ],
     "more": "All model hosting and inference APIs",
     "more_path": "apis/inference/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install the official SDK.",
     "code": "pip install zai-sdk"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Z.ai API yet: we have not written its hand-checked card. Its official docs are linked at the top."
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Z.ai (Zhipu AI)"
  ],
  [
   "Category",
   "Model hosting and inference"
  ],
  [
   "Price",
   "from $0.01/use"
  ],
  [
   "Plans from",
   "$18/mo"
  ],
  [
   "Official SDK",
   "PyPI zai-sdk"
  ],
  [
   "Agent check",
   "5 of 6"
  ],
  [
   "Pricing checked",
   "Oct 27, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the official site and pricing page, checked Oct 27, 2026; no hand-checked card yet; usage numbers update daily."
}