Leaked DeepSeek API key or vanished balance: stop it, then trace it
Whatever a shared or leaked DeepSeek API key spends is charged to you, so revoke it first. Balance questions come next: most missing top-ups were paid into a different account.
API Keys page: trash bin icon, then Revokenow
Create a new API keynext
Replace it in your applicationsoon
Usage page, filtered by the old keycheck
Keys out of browser and client-side codealways
Revoke the exposed key on the API Keys page
DeepSeek strongly recommends revoking a compromised key immediately.
Find the key in the list, click the trash bin icon, then confirm Revoke in the dialog.
Then create a new key and swap it into your application as soon as possible.
The chat and the platform share one account; revoke the leaked key and give your app a new one.
What the leaked key spent
On the Usage page, pick the time range in «Time» and the key in «API Key»; the results can be exported.
Fees and losses from sharing or leaking a key are yours alone.
When more than the key was exposed
The Open Platform and the chat service use the same account.
So if the account itself may be in other hands, close every session: Settings → Account settings → Log out of all devices.
Then reset the password with «Forgot Password» under password login.
Unauthorized use of the account should be reported to DeepSeek immediately.
Reading 401 and 402
401: authentication failed because of a wrong API key.
402: the balance has run out — check it and add funds on the Top up page.
A 401 right after the swap points at the key your app sends, not at your balance.
Granted, topped up and missing balance
Top up online via PayPal, bank card, Alipay or WeChat Pay on the «Top Up» page.
Topped-up balance does not expire; granted balance is spent first when you have both.
The balance endpoint reports the total, including granted and topped-up balance.
A missing top-up usually means you paid with a different account than the one you’re signed in to.
Deleting the account forfeits any unused developer balance, so refund it before you delete.
A deactivated and re-registered account is separate: its old balance can’t be transferred, but a refund can be requested by ticket.
Getting unspent money back
Unused balances can be refunded; for online payments, sign in to the platform and go to Billing → Refunds.
The refund covers all remaining unspent balance in one lump sum; partial refunds aren’t offered and spent amounts aren’t returned.
A serious breach of the platform terms can cost you any unconsumed balance.
We use cookies to collect data to improve your experience on our website. Read our usage policy cookies You can
your preferences at any time.
Website data collection settings
We use data collected through cookies and JavaScript libraries to improve your browsing experience, analyze website traffic, deliver personalized advertising, and improve the overall performance of our website.
Substantial
We use browser cookies that are necessary for the website to function properly. For example, we store your website data collection settings so that we can comply with them if you return to our website. You can disable these cookies in your browser settings, but if you do so, the website may not function as intended.
Marketing and analytics
To understand user behavior in order to provide you with a more relevant browsing experience or to personalize content on our website. For example, we collect information about which pages you visit to help us provide more relevant information.
Advertisement
To personalize and measure the effectiveness of advertising on our website and other websites. For example, we may show you personalized ads based on the pages you visit on our website.
Do you still have questions?
Let me hear them! 😊
Need help?
If you have questions or need assistance, our support team is ready to help you.