If you want the lowest cost per token, choose MiniMax-M4 ($0.77/$3.08 per 1M). If you are building coding agents or repo-scale automation, choose GLM-5.4. If your workload is image- or video-heavy, choose Qwen4-Max. All three offer a 1M context window and are available from the same OpenAI-compatible endpoint, so you can route per task without changing your integration.
| Model | Provider | Parameters | Context | Input / 1M | Output / 1M | Best for |
|---|---|---|---|---|---|---|
| GLM-5.4 | Zhipu AI | Loop Transformer, 2-3T-class | 1M (128K out) | $1.25 | $4.00 | Coding agents, repo migrations, long research loops |
| MiniMax-M4 | MiniMax | 2.74T total / 66B active MoE, open-weight | 1M (256K out) | $0.77 | $3.08 | High-volume reasoning, long documents, cost-sensitive agents |
| Qwen4-Max | Alibaba | 2.4T multimodal flagship | 1M (262K thinking) | $1.425 | $4.275 | Image/video understanding, tool use, long-context analysis |
Prices are NovAI list prices at publish time, taken from the machine-readable feed at /pricing/media-pricing.json. The transparency record documents 0% platform markup versus provider list price.
GLM-5.4 is Zhipu AI's November 2026 flagship. Its Loop Transformer executes the same 28-layer stack twice, which lets it reach 2-3T-parameter-class capability at a lower serving cost. It ships with a 1M context window, 128K maximum output, always-on reasoning at the highest effort tier, and native vision input. In practice that combination targets autonomous software engineering: multi-file refactoring, repo-level migrations, and plan-execute-revise research agents that need to hold a large amount of state.
GLM-5.4 model page and API details →
MiniMax-M4 is a 2.74T-parameter mixture-of-experts model with 66B active parameters per token, released with open weights. It offers 1M context and 256K maximum output, plus multimodal reasoning across text and images. Because only 66B parameters are active, it is the cheapest of the three to run and a good default for high-volume reasoning, long-document analysis, and agent loops where per-token cost dominates the bill.
MiniMax-M4 model page and API details →
Qwen4-Max is Alibaba's 2.4T-parameter flagship in the Qwen4 generation. It adds native image and video understanding to the Qwen family, with a 1M context window, a 262K maximum thinking chain, parallel tool calling, structured output and web search support. If your product ingests screenshots, charts, product photos or video frames, this is the model in this group built for that input.
Qwen4-Max model page and API details →
Token prices only matter when you apply them to a workload. Consider a product that processes 10M input tokens and 2M output tokens per month - a realistic size for a mid-size support or analysis agent:
| Model | Input cost | Output cost | Monthly total |
|---|---|---|---|
| GLM-5.4 | 10 × $1.25 = $12.50 | 2 × $4.00 = $8.00 | $20.50 |
| MiniMax-M4 | 10 × $0.77 = $7.70 | 2 × $3.08 = $6.16 | $13.86 |
| Qwen4-Max | 10 × $1.425 = $14.25 | 2 × $4.275 = $8.55 | $22.80 |
For a single 1M-input-plus-1M-output request, the three cost $5.25, $3.85 and $5.70 respectively. None of the three list a cache-pricing tier at launch, so budgeting is simple: count input and output tokens and apply the table above.
| Workload | Recommended | Why |
|---|---|---|
| Autonomous coding agents, multi-file refactors | GLM-5.4 | Always-on reasoning, 128K output, Loop Transformer depth |
| Repo-level migrations and long agent loops | GLM-5.4 | 1M context plus forced high-effort reasoning |
| High-volume classification, extraction, summarization | MiniMax-M4 | Lowest input and output price, open-weight lineage |
| Long-document analysis and research assistants | MiniMax-M4 | 1M context, 256K output, low cost per document |
| Screenshot, chart, product-image understanding | Qwen4-Max | Native vision with strong multimodal training |
| Video frame analysis and visual QA | Qwen4-Max | Native video understanding in the model |
| Tool-using agents with structured output | Qwen4-Max or GLM-5.4 | Parallel tool calling and structured output support |
All three models are available at https://aiapi-pro.com/v1 with the OpenAI-compatible chat-completions schema. Switching models is a one-line change of the model field - no separate SDKs, accounts or contracts.
from openai import OpenAI
client = OpenAI(
api_key="sk-your-novai-key",
base_url="https://aiapi-pro.com/v1",
)
resp = client.chat.completions.create(
model="glm-5.4", # or "minimax-m4" / "qwen4-max"
messages=[{"role": "user", "content": "Refactor this module and explain the diff."}],
)
print(resp.choices[0].message.content)
Or with curl:
curl https://aiapi-pro.com/v1/chat/completions \
-H "Authorization: Bearer $NOVAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"minimax-m4","messages":[{"role":"user","content":"Summarize this document."}]}'
MiniMax-M4 at $0.77 input and $3.08 output per 1M tokens. GLM-5.4 is $1.25/$4.00 and Qwen4-Max is $1.425/$4.275.
GLM-5.4. The Loop Transformer, always-on reasoning, 128K output limit and native vision make it the strongest fit for autonomous repo-level work.
Qwen4-Max, which has native image and video understanding on a 2.4T-parameter multimodal backbone.
No. NovAI is built for global developers: email signup, $2 free trial, card or USDT top-up.
They are provider list prices passed through at 0% markup, published at /pricing/media-pricing.json and documented at /transparency.html.
Sign up for $2 in free credit, call all three models with your existing OpenAI SDK, and compare cost and quality on your own workload.
Start free →Related reading: best long-context LLM APIs · Qwen3.8-Max API guide · GLM-5.2 API guide · MiniMax API tutorial · GLM-5.4 · MiniMax-M4 · Qwen4-Max