minimax-m2.1-free crashes via /zen/v1/chat/completions (missing input_tokens) actually a Zen/server issue. #8301

Open
opened 2026-02-16 18:09:38 -05:00 by yindo · 1 comment
Owner

Originally created by @ProbabilityEngineer on GitHub (Feb 2, 2026).

Originally assigned to: @fwang on GitHub.

Description

Body:
• Endpoint: POST https://opencode.ai/zen/v1/chat/completions
• Model: minimax-m2.1-free
• Request: {"model":"minimax-m2.1-free","messages":[{"role":"user","content":"ping"}],"max_tokens":1}
• Result: HTTP 500, body:
Cannot read properties of undefined (reading 'input_tokens')
• Control: same request with glm-4.7-free returns 200 and includes usage.prompt_tokens etc.
• cf-ray: 9c7952284cf10f99-EWR (from your failing headers)

Plugins

vanilla install

OpenCode version

v1.1.4b

Steps to reproduce

curl -sS -D /tmp/headers.txt -o /tmp/body.txt
-H "Authorization: Bearer $OPENAI_API_KEY"
-H "Content-Type: application/json"
https://opencode.ai/zen/v1/chat/completions
-d '{
"model":"minimax-m2.1-free",
"messages":[{"role":"user","content":"ping"}],
"max_tokens":1
}'

echo "=== HEADERS ==="
sed -n '1,30p' /tmp/headers.txt
echo
echo "=== BODY ==="
cat /tmp/body.txt

Screenshot and/or share link

No response

Operating System

macos 26.2

Terminal

warp (zsh)

Originally created by @ProbabilityEngineer on GitHub (Feb 2, 2026). Originally assigned to: @fwang on GitHub. ### Description Body: • Endpoint: POST https://opencode.ai/zen/v1/chat/completions • Model: minimax-m2.1-free • Request: {"model":"minimax-m2.1-free","messages":[{"role":"user","content":"ping"}],"max_tokens":1} • Result: HTTP 500, body: Cannot read properties of undefined (reading 'input_tokens') • Control: same request with glm-4.7-free returns 200 and includes usage.prompt_tokens etc. • cf-ray: 9c7952284cf10f99-EWR (from your failing headers) ### Plugins vanilla install ### OpenCode version v1.1.4b ### Steps to reproduce curl -sS -D /tmp/headers.txt -o /tmp/body.txt \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ https://opencode.ai/zen/v1/chat/completions \ -d '{ "model":"minimax-m2.1-free", "messages":[{"role":"user","content":"ping"}], "max_tokens":1 }' echo "=== HEADERS ===" sed -n '1,30p' /tmp/headers.txt echo echo "=== BODY ===" cat /tmp/body.txt ### Screenshot and/or share link _No response_ ### Operating System macos 26.2 ### Terminal warp (zsh)
yindo added the bugzen labels 2026-02-16 18:09:38 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 2, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10760: MiniMax-M2.1 fails with "cannot unmarshal string" - Another MiniMax M2.1 API error on Zen service

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Feb 2, 2026): This issue might be a duplicate of existing issues. Please check: - #10760: MiniMax-M2.1 fails with "cannot unmarshal string" - Another MiniMax M2.1 API error on Zen service Feel free to ignore if this doesn't address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8301