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 · x.com · free · recommended by both Bashiri Smith & Melvin Vivas
Platform for hosting and finding ML models, datasets and papers. The quoted post says LocateAnything was trending there.
Also in: Using an ML agent to train an open-source TTS model on your voice (Melvin Vivas on X · notes), Deploy Open-Source Models with Hugging Face Inference Endpoints (Melvin Vivas on X · notes), Deploying Qwen3.8 27B on Hugging Face Inference Endpoints (Melvin Vivas on X · notes), Using Hugging Face credits: Jobs, Inference Endpoints and Open Models (Melvin Vivas on X · notes) and 38 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: 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), Trying ZCode by Z.ai with GLM 5.2 on a Mac (Melvin Vivas on X · notes) and 9 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 · check price
An inference provider for open models. - 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: Sign in with ChatGPT: Setting Usage Limits for Each App (Melvin Vivas on X · notes), Pi reaches v1.0 (Melvin Vivas on X · notes), Claude Code mods: customize behavior and UI with plugins (Melvin Vivas on X · notes), Customizing Your Coding Setup with Pi Coding Agent Extensions (Melvin Vivas on X · notes) and 39 more - OpenCode · tool · x.com · free
Open-source terminal coding agent that can be configured with different model providers, including open models.
Also in: T3Code: a better interface for terminal coding agents (Melvin Vivas on X · notes), OpenCode Go: Open Coding Models (DeepSeek, Qwen, Kimi, GLM) for $10/mo (Melvin Vivas on X · notes), Trying OpenCode Go After Upgrading OpenCode (Melvin Vivas on X · notes), Orchestrator + Subagents in opencode with Open Models (Melvin Vivas on X · notes) and 10 more - OpenAI Codex · tool · openai.com · paid
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: An agent bot that installs and drives Codex on its own (Melvin Vivas on X · notes), Asking a Coder bot to install Codex (Melvin Vivas on X · notes), Sign in with ChatGPT: Setting Usage Limits for Each App (Melvin Vivas on X · notes), Codex Cloud Environments Must Be Saved & Published Before Use (Melvin Vivas on X · notes) and 240 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: Create Claude Code Plugins with /plugin-authoring (Melvin Vivas on X · notes), Claude Code mods: customize behavior and UI with plugins (Melvin Vivas on X · notes), AI Engineer Roadmap Overview: From ML Foundations to RAG, Agents & Ops (Bashiri Smith on Facebook · notes), SkillsBento: Free Plugin Marketplace for Codex and Claude Code (Melvin Vivas on X · notes) and 101 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