Skip to content

insufficient balance in free model #35142

Closed

Description

@Cebonk03

Description

┃
┃ helo
┃

┃
┃ Insufficient Balance
┃

 ▣  Sisyphus - Ultraworker · DeepSeek V4 Flash Free

┃
┃
┃
┃ Sisyphus - ·DeepSeek V4 Flash Free OpenCode· ma
┃ Ultraworker Zen x
┃

Plugins

ohmyopenagent

OpenCode version

1.17.13

Steps to reproduce

  1. prompt
  2. insufficient balance

Screenshot and/or share link

https://opncd.ai/share/jv2U528o

Operating System

ubuntu 24.04

Terminal

No response

Activity

  1. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

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

    If your issue is the same, please add a comment there instead so we can track it in one place.

  2. PHDiniiz commented on Jul 3, 2026

    @PHDiniiz

    Same here

  3. fintantopton commented on Jul 3, 2026

    @fintantopton

    just happened to me too. guess our fun just ended 😭

  4. PHDiniiz commented on Jul 3, 2026

    @PHDiniiz

    IA bubble is breaking? .-.

  5. Crqptx commented on Jul 3, 2026

    @Crqptx

    Having the same issue as we speak...

  6. CoreBedtime commented on Jul 3, 2026

    @CoreBedtime

    DeepSeek V4 Pro in OpenCode Go getting "Bad Gateway" error

  7. Em-Ant commented on Jul 3, 2026

    @Em-Ant

    Deepseek V4 Flash Free and Big Pickle (on Ubuntu 24.04)

    Internal error: Insufficient Balance: {
    "service": "session",
    "errorName": "APIError"
    }

    other free models work

  8. PHDiniiz commented on Jul 3, 2026

    @PHDiniiz

    Someone using Big Pickle too?

  9. CopperEagle commented on Jul 3, 2026

    @CopperEagle

    Same behavior here too, DeepSeek V4 Flash Free and Big Pickle return "Insufficient Balance"...

  10. Crqptx commented on Jul 3, 2026

    @Crqptx

    Deepseek V4 Flash Free (on Ubuntu 24.04)

    Internal error: Insufficient Balance: { "service": "session", "errorName": "APIError" }

    other free models work

    Deepseek V4 Flash Free - Not working
    Big Pickle - Not working

    North Mini Code Free - Working
    MiMo V2.5 Free - Working
    Nemotron 3 Ultra Free - Working

  11. PHDiniiz commented on Jul 3, 2026

    @PHDiniiz
    Image
  12. whilmarbitoco commented on Jul 3, 2026

    @whilmarbitoco

    guess we cant have it free forever

  13. CopperEagle commented on Jul 3, 2026

    @CopperEagle

    guess we cant have it free forever

    Sure... still let's keep an eye on the docs, the affected models are still denoted "free" right now...

  14. Omitze commented on Jul 3, 2026

    @Omitze

    guess we cant have it free forever看来我们不可能永远免费。

    indeed

  15. 12 remaining items

  16. ammarfitwalla commented on Jul 3, 2026

    @ammarfitwalla

    alot of us are building something using ai which is great! can we open to discuss on what are we all building as developers?

  17. Unamelable commented on Jul 3, 2026

    @Unamelable

    alot of us are building something using ai which is great! can we open to discuss on what are we all building as developers?

    Self-esteem fund (its empty)

  18. Crqptx commented on Jul 3, 2026

    @Crqptx

    I checked around in the source files, ran some raw web requests against the endpoint, and saw exactly what's going on. The 402 Payment Required error is only happening on the DeepSeek models.

    Here is what the endpoint returns:

    {
      "error": {
        "message": "Error from provider (DeepSeek): Insufficient Balance",
        "type": "unknown_error",
        "param": null,
        "code": "invalid_request_error"
      }
    }
    

    HTTP Status: 402

    Quick Status Breakdown

    • 🟢 mimo-v2.5-free ➔ 200 OK
    • 🔴 deepseek-v4-flash-free ➔ 402 Payment Required (Upstream wallet empty)
    • 🟢 nemotron-3-ultra-free ➔ 200 OK
    • 🔴 big-pickle ➔ 402 Payment Required (Upstream wallet empty)
    • 🟢 north-mini-code-free ➔ 200 OK

    Steps to Reproduce

    Linux & macOS (Bash / Zsh)

    export OPENCODE_API_KEY="YOUR_API_KEY"
    
    curl -s -w "\nHTTP Status: %{http_code}\n" -X POST "https://opencode.ai/zen/v1/chat/completions" -H "Content-Type: application/json" -H "Authorization: Bearer $OPENCODE_API_KEY" -d '{"model":"deepseek-v4-flash-free","messages":[{"role":"user","content":"hi"}],"max_tokens":100}'
    

    Windows 11 (PowerShell)

    $env:OPENCODE_API_KEY="YOUR_API_KEY"
    
    curl.exe -s -w "`nHTTP Status: %{http_code}`n" -X POST "https://opencode.ai/zen/v1/chat/completions" -H "Content-Type: application/json" -H "Authorization: Bearer $env:OPENCODE_API_KEY" -d '{"model":"deepseek-v4-flash-free","messages":[{"role":"user","content":"hi"}],"max_tokens":100}'
    

    Windows 11 (Command Prompt / CMD)

    set OPENCODE_API_KEY=YOUR_API_KEY
    
    curl -s -w "\nHTTP Status: %%{http_code}\n" -X POST "https://opencode.ai/zen/v1/chat/completions" -H "Content-Type: application/json" -H "Authorization: Bearer %OPENCODE_API_KEY%" -d "{\"model\":\"deepseek-v4-flash-free\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"max_tokens\":100}"
    
  19. romain-ai commented on Jul 3, 2026

    @romain-ai

    other free models are failing to, maybe from the load of deepseek users finding alternatives

  20. Crqptx commented on Jul 3, 2026

    @Crqptx

    other free models are failing to, maybe from the load of deepseek users finding alternatives

    Not sure I haven't had any issues testing just now. Could be a possibility of course.

  21. 297jun commented on Jul 3, 2026

    @297jun

    You can use it now.

  22. 297jun commented on Jul 3, 2026

    @297jun
    Image
  23. Crqptx commented on Jul 3, 2026

    @Crqptx

    You can use it now.

    Seems to be working for me again as well.

  24. 297jun commented on Jul 3, 2026

    @297jun

    Opencode is really great

  25. PHDiniiz commented on Jul 3, 2026

    @PHDiniiz

    Is back again! \o/
    Opencode is really great!!!!

  26. ammarfitwalla commented on Jul 3, 2026

    @ammarfitwalla

    YAAAAAAAAAAAYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

  27. whilmarbitoco commented on Jul 3, 2026

    @whilmarbitoco

    opencode the GOAT

  28. emirBytes commented on Jul 3, 2026

    @emirBytes

    opencode free models have limits too. and they reset within 5 hours i think.
    so just wait for 5 hours and come back. it works again for me too

    but do aware, that in the opencode docs, it says free models are free for a limited time.
    they are using the free models usage as a training ground for their models. when the
    training ends, it probably will no longer be free :(

  29. fwang commented on Jul 5, 2026

    @fwang
    Contributor

    should be working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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