Last reviewed: November 15, 2026.
DeepSeek API billing uses a prepaid account balance. You add funds, and billable API usage reduces that balance.
This guide covers the direct DeepSeek API. If an application sends requests through another provider, check that provider’s account and billing terms. An app using your own DeepSeek API key can consume the balance associated with that key.
| What you need | Where to start |
|---|---|
| Add funds | Top Up |
| Find a payment | Billing |
| Review consumption | Usage |
| Request an invoice | Billing → Invoices |
| Request an online-payment refund | Billing → Refunds |
| Check available funds from code | GET /user/balance |
The account navigation above follows the official DeepSeek Help Center. Keep the payment record, account balance, and usage report together when investigating a charge.
How DeepSeek API billing works
The documented API payment model is usage-based: funded balance pays for services as you consume them. DeepSeek’s Open Platform Terms explain prepayment and allow service suspension when funds are insufficient.
A top-up is money added to the account. An API charge is consumption deducted afterward. For example, adding $20 does not mean you used $20 of model inference that day; some or all of it may still be available.
Your account can contain topped-up balance and granted balance. DeepSeek’s deduction rules prioritize granted funds when both are available. Review the grant actually shown in your account rather than budgeting around an assumed signup credit.
The Help Center states that topped-up funds do not expire. Granted funds can have an expiration: the balance API reports only grants that remain valid. Keep those two categories separate when planning a funding buffer.
How to top up your DeepSeek API account
- Sign in to the account that owns the API key your application uses.
- Open Top Up and choose an amount offered by the current checkout.
- Review the currency, credited amount, and final payment total.
- Complete payment using an available method.
- Check the payment record and confirm the expected funds are available before launching a large job.
DeepSeek’s Help Center lists PayPal, bank cards, Alipay, and WeChat Pay. Use the options displayed for your account; a listed method does not guarantee that every card or transaction will be accepted.
What US customers should check at checkout
Keep three amounts distinct: the API credit you intend to buy, the total shown before payment, and the final amount on your payment statement. Check any displayed taxes or payment-provider charges and confirm the currency before submitting.
Use the minimum and maximum amounts shown in your current checkout. For a first project, fund a small representative workload, measure its consumption, and use that evidence to decide how much operating balance you need.
If a payment appears to have gone through but the balance looks wrong, check the original login account first. DeepSeek identifies account mismatches as a common explanation in its Help Center. Compare the order record before submitting another payment.

Check your balance and API usage
Find consumption by API key
On the Usage page, select the reporting period under Time and the credential under API Key. The Help Center documents an Export option that downloads a ZIP with two CSV files; the amount file contains usage by key.

For a useful comparison, use the same account, currency, and time interval in every record. If your application logs UTC but your reporting view uses another time zone, align the boundaries before comparing daily totals.
Check available funds with the balance API
Developers can query Get User Balance. In a Bash-compatible terminal, with your key already stored in DEEPSEEK_API_KEY:
curl --silent --show-error --max-time 30 \
"https://api.deepseek.com/user/balance" \
--header "Authorization: Bearer $DEEPSEEK_API_KEY"

| Field | How to read it |
|---|---|
is_available | Whether the balance is sufficient for API calls. |
currency | The currency of an entry in balance_infos; the schema allows USD and CNY. |
total_balance | Current available funds, combining topped-up and valid granted amounts. |
granted_balance | Granted funds that have not expired. |
topped_up_balance | The currently reported topped-up portion. |

Amounts are returned as strings. Use decimal arithmetic if you calculate with them, and keep different currencies separate. The endpoint is a current-balance snapshot, so use your reporting records to investigate historical spending.
A successful balance check does not reserve funds for your next job. Other requests can spend money after the check, so a busy application needs its own coordination when enforcing a budget.
Request an invoice or correct invoice details
Open Billing → Invoices to apply. The official Help Center also documents cancellation and reissue on that page, plus a Remarks field for relevant usage details.
Before submitting, check the billing identity, address, transaction information, and currency requested by the form. For business expenses, confirm that the available document meets your organization’s requirements before making a large payment.
An invoice, a payment confirmation, and a usage export serve different purposes. Save the payment record to explain the money paid, and attach the matching usage report when you need to explain what the application consumed. Adding a note to an invoice does not replace that reconciliation.
Refunds and unused API balance
For unused paid balance from an online top-up, start with Billing → Refunds. For a corporate bank-transfer payment, follow the refund-ticket route linked from the official Help Center.

