Skip to content

deepseek-v4-flash-free (zen) 429 FreeUsageLimitError on EVERY request from 3 distinct IPs, with and without official client headers #42074

Description

@cubelitblade

Summary

When calling https://opencode.ai/zen/v1/chat/completions with model deepseek-v4-flash-free using plain curl (or any non‑official HTTP client), every direct API request I tried returns HTTP 429:

{"type":"error","error":{"type":"FreeUsageLimitError","message":"Error from provider (Console): Rate limit exceeded. Please try again later."}}

However, the official OpenCode TUI (opencode CLI) works fine from the same network environment.

Environment

  • opencode version: 1.18.16
  • Platform: FedoraLinux-44 (WSL on Windows 11), terminal: Windows Terminal
  • Provider: opencode / model deepseek-v4-flash-free

Steps to reproduce

  1. POST to https://opencode.ai/zen/v1/chat/completions (also /responses) with Authorization: Bearer <valid key>, model=deepseek-v4-flash-free.
  2. Observe HTTP 429 with body:
    {"type":"error","error":{"type":"FreeUsageLimitError","message":"Error from provider (Console): Rate limit exceeded. Please try again later."}}
  3. Repeat from different network origins and with official headers.

What I verified

  • Tried three distinct exit IPs (AWS proxy, direct IPv4, direct IPv6) – all get 429 immediately, no IP‑based blocking.
  • Also tested with OpenCode-related headers such as:
    • x-opencode-client
    • x-opencode-version

Key observation

The official OpenCode TUI succeeds while direct OpenAI-compatible API calls fail consistently.

This suggests that there may be a difference in:

  • endpoint routing,
  • authentication flow,
  • request headers,
  • or backend handling between the TUI and direct API usage.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions