Free GLM-5.2 via Hugging Face Inference Providers in coding agents
Melvin Vivas · X post · 2026-06-19 · Open on X
Topics: LLM Fundamentals, AI Dev Tools & Productivity, LLMOps, Deployment & Monitoring · Level: intermediate
Summary
For a limited time, Hugging Face made GLM-5.2 free through its Inference Providers API across several providers. The model can be plugged into coding agents such as Pi, opencode, Codex or Claude Code.
Key points
- GLM-5.2 was free for about 6 hours through Hugging Face Inference Providers.
- Covered providers: Z.ai, Together AI, Novita, Fireworks and DeepInfra (Hugging Face paid the cost).
- Inference Providers gives one API that routes to many hosting providers of open models.
- You can set it up as the model backend for Pi, opencode, Codex, Claude Code or any coding agent.
Resources mentioned
- Hugging Face · website · huggingface.co · free · recommended by both Bashiri Smith & Melvin Vivas
Named in the prompt as a beginner-friendly but powerful AI platform for models used in AI projects.
Also in: llama.app: Run Local Models on a Mac Without the llama.cpp CLI (Melvin Vivas on X · notes), Grok Bot workflow: turn model-release posts into Colab notebooks (Melvin Vivas on X · notes), Generate Portfolio AI Project Ideas with Claude and Hugging Face Tasks (Bashiri Smith on Facebook · notes), EmbeddingGemma 2 released on Hugging Face (Melvin Vivas on X · notes) and 48 more - Hugging Face Inference Providers · tool · huggingface.co · check price
A unified API for calling open models hosted by many inference providers. - GLM 5.2 · tool · huggingface.co · free
A GLM-family LLM (the transcript says 'GLM-5-2') that the demo ranked as a strong, affordable model for coding and design.
Also in: Qwen3.8-Max on the Frontend Code Arena cost-performance frontier (Melvin Vivas on X · notes), Models That Work With the Hermes Agent for Personal Productivity (Melvin Vivas on X · notes), Open Model GLM 5.2 Helped Mitigate OpenAI-Caused Cyberattack (Melvin Vivas on X · notes), AI News Roundup: Claude Fable 5, Scientist AI, ZCode, NVIDIA RL (Melvin Vivas on X · notes) and 27 more - Z.ai (@Zai_org) on X · person · x.com · free
Official X account of Z.ai, maker of the GLM models and the GLM coding plan.
Also in: GLM-Legal: Z.ai's Legal-Domain Model Built on GLM-5.3-Flash (Melvin Vivas on X · notes), Open models now dominate token volume on Vercel AI Gateway (Melvin Vivas on X · notes), GLM 5.3 Open Weights Release Delayed for Framework Support (Melvin Vivas on X · notes), AI News Roundup: Claude Fable 5, Scientist AI, ZCode, NVIDIA RL (Melvin Vivas on X · notes) and 10 more - Together AI · tool · x.com · paid
Inference platform for hosting and calling open-weights models.
Also in: Fine-tune and Deploy Qwen3.8 27B on Together AI (Melvin Vivas on X · notes), Where to Access GLM 5.2: Inference Providers and Gateways (Melvin Vivas on X · notes), Where to Access GLM-5.2: Provider Roundup (Melvin Vivas on X · notes) - Novita · tool · novita.ai · check price
A cloud platform where you can call open models like the Qwen3.8 family through an API.
Also in: Qwen3.8 Model Family Now on Novita AI: Flash, 27B and 2.4T-A95B (Melvin Vivas on X · notes) - Fireworks AI · tool · x.com · free
Fireworks AI's official X account, which posts news about inference and serving open models.
Also in: FireRouter: cost-aware model routing between open models and Claude Opus (Melvin Vivas on X · notes), GLM 5.2 Hits 446 tok/s on Fireworks AI (Melvin Vivas on X · notes), GLM 5.2 Speed vs Opus 4.8 and GPT 5.5 (Melvin Vivas on X · notes), GLM 5.2 on Fireworks Makes Opus 4.8 and GPT 5.5 Feel Slow (Melvin Vivas on X · notes) and 4 more - DeepInfra · tool · deepinfra.com · paid
A cloud provider for model inference and GPUs.
Also in: DeepInfra raising GPU prices (Melvin Vivas on X · notes) - Pi · tool · x.com · free
A customizable coding agent that can be extended through its Extensions API and connected to several model providers.
Also in: 100-Iteration Autonomous Coding Loop with Local Qwen on an RTX 3090 (Melvin Vivas on X · notes), Pi Agent: A Highly Customizable Agent with Durable Sessions (Melvin Vivas on X · notes), Prompting an Autonomous Agent Loop: Be Specific, Show Visible Progress (Melvin Vivas on X · notes), Running an Overnight 100-Iteration Agent Loop with a Local Qwen Model (Melvin Vivas on X · notes) and 54 more - OpenCode · tool · x.com · free
Open-source terminal coding agent that can be configured with different model providers, including open models.
Also in: OpenCode Console Security Breach: Check Your Provider Keys (Melvin Vivas on X · notes), DeepSeek V4.1 Flash Now Free in OpenCode (Melvin Vivas on X · notes), OpenAI Makes GPT-6 Astra and GPT-6.1 Sol About 50% Faster (Melvin Vivas on X · notes), T3Code: a better interface for terminal coding agents (Melvin Vivas on X · notes) and 13 more - OpenAI Codex · tool · openai.com · paid · recommended by both Bashiri Smith & Melvin Vivas
OpenAI's coding agent. In the diagram it writes code, fixes review findings and drives the build loop. The creator also used it to make this video.
Also in: Developers moving from ChatGPT/Codex to Claude (Melvin Vivas on X · notes), Creator Opinion: Codex Is Still the Best at Computer Use (Melvin Vivas on X · notes), OpenAI Codex Ambassador applications are open (Melvin Vivas on X · notes), GPT-Live-1.1: Multilingual Voice Update for ChatGPT and Codex (Melvin Vivas on X · notes) and 264 more - Claude Code · tool · code.claude.com · paid · recommended by both Bashiri Smith & Melvin Vivas
Build agents and pipelines from the terminal; the guide's main agentic coding tool.
Also in: First impressions: Claude Code in the cloud is good and fast (Melvin Vivas on X · notes), Why Claude Code feels faster: gzipped turns and instant cloud sessions (Melvin Vivas on X · notes), Watch What Fills Your Coding Agent's Context and When to Clear (Melvin Vivas on X · notes), Claude Code's Right Sidebar and Context Breakdown (Melvin Vivas on X · notes) and 124 more
Try this
- Connect GLM-5.2 through Hugging Face Inference Providers to your coding agent (Pi, opencode, Codex or Claude Code).
More in LLM Fundamentals
- Use the Right Z.ai Endpoint for the GLM 5.2 Coding Plan
- GLM 5.2 Leads Open-Source Models on Datacurve's Deep SWE Leaderboard
- GLM 5.2 vs Opus 4.8 for Landing Page Design: 6x Cheaper
- Gemini 3.5 Live Translate: Real-Time Speech Translation via the Live API
- GLM-5.2 released: open weights, 1M context, two reasoning levels
- Running Local Models for Agents: Tool Use, Context and Quantization