Section 6.3 of the Open Platform Terms makes refunds subject to review. If approved, DeepSeek refunds all remaining unspent funds in a single payment after deducting necessary costs such as handling fees. Partial refunds are unsupported, and spent amounts are not refundable under that provision.

Read the amount and conditions shown when you apply. Neither a refund request nor the original top-up amount establishes how much will be returned. If your application is still active, pause or redirect its billable work before requesting a refund that would remove its operating funds.
How DeepSeek calculates API charges
For model requests, separate cached input, uncached input, and output. Apply the rate for the selected model and pricing period to each category, using the current official pricing table. When rates are quoted per million tokens:
Model charge =
(cache-hit input tokens × cache-hit rate
+ cache-miss input tokens × cache-miss rate
+ output tokens × output rate)
÷ 1,000,000

The token-usage guide recommends relying on returned usage for actual counts. Word counts and character estimates are useful for planning, but they do not establish the charge for a completed request.
Read usage without counting the same tokens twice
For the Chat Completions API, prompt_tokens equals prompt_cache_hit_tokens plus prompt_cache_miss_tokens. The prompt_tokens_details.cached_tokens value repeats the cached-input count; it is not another input category.
completion_tokens is the output total. The completion_tokens_details.reasoning_tokens breakdown is already included, so adding it again would overstate your estimate. Likewise, multiplying total_tokens by one rate loses the distinction between the three billing categories.
Caching is best effort. Use the reported hit and miss counts instead of assuming that a repeated prompt always earns the lower rate. The context-caching guide explains how reusable prefixes are handled.
A worked example using published rates
The following is an illustrative request, calculated with DeepSeek Flash off-peak USD rates reviewed on November 15, 2026. It is not a record of an actual account charge.
| Component | Example usage | Rate per 1M tokens | Calculated amount |
|---|---|---|---|
| Cached input | 8,000 | $0.003 | $0.000024 |
| Uncached input | 2,000 | $0.15 | $0.000300 |
| Output, including reasoning | 1,000 | $0.60 | $0.000600 |
| Total model charge | 11,000 tokens | — | $0.000924 |
If 600 of the 1,000 output tokens were reasoning tokens, the total would stay the same. At those exact usage quantities and rates, 1,000 such requests would cost $0.924 in model usage. Separate billable services would be additional.
Keep full precision in your own calculations. Rounding each $0.000924 request to cents would show $0.00 and hide meaningful spending when many requests are added together.
Peak and off-peak billing
The current schedule lists peak periods of 01:00–04:00 and 06:00–10:00 UTC, Monday through Friday, excluding Chinese public holidays. Other times are off-peak. Recheck the official pricing page before scheduling work around a rate difference.
For a US schedule, convert the UTC date and time to your actual time zone. Daylight saving changes the offset, and an early UTC interval can fall on the previous local date. Preserve the timestamp and applicable rate in your cost records.
Charges for search, files, OCR, and speech
The billing unit depends on the service. Check the endpoint your application actually calls, especially when a framework performs several operations for one user task.
| Service | Billing basis | What to check |
|---|---|---|
| Model-triggered web tools | Model token usage | Search results and fetched material can add to the context. |
| Standalone Search and Fetch APIs | Successful requests | A billable request must return HTTP 200 with usable results or page content. |
| Document parsing | Pages successfully parsed at upload | Referencing the document later adds model input tokens without another parsing fee. |
| OCR | Successfully recognized pages | Use page_count; the reported OCR token counts are informational. |
| Text to speech | Billed characters | Use the service’s character-counting rules, including spaces. |
| Speech to text | Audio duration | Fractions of a second are rounded up to a second for billing. |
Since November 18, 2026, at 04:00 UTC, model-triggered server-side search and web-fetch operations have no separate tool fee. The Search and Fetch billing rules distinguish them from standalone endpoint requests, which remain billed per successful use.
For a document workflow, track both the successful parsing operation and later model requests. That explains why uploading a document once can still be followed by further charges when users ask questions about its content.
Can an unsuccessful request still cost money?
The answer depends on the service and how far processing progressed. DeepSeek’s content-safety documentation says tokens consumed before a refusal are billed. With high-level safety review enabled, rejected input returning HTTP 400 is still billed at the cache-hit input rate.
Safety-review tokens are included in output usage and also reported as a breakdown. Do not add that breakdown again. For OCR, disconnecting the client does not cancel processing; completed recognition can remain billable. Diagnose the specific outcome before assuming that an error, empty answer, or lost connection means zero cost.
Reconcile payments, balance, and consumption
Use one currency and a defined reporting interval. Collect the opening balance, credited payments, grants, consumption, and any confirmed refunds, expirations, or adjustments. This reconciliation is a checking method, not a claim that the balance endpoint returns a transaction ledger.
Closing balance =
Opening balance
+ Credited top-ups
+ New grants
- API usage charges
- Refunded principal removed from the balance
- Expired grants
± Other confirmed adjustments
For this hypothetical USD example, the opening $6 includes an unused $0.75 grant that expires before the later top-up and consumption:
| Account movement | Amount |
|---|---|
| Opening available balance | $6.00 |
| Old unused grant expires | −$0.75 |
| Top-up credited to the API account | +$20.00 |
| New grant | +$2.00 |
| API consumption | −$7.25 |
| Expected closing balance | $20.00 |
This example assumes no refund or other adjustment. It uses the amount credited to the API balance, which you should match to the account record. Any separately stated payment fee belongs in your payment reconciliation as well.
If your result differs from the platform, first compare the date boundaries, key filters, currency, and recorded adjustments. A balance difference around one request cannot isolate that request’s cost when other jobs use the account at the same time.
Capture final usage when streaming
For a normally completed Chat Completions stream, DeepSeek documents usage on the last chunk before [DONE]. Record that final usage once. The current format does not emit a separate usage-only chunk with empty choices; see the streaming reference.
For the Anthropic-compatible Messages API, use final message_delta.usage rather than adding it to the initial usage. Its input_tokens excludes cached input, which is reported separately as cache_read_input_tokens.
If final usage is missing, mark the local estimate as unresolved and compare it with account reporting. Keep request identifiers and error details. Some web-tool generation failures return usage with the error, so capture that evidence too.
Fix payment problems and billing-related API errors
| What happened | What to check | Next action |
|---|---|---|
| The card or payment method was declined | The checkout message, final amount, billing details, and any restriction reported by your payment provider | Resolve the reported payment problem before another attempt. |
| A payment appears charged, but the expected credit is missing | The payment record, its status, and the signed-in account | Retain the transaction reference and ask official support to trace it if the records do not match. |
402 Insufficient Balance | Available funds for the account behind the key in use | Fund the correct account, confirm the credit, then retry. |
401 Authentication Fails | The credential and provider endpoint | Correct the key or connection; a top-up does not repair authentication. |
429 Rate Limit Reached | Request frequency, concurrency, and endpoint limits | Pace the workload; distinguish this from exhausted balance. |
| Consumption is higher than expected | Model, rate period, cache misses, output totals, repeated calls, and separately billed services | Compare usage records for the affected period and key. |

