Pasting/Sending image to ZEN fails with Bad Request #2776

Closed
opened 2026-02-16 17:37:12 -05:00 by yindo · 3 comments
Owner

Originally created by @mneuhaus on GitHub (Nov 11, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

when i try doing any kind of prompt that includes a image i get a "bad request" response in opencode.

Tried with Kimi K2 and GLM-4.6 same issue.

Latest 1.0.55 opencode

OpenCode version

1.0.55

Steps to reproduce

  1. choose ZEN as provider with Kimi K2 or GLM-4.6
  2. send a image through cmd+v (MacOSX) as prompt
  3. response: "Bad Request"

Screenshot and/or share link

Image

Operating System

MacOS Sequoia 15.3.1

Terminal

Ghostty

Originally created by @mneuhaus on GitHub (Nov 11, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description when i try doing any kind of prompt that includes a image i get a "bad request" response in opencode. Tried with Kimi K2 and GLM-4.6 same issue. Latest 1.0.55 opencode ### OpenCode version 1.0.55 ### Steps to reproduce 1. choose ZEN as provider with Kimi K2 or GLM-4.6 2. send a image through cmd+v (MacOSX) as prompt 3. response: "Bad Request" ### Screenshot and/or share link <img width="1677" height="1021" alt="Image" src="https://github.com/user-attachments/assets/b64cc1cb-c3bc-4a70-a812-2c4f8a2f7406" /> ### Operating System MacOS Sequoia 15.3.1 ### Terminal Ghostty
yindo closed this issue 2026-02-16 17:37:12 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 11, 2025):

@mneuhaus those models don't support images so that's why it fails

We can adjust our code to handle this more gracefully tho

@rekram1-node commented on GitHub (Nov 11, 2025): @mneuhaus those models don't support images so that's why it fails We can adjust our code to handle this more gracefully tho
Author
Owner

@mneuhaus commented on GitHub (Nov 11, 2025):

ah, ok. My Bad then 😆
But yea, a more informative Response than "Bad Request" would be neat

@mneuhaus commented on GitHub (Nov 11, 2025): ah, ok. My Bad then 😆 But yea, a more informative Response than "Bad Request" would be neat
Author
Owner

@rekram1-node commented on GitHub (Dec 9, 2025):

This should be fixed now

@rekram1-node commented on GitHub (Dec 9, 2025): This should be fixed now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2776