GLM 4.7 Flash Heretic
A community-abliterated, open-weights variant of GLM-4.7-Flash built for fast inference, reasoning, and tool use with relaxed refusal behavior.
Overview
What is GLM 4.7 Flash Heretic
GLM 4.7 Flash Heretic is a community-modified, open-weights text model derived from Z.AI's GLM-4.7-Flash. It uses a mixture-of-experts architecture and is optimized for fast reasoning, function calling, and web search. The 'Heretic' variant applies abliteration to reduce refusals while preserving core capabilities, and it runs privately on Venice with zero prompt retention.
Running it privately on Venice
On Venice, GLM 4.7 Flash Heretic runs under a private, zero-retention tier — your prompts are not stored or used for training. It is an open-weights, FP8-quantized model that supports tool use, reasoning, and structured JSON output, making it a permissionless choice for agentic workflows without Big-Tech surveillance. You pay only for tokens consumed, with no subscription lock-in.
Assessment
Strengths and limitations
- Extremely low API cost ($0.07 in / $0.40 out per 1M tokens) for a capable reasoning and tool-use model.
- Open-weights MIT license enables self-hosting, fine-tuning, and full stack sovereignty outside closed APIs.
- Native support for tool use / function calling, reasoning, web search, and structured JSON output for agentic workflows.
- 200K context window and 24K max output handle long documents and extended generations.
- Community abliteration strips automated refusal behavior, improving utility for creative and sensitive prompts compared to the base model.
- Community-modified rather than officially released by Z.AI, so updates, safety patches, and support depend on the contributor.
- Exact parameter counts and active-expert ratios vary across third-party reports, complicating precise hardware planning for self-hosting.
- FP8 quantization on Venice trades a small amount of precision for inference speed versus full-precision weights.
- Text-only: no vision, audio, or multimodal input support.
- Abliteration can occasionally weaken instruction-following or remove useful guardrails on edge-case prompts.
Capabilities
What it supports
- Tool use / function calling
- Vision (image input)
- Reasoning
- Web search
- Code-optimized
- Structured output (JSON schema)
- Audio input
- Video input
- Multiple image inputs
- Log probabilities
Specifications
Datasheet
- Maker
- Olafangensan (community modification of Z.AI GLM-4.7-Flash)
- Released
- February 2026
- Architecture
- Mixture-of-Experts (MoE)
- Parameters
- ~30B total / ~3B active per token
- Modality
- Text input, text output
- License
- MIT
- Open weights
- Yes — downloadable from Hugging Face
- Context window
- 200K tokens
- Max output
- 24K tokens
- Capabilities
- Function calling, Reasoning, Web search
- Privacy on Venice
- Private — zero retention
- Available on Venice since
- Feb 2026
API
Call it from your code
Venice exposes an OpenAI-compatible API. Point your base URL at Venice and pass the model id.
curl https://api.venice.ai/api/v1/chat/completions \
-H "Authorization: Bearer $VENICE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "olafangensan-glm-4.7-flash-heretic",
"messages": [{ "role": "user", "content": "Explain quantum tunneling simply." }]
}'Pricing
What it costs on Venice
Billed per token on Venice: $0.07 per 1M input tokens and $0.40 per 1M output tokens.
New Venice accounts include a free daily allowance and 500 welcome credits — no credit card required.
Alternatives
How it compares
| Model | Context window | Open weights | Price (Venice) | Best for |
|---|---|---|---|---|
| GLM 4.7 Flash Heretic | 200K tokens | Yes | $0.07 in · $0.40 out / 1M | Fast agentic coding & reasoning |
| DeepSeek V3.2 | 160K tokens | Yes | $0.33 in · $0.48 out / 1M | General reasoning & coding |
| GLM 5.1 | 200K tokens | Yes | $1.10 in · $4.15 out / 1M | Long-context GLM flagship |
| Google Gemma 4 31B Instruct | 256K tokens | Yes | $0.12 in · $0.36 out / 1M | Lightweight open instruct |
Ultra-cheap open-weights MoE with tool use, reasoning, and web search.
Use cases
What it is good for
- 01High-volume agentic coding and tool-calling workflows where per-token cost dominates the budget.
- 02Long-context document analysis, summarization, and extraction within the 200K window.
- 03Private, open-weights inference for teams that want sovereign control over model weights and data.
- 04Rapid prototyping with structured output and reasoning for form filling, validation, and multi-step logic.
- 05Creative writing and roleplay that benefit from lower refusal rates and more permissive generation.
Prompting
Getting better results
Provide explicit JSON schemas when requesting structured output to maximize parseable accuracy.
Enable reasoning mode for debugging or multi-step logic, but expect slightly higher latency.
For tool use, define function signatures clearly — the model handles parallel function calling well.
Long-context prompts benefit from context caching; cached input is billed at $0.04 per 1M tokens.
If the model over-thinks on simple queries, set a lower max output length or disable reasoning.
Version history
Z.AI base model.
Community abliterated variant released on Hugging Face.
FAQ
Frequently asked questions
GLM 4.7 Flash Heretic is a community-modified text model derived from Z.AI's GLM-4.7-Flash. It is an open-weights, mixture-of-experts model optimized for fast reasoning, function calling, and web search, with abliteration applied to reduce refusal behavior.
Venice charges $0.07 per 1M input tokens and $0.40 per 1M output tokens. Cached input is $0.04 per 1M tokens. There is no subscription required; you pay only for what you use.
It is not free, but it is extremely inexpensive. At $0.07/$0.40 per 1M tokens, it is one of the cheapest capable reasoning models on Venice. You only need Venice credits to run it.
Yes. The weights are released under an MIT license on Hugging Face and can be downloaded for self-hosting. On Venice it is served as an open-weights, FP8-quantized endpoint.
Yes. Venice's endpoint supports tool use and function calling, reasoning, web search, and structured JSON output. These capabilities make it suitable for agentic workflows.
GLM 4.7 Flash Heretic is far cheaper and faster for high-volume coding and tool use. GLM 5.1 is the newer flagship with stronger overall performance but costs significantly more. Choose the Heretic variant for cost-efficient agents and GLM 5.1 for maximum quality.
It runs under Venice's private, zero-retention tier. Your prompts are not stored, profiled, or used for training. Venice does not build a conversation history from your requests.
'Heretic' refers to the Heretic abliteration method used by the community contributor Olafangensan. It is an open-source technique designed to strip automated refusal behavior while aiming to preserve the base model's reasoning and coding capabilities.
Run GLM 4.7 Flash Heretic privately
No prompt logging. No data used for training.