The API diagnoses above follow DeepSeek’s error-code reference. Repeatedly retrying a 402 cannot replenish the account. A fresh API key also does not, by itself, add balance.

For payment reconciliation, confirm the transaction state before creating another charge. Avoid assuming that a notification from a card issuer proves the expected API credit is already available.
Control spending before a balance problem interrupts work
Use the following application controls where they fit your workload. They are implementation recommendations, separate from any controls currently offered in your DeepSeek account.
- Track spending by project. Use identifiable keys and retain the request’s model, timestamp, usage, and outcome.
- Set an application budget. Check it before starting work and coordinate reservations across concurrent jobs.
- Bound expensive tasks. Limit output length, agent iterations, repeated tool calls, and automatic retries.
- Monitor remaining funds. Choose a replenishment threshold based on measured usage and the time needed to restore funding.
- Reconcile regularly. Compare local estimates with the platform’s usage and account records.
Check your signed-in account for any automatic-recharge, notification, or spending-limit options before relying on them. A balance alert only tells you about a condition; enforcement must actually stop or limit new work. A per-key usage report likewise does not establish a per-key spending cap.
Protect the credential that can incur charges. The API terms explicitly caution against exposing keys in browser or other client-side code. Store secrets on the server and replace a key if it has been exposed.
What to send DeepSeek billing support
The official terms list [email protected] and the signed-in product’s Contact us option. For a payment or balance issue, provide enough information to match the records:
- The affected account and a short description of the problem.
- The transaction or order identifier, amount, and currency.
- The timestamp and time zone, plus the payment method.
- A redacted payment confirmation and the relevant platform record.
- For an API failure, the error code and request identifier, when available.
Exclude full API keys, passwords, and complete card details. State what you expected and what the records show—for example, a completed top-up with no matching credited balance—so the support team can investigate the specific discrepancy.
