Skip to content

[Bug] opencode-go returns AI_APICallError: Insufficient Balance on deepseek-v4-pro and deepseek-v4-flash despite active Go subscription with 50% usage remaining #27598

@r3vs

Description

@r3vs

Bug Report

Provider: opencode-go
Endpoint: POST https://opencode.ai/zen/go/v1/chat/completions
Affected models: deepseek-v4-pro, deepseek-v4-flash
Go subscription status: Active, ~50% usage remaining


Error from logs

ERROR service=llm providerID=opencode-go modelID=deepseek-v4-pro
  error={"error":{"name":"AI_APICallError","url":"https://opencode.ai/zen/go/v1/chat/completions", ...}}
  stack=AI_APICallError: Insufficient Balance

Same error occurs for deepseek-v4-flash (which also consumes Go subscription quota — it is not free via opencode-go).


Key observation

Provider Model Consumes quota Result
opencode-go deepseek-v4-pro Go subscription Insufficient Balance
opencode-go deepseek-v4-flash Go subscription Insufficient Balance
opencode (Zen, non-Go) deepseek-v4-flash-free Free ✅ Works

Note: deepseek-v4-flash-free is only free when accessed via providerID=opencode (Zen). Via opencode-go, deepseek-v4-flash consumes Go subscription quota. Both paid Go models fail while the Zen free model works — this confirms the issue is with the opencode-go backend's upstream DeepSeek account balance, not the user's personal quota or API key.

Multiple API keys have been tried. /connect was redone from scratch. The problem persists across all keys.


Steps to reproduce

  1. Active OpenCode Go subscription with usage remaining
  2. Configure providerID=opencode-go, modelID=deepseek-v4-pro (or deepseek-v4-flash)
  3. Send any request
  4. Receive AI_APICallError: Insufficient Balance from https://opencode.ai/zen/go/v1/chat/completions

Expected behavior

Requests to opencode-go with remaining subscription quota should succeed.


Notes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions