#402 `Insufficient Balance` error when using deepseek-v4-flash

11 messages · Page 1 of 1 (latest)

final geyser
#

this is the error i get

openai.APIStatusError: Error code: 402 - {'error': {'message': 'Provider returned error', 'code': 402, 'metadata': {'raw': '{"error":{"message":"Insufficient Balance","type":"unknown_error","param":null,"code":"invalid_request_error"}}', 'provider_name': 'DeepSeek', 'is_byok': False}}, 'user_id': 'user_2tDvfUkvnoIfWZAr7gBcidgH8cj'}

ive been getting this for the past hour

ashen summitBOT
#

I'm an AI assistant - my answers may be incorrect and I cannot see screenshots. Please verify information with the OpenRouter docs.

The error message "Insufficient Balance" with code 402 means your OpenRouter account has a negative or zero credit balance, so requests—even to free models—will be blocked until your balance is above zero. As stated in the documentation:
"If your account has a negative credit balance, you may see {HTTPStatus.S402_Payment_Required} errors, including for free models. Adding credits to put your balance above zero allows you to use those models again."
LLMs Full Docs

What to do:

  • Check your OpenRouter dashboard for your current balance.
  • Add credits to your account to resume access.
  • If you believe this is a mistake or you have a positive balance, contact [email protected] (note: support is only available if you have spent at least $10; otherwise, continue seeking help on Discord).

If you need further help, please provide:

  1. Your current account balance.
  2. The exact model identifier (you wrote "deepseek-v4-flash"—please confirm).
  3. If you recently added credits, when did you do so and did the error persist after?

These details will help mods diagnose the issue if escalation is needed.

-# This is an automated response powered by Answer HQ. Use !mute to stop the bot from responding, or !close when your question is resolved.

final geyser
#
  • my balance is 71.73
  • the model is deepseek-v4-flash
  • i have autoload
ashen summitBOT
#

Thanks for providing those details.

Since your balance is $71.73 and you're still getting a 402 Insufficient Balance error with the deepseek-v4-flash model, this should not be happening. The official docs state:
"If your account has a negative credit balance, you may see {HTTPStatus.S402_Payment_Required} errors, including for free models. Adding credits to put your balance above zero allows you to use those models again."
LLMs Full Docs

And the model's pricing page confirms that deepseek-v4-flash is a paid model.

Next steps:

  • Since you have a positive balance and autoload enabled, but are still receiving this error, this may be a bug or account-specific issue.
  • For billing or account issues, please email [email protected] with your account details. Billing issues are not handled on Discord, as per policy.

If you have spent less than $10 lifetime on OpenRouter, email support may not be available; in that case, let the mods know in this Discord for further help.

Full pricing and model info: DeepSeek V4 Flash Pricing
General OpenRouter docs: LLMs Full Docs

-# This is an automated response powered by Answer HQ. Use !mute to stop the bot from responding, or !close when your question is resolved.

gilded parrot
#

I'm seeing the same issue (while having credits); it looks like they still haven't fixed the bug that passes through the credit failure when they run out of credits on the Openrouter side

viscid merlin
gilded parrot
#

Hopefully, yeah

digital escarp
#

any update here?

#

was hitting same issue earlier

cosmic lava
#

it's fixed

final geyser
#

@cosmic lava to be clear, did u fix:

  • the API error showing "Insufficient Balance" instead of showing "Rate limited". So I will still get API errors but this time with the right error message
  • the upstream balance/rate limits that openrouter itself was subject to