1. "Free" is not a price; it is a set of constraints

The first question almost every new user asks about DeepSeek is how to use it for free. That question is framed wrongly. It treats free as one row in a price list, whereas free is in fact a bundle of constraints that drift with time of day, account, network location and usage pattern. Prices are static. Constraints are not: the same endpoint and the same person can answer instantly in the morning and queue in the afternoon; the same account can answer instantly on a home connection and start hitting limits on an office network; and the same model name on the official web tier may not correspond to the same thing you can call through the API.

So this article will not tell you how many free requests you get. Every concrete quota and rate-limit number is governed by official announcements and whatever the control panel shows in real time. That is rule number one here, and it is not excessive caution: such numbers have an extremely short half-life. They change with operating policy, with product shape, with regional policy, and any number written into an article keeps misleading people long after it expires, in a way that looks authoritative. What you can learn once and reuse forever is how to measure it yourself.

1.1 What free actually solves

Strip the word away and free answers exactly one decision question: for this particular interaction, are you willing to pay for one call and accept the data and contractual obligations that come with it. That is a completely separate question from whether the model is any good. Most damage comes from collapsing the two, producing the strategy "it is free, so let's just use it until it stops working" - which is correct during prototyping and catastrophic in production, because no migration buffer was ever reserved.

There is also a property of free that rarely gets stated plainly: it is a resource allocation mechanism, not a benefit. Any finite free capacity is allocated in one of only three ways - per account, per IP, or by queueing you into a time window. Those three mechanisms have three completely different engineering consequences, and section 3 takes them apart.

1.2 Four shapes of "free", and where each bill lands

At least four arrangements get called free: the official web chat experience, trial or promotional credit on the official API, free credit or trial money offered by third-party aggregator sites, and running open-weight models yourself. Each one has a different bill, and mixing them up guarantees bad arithmetic.

ArrangementWhat you payWhat you do not payWhere the real bill isRight stage
Official web free tierTime, queue waits, rework after interruptionsPer-call feesEngineer hours plus reworkExploration, learning
Official API trial creditIntegration work, account and key setupCalls covered by the creditIntegration cost plus the renewal invoicePrototyping, pre-canary traffic
Third-party aggregator free creditData passes through a third party, version uncertainty, no stability guaranteeCalls in some windows and on some modelsCompliance cost, vendor dependency costOne-off experiments without sensitive data
Self-hosted open weightsHardware, operations, a frozen model snapshotPer-call feesDepreciation and headcount, often counted as zeroConfidential, offline, stable high-volume work

The fourth row is the one most often skipped. Self-hosting is routinely described as "completely free", but the cost merely moves from the invoice to depreciation and salaries - and if the model falls behind and output quality suffers, you have paid the whole bill without receiving the continuous updates that a hosted free tier would have given you. That path deserves its own accounting and is only flagged in the boundary conditions of section 12.

1.3 What this article covers, and what it does not

It covers three things: the actual behavioural boundaries of the official free web tier (how throttling shows up, when queueing happens, which dimension throttling is attributed to), how to use and how to verify third-party aggregator free modes, and how to migrate smoothly onto the official API once free credit runs out. Each comes with a method you can execute.

It does not cover three things: a line-by-line API integration tutorial, a comparison of model capabilities, or any specific price and quota numbers. The first two are covered better elsewhere on this site; the third is a matter of principle - what follows is a verification path, not a figure to memorise.

2. The real boundaries of the official free web tier

Start with the conclusion: the free web tier is not a static allowance of N requests per day; it behaves much more like a service capacity allocated on demand. Under load it queues, it refuses once the queue exceeds some threshold, or it simply exposes a reduced feature set. Which one you meet depends on server-side policy at that moment, not on your account tier.

2.1 Three shapes of throttling

The first shape is queueing: the request is accepted, but a queue forms ahead of it and the interface shows "generating" with no first token for a long time. This is the best case, because at least the request entered a queue.

The second is a soft refusal: the interface shows a vague message about heavy load, or quietly switches you to a different model or a lower thinking strength. Because such messages carry no numbers, people tend to blame their own network.

The third is a hard failure: an error page, a request that hangs, or the same prompt failing on every retry. There is a crude but effective way to tell whether this is throttling: run the same prompt once through the API. If the API works and the web tier keeps failing, throttling is the likely explanation.

All three share one property: none of them tells you that you have been throttled, and none of them tells you how much credit is left. That is the single biggest structural difference from a paid API, where throttling arrives as an explicit status code and informative response headers.

2.2 Free tier versus paid API, dimension by dimension

To avoid confusion, the table below puts the two on the same scale. Note the caveat: all quotas, rates and prices in it are governed by official announcements and the live control panel; this table is a structural comparison only.

DimensionOfficial web free tierOfficial paid APIWhat you must do
AuthenticationWeb session with login state and device risk checksAPI key as a bearer tokenKeep session credentials and keys strictly apart
Rate limitingAllocated dynamically against service capacity; shows up as queueing or notices; metric definitions not publishedPer-account RPM/TPM style quotas with explicit status codes on excessNever infer API limits from web-tier experience
Credit visibilityUsually no exact remaining-allowance panelBalance and itemised usage in the consoleWhen you need precision, the console is the only source
ConcurrencyEffectively single-user interactiveProvided per quota, suitable for concurrency and batchNever run load tests against the web tier
Stability commitmentNo SLAPer the service terms, metrics per official pagesProduction paths need a degradation plan
Billing modelNo per-call invoiceBilled on input, output, cache hit versus miss, and time windowProve the flow on free credit, then reconcile cost on paid
Data handlingGoverned by platform terms, possibly including use for service improvementGoverned by API terms and contractKeep confidential data out of every trial channel
Model availabilityDecided by front-end configuration, changeable at any timeDecided by account entitlement and the API responseThe returned model list is the source of truth
AutomationGoverned by anti-automation policy; unsuitable for scripted callsBuilt for automationDo not script against the web tier

The last row deserves emphasis. Scripting high-frequency calls against the free web interface breaches the service terms, makes throttling stricter, and - worst of all - silently corrupts your experimental conclusions. The official web tier is a human interface, not a substitute API.

2.3 Time-of-day effects

If someone tells you "DeepSeek free access does not work", the most likely explanation is that they tested during one particular window. Free capacity is normally allocated against global load, so a single day contains periods that feel entirely normal, periods of visible queueing, and occasional soft refusals at peak. You can verify this yourself at very low cost: for a week, at fixed times each day, send one equally short request and record the results as a time series. You will get a saw-tooth curve.

That curve has two uses. First, it separates "the credit ran out" from "it is just busy right now" - if failures cluster in fixed windows, the cause is load, not exhaustion. Second, it supports a genuinely useful team convention: schedule verification tasks that must return reliably into the empirically observed quiet windows instead of leaving every engineer to guess.

One trap runs the other way: never use a single experiment to prove that free credit is sufficient. A developer testing at three in the morning sees a healthy service and then plans daytime high-concurrency work on that basis; the conclusion has no predictive value. Section 11 treats this class of failure in detail.

3. Is throttling per IP, per account, or per device?

This is the part of free usage most often answered by assumption. Most people believe throttling is per account because they registered one; a different group believes it is per IP. Reality is usually a combination of dimensions: account tier, client fingerprint, the reputation of the source network, current global load, and possibly properties of the request itself. Unless you measure, you never learn which rule you are actually under.

3.1 Three variables that must be separated

Establishing attribution requires changing one variable at a time. A minimal experimental design looks like this:

  • Change the IP, keep the account: from the same account, send the identical prompt from a home connection, an office network and a mobile network. If results differ, IP or its reputation is part of the rule.
  • Change the account, keep the IP: from the same network, try a freshly registered account. If results differ, the account dimension is in play.
  • Change the device, keep both: switch browser, change browser profile, clear local storage. If results differ, client-side identifiers participate.
  • Change nothing, change the time: repeat at a fixed interval for several rounds to build a time series that separates throttling from busyness.

If any of these four produces a significant difference, then no single workaround makes the path dependable, which means the path does not belong in production. What you need is predictability, and workarounds deliver the opposite.

3.2 The probe script

Measurement quality depends on converging the variables rather than on volume: identical payload, identical length, identical interval, every sample written to disk. The script below uses only the standard library and emits a CSV you can plot directly.

# probe_free.py - hit a free endpoint at a fixed cadence and record what happens
# Standard library only. Usage: python probe_free.py
import csv, json, time, datetime, urllib.request, urllib.error

ENDPOINT = "https://<your free endpoint>"      # point this at the endpoint you actually use
PAYLOAD = {"model": "<model identifier>",
           "messages": [{"role": "user", "content": "ping"}],
           "max_tokens": 16}
INTERVAL = 15      # seconds. Conservative: the goal is observation, not load
ROUNDS = 20
LOG = "free_probe.csv"

def now():
    return datetime.datetime.now(datetime.timezone.utc).isoformat(timespec="seconds")

rows = []
for i in range(ROUNDS):
    t0 = time.time()
    status, err, body_len, trace = 0, "", 0, {}
    try:
        req = urllib.request.Request(
            ENDPOINT,
            data=json.dumps(PAYLOAD).encode("utf-8"),
            headers={"Content-Type": "application/json"})
        with urllib.request.urlopen(req, timeout=90) as resp:
            status = resp.status
            body = resp.read()
            body_len = len(body)
            # Forensics: keep the rate-limit related headers verbatim
            trace = {k: v for k, v in resp.headers.items()
                     if k.lower().startswith(("x-ratelimit", "retry-after", "x-request-id"))}
    except urllib.error.HTTPError as e:
        status = e.code
        body_len = len(e.read())
        trace = {k: v for k, v in e.headers.items()
                 if k.lower().startswith(("x-ratelimit", "retry-after", "x-request-id"))}
    except Exception as e:
        # Timeouts and connection errors are indirect evidence of queueing too
        status, err = 0, type(e).__name__
    rows.append({"ts": now(), "round": i, "status": status,
                 "latency_s": round(time.time() - t0, 2),
                 "body_bytes": body_len, "err": err,
                 "ratelimit_headers": json.dumps(trace, ensure_ascii=False)})
    with open(LOG, "w", newline="", encoding="utf-8") as f:
        w = csv.DictWriter(f, fieldnames=list(rows[0].keys()))
        w.writeheader()
        w.writerows(rows)
    time.sleep(INTERVAL)

print("wrote", LOG, "with", len(rows), "rows")

If your workflow is command-line based anyway, the equivalent one-liner in curl is short, and it must record timestamps too:

curl -sS -o resp.txt -w 'ttfb=%{time_starttransfer} code=%{http_code} total=%{time_total}\n' \
  -H 'Content-Type: application/json' \
  -d '{"model":"<model identifier>","messages":[{"role":"user","content":"ping"}],"max_tokens":16}' \
  "$ENDPOINT"

3.3 Where folklore and measurement disagree

Measurement almost always overturns popular beliefs. Three typical examples:

  • "Just register another account" often works exactly once.Many platforms correlate accounts through device fingerprints, so a new account on an old device is recognised as the same operator and the limit follows it.
  • "Switch the IP" often works in only half the cases.Datacenter and proxy egress addresses are frequently marked as low trust wholesale; a residential dynamic address does not mean trusted either.
  • "Longer requests get throttled" is usually false.Many limits act on concurrency and frequency, not length; but if a content-side policy is involved, long requests really can be blocked.

The point of writing these down is simple: never treat any evasion trick as a capability you can depend on. They only make today's run succeed more often; they do not make the path operable. Production needs predictability, and evasion delivers unpredictability.

4. The hidden cost of free access: waiting, lost context, re-asking

The most expensive part of free access rarely appears on an invoice; it appears on an engineer's calendar. This section splits that cost into three measurable pieces.

4.1 Waiting is the cost nobody budgets

A call that costs milliseconds on a paid API can cost seconds or minutes on the free web tier. Multiply that by a few dozen interactions a day and waiting shifts from "mildly annoying" to "consumed a morning". Worse, waiting destroys attention: when a queued request finally returns, the person has already switched tasks and must re-read the thread to continue. The expensive part is not the waiting itself but the context reconstruction it forces.

It is easy to quantify. Record time-to-first-token and time-to-completion for every turn. The difference between the free path and the paid path at P95, multiplied by daily interaction count, is the weekly labour cost of choosing free. Put that number into the comparison table and free stops being free.

4.2 When a throttled turn is cut, context goes first

A subtle trap of the free web tier: session history is not always retained completely. This is rarely documented, yet the engineering impact is large. You get "the model seems to have forgotten the code I just gave it" or "it asked me for the requirements again even though I pasted them". Most people conclude the model got dumber; in fact the previous turn was interrupted and the context never persisted.

The cure is not retrying, it is externalising state: write the task description, the constraints and the settled conclusions into a self-contained block that opens every request, and persist it to disk regularly. Then rebuilding after an interruption costs one paste rather than one act of recall. The same discipline matters more once you move to the API.

4.3 "Testing once for free" quietly changes your conclusions

This is the most underrated side effect of free access and deserves its own section.

Queueing and failure on a free path are selective: short requests, simple requests and cache-friendly prefixes get through more easily; long chains, many turns, heavy reasoning and complex context get blocked more often. So the "this works well" conclusion you reach on a free path was derived on a subset biased toward easy tasks and filtered by successful samples.

Worse, when a request fails, people tend to "rephrase and try again" until one goes through. That surviving sample was hand-picked by a human, not drawn at random. You are evaluating the model through a selection mechanism while the conclusion looks unbiased.

Hidden costHow to measure itTypical on a free pathTypical on a paid pathGovernance action
Queue waitTime-to-first-token P50/P95Rises sharply at peak, high varianceStable, bounded by quotaSchedule work by time window
Context rebuildTokens re-supplied manually per turnConstraints restated after interruptionsRarely neededExternalise state to disk
Failed retriesFailed requests over successful onesElevated, concentrated on complex requestsClose to zeroAccount failures separately
Hand-picked samplesProvenance of requests in the eval setBiased toward the easy subsetClose to randomSeparate eval set from dev set
Conclusion driftDifferences between two runs of the same promptHigh, mistaken for model instabilityLowFix temperature and seed conventions

The fourth row is the one to fear most: treating an availability conclusion produced on a free path as a production availability conclusion is the most common misuse of free access. There is exactly one correction: after migrating to the API, re-run the same evaluation set and quantify the difference between the two sides. That difference is the real output of your "free trial".

5. Third-party aggregators: usable, but the cost is billed elsewhere

Third-party aggregators are a major source of free access. They expose many providers behind one OpenAI-style endpoint, and many of them hand out trial credit or free quotas. The path works. Its cost simply does not appear on the price line.

5.1 What an aggregator actually provides

An aggregator provides a combination of three things: a unified entry point, its own routing and metering, and a set of upstream channels. Those upstreams might be direct reseller arrangements with official APIs, might be resold again down the chain, might mix in self-hosted open weights, and might include capacity obtained through channels that are not official at all. What sits behind a model name on the site is not something the site is obliged to tell you.

The unavoidable consequence: the stability of a third-party free quota is determined by the site's upstream quality and cash position, not by the model vendor. It can disappear one morning with nothing in the official announcements, because from the vendor's point of view nothing happened. For a production path that is a single point of failure with no monitoring, no contract and no fallback.

5.2 The model version may be stale, and behaviour drifts

The second issue is version. Aggregators typically follow an upstream upgrade some time later and usually do not tell you which snapshot they switched to. More subtly: they may only be rewriting the model name in the request body while routing to a different weight snapshot than the official model of the same name. You see success, correct formatting, a plausible answer - and you may have been served an older snapshot, or a service with modified default sampling parameters.

Such differences have a characteristic signature: a prompt that reliably produces a given format on the official endpoint occasionally drifts on the aggregator. The reliable diagnostic is to send the same set of requests to both endpoints and compare response structures rather than answer text - answer text floats with sampling, whereas the fields in the response envelope are the contract.

5.3 Three accounts: billing, privacy, availability

Recording the cost of third-party free access as three separate ledgers keeps the word "free" from misleading you.

LedgerWhat you actually payThe point most often missedHow to offset it
BillingFree windows convert to metered usage; the site's own metering rules applyThe site's billing definition may differ from the official one, so invoices are not directly comparableReconcile against the official pricing page and console invoices
PrivacyPrompts and attachments pass through the site and its upstreamsThe site may additionally log complete requests for debugging or secondary useKeep sensitive content out; request a data-processing statement when needed
AvailabilityThe site can vanish, retire models or change limits with no notice periodFree channels are often tightened or closed before paid onesTreat aggregators permanently as an experiment lane; keep the official path as the only production route
MigrationInterface shape, error codes, parameter names and tool-call formats can all differParameters that worked on the aggregator may not exist on the official APIKeep the adapter minimal and express differences explicitly in configuration

The migration row is the least discussed and the most expensive to discover late. Aggregators accept extra parameters for compatibility - finer thinking-strength tiers, additional sampling knobs - while the official interface exposes a different parameter set. A parameter you tuned on the aggregator can fail outright on the official side with an unknown-parameter error. Write the adapter against the smallest interface that both sides can validate rather than accumulating conveniences from the aggregator.

6. Verifying whether an aggregator is really the official API

Verification is not about unmasking a vendor; it answers one engineering question: can I depend on this path behaving a certain way. Six observable signals follow, each with a way of checking it.

6.1 Six observable signals

  • Response envelope structure: a stable set of top-level fields (model identifier, creation time, finish reason, usage breakdown, request id). Missing, renamed or extra fields are all signals.
  • Model identifier echo: if the name you sent differs from the name echoed back, the site is performing routing translation and the name you use is not the name being served.
  • Usage accounting shape: are input, output, cache hit and cache miss separated? A single aggregate token count means the official accounting was not passed through and your cost cannot be reconciled.
  • Error semantics: are out-of-range, authentication and quota-exceeded errors distinguishable by status code and error body? Mapping everything onto one 500 erases the error contract.
  • Response headers: request identifiers and retry hints are highly distinctive. The snippets in this section perform local logging and display only; they involve no attempt to bypass any site's access controls.
  • Behavioural agreement: how often do the same structurally constrained requests produce structurally different results on the official side versus the aggregator?

6.2 The self-check script

The script below turns five of those signals into a single side-by-side run. It calls both endpoints using credentials you already hold legitimately, and prints a comparison. It is a diagnostic tool, not an attack tool: ordinary requests only, no load generation, no bypassing, and no touching of other people's data.

# check_aggregator.py - does the aggregator behave like the official API?
# Idea: ignore the marketing, compare responses to observable differences
import json, time, hashlib, urllib.request, urllib.error

STATION  = "https://<aggregator host>"
OFFICIAL = "https://api.deepseek.com"
STATION_KEY  = "<aggregator key>"
OFFICIAL_KEY = "<official key>"
MODEL   = "<same model identifier on both sides>"

def call(base, key, prompt):
    body = {"model": MODEL,
            "messages": [{"role": "user", "content": prompt}],
            "max_tokens": 32, "temperature": 0}
    req = urllib.request.Request(
        base.rstrip("/") + "/chat/completions",
        data=json.dumps(body).encode("utf-8"),
        headers={"Content-Type": "application/json",
                 "Authorization": "Bearer " + key})
    t0 = time.time()
    try:
        with urllib.request.urlopen(req, timeout=60) as r:
            d = json.loads(r.read().decode("utf-8"))
            return {"ok": True, "status": r.status,
                    "latency_s": round(time.time() - t0, 2),
                    "headers": {k: v for k, v in r.headers.items()},
                    "model_returned": d.get("model"),
                    "usage_keys": sorted((d.get("usage") or {}).keys()),
                    "finish_reason": d.get("choices", [{}])[0].get("finish_reason"),
                    "shape": hashlib.sha256(
                        json.dumps(d.get("choices"), sort_keys=True,
                                   ensure_ascii=False).encode("utf-8")).hexdigest()[:16]}
    except urllib.error.HTTPError as e:
        return {"ok": False, "status": e.code,
                "err_body": e.read().decode("utf-8", "replace")[:300]}
    except Exception as e:
        return {"ok": False, "status": 0, "err": repr(e)}

PROMPT = "answer with one word only: ok"
a = call(STATION,  STATION_KEY,  PROMPT)
b = call(OFFICIAL, OFFICIAL_KEY, PROMPT)
print("aggregator:", json.dumps(a, ensure_ascii=False, indent=2))
print("official  :", json.dumps(b, ensure_ascii=False, indent=2))

# Verdicts (tune the thresholds to your situation; these are not standards)
if a.get("usage_keys") != b.get("usage_keys"):
    print("verdict: usage shape differs -> the invoice cannot be aligned with official billing")
if a.get("model_returned") != b.get("model_returned"):
    print("verdict: model echo differs -> the site performs routing translation")
if a.get("finish_reason") != b.get("finish_reason"):
    print("verdict: finish reason differs -> generation policy or parameter defaults differ")

6.3 The checklist, and the cases you cannot settle

The observations above become a directly tickable checklist. If any row is red, that path must not carry real business data.

CheckWhat to observeHealthy signalDanger signalHow to test
Response envelopePresence of top-level and usage fieldsSame fields as officialFields missing or renamedCompare key sets
Model identifier echoSent name versus echoed nameIdentical, or mapping explainedEcho unrelated to requestRead the model field in the response
Usage accountingInput/output/cache separatedItemised and structurally identicalOne aggregate totalCompare usage key sets
Error semanticsRange/auth/quota distinguishableDistinct codes and bodiesEverything becomes 500Send one deliberately out-of-range request
Response headersRequest id and limit hints presentStable and correlatable with logsEntirely absentPrint all response headers
Behavioural agreementStructural difference rate on constrained promptsZero differencesOccasional format driftRun one prompt 20 times and compare shapes
StabilityAvailability over 24 hoursNo interruptionRandom failures or full shutdownOne minimal request per hour
Data termsRetention and training-use statementsClear and acceptableVague or missingRead the site's terms page
Exit pathAbility to move back to officialSmall adapter, validated both waysDeep coupling to site semanticsRun the same adapter with official credentials

Two classes of question are honestly undecidable. First, you cannot prove the upstream is the official API: even when every observable signal matches, all you have shown is behavioural agreement, not shared supply - the upstream may be a reseller, a mirror, or some other route. Second, you cannot prove by testing that data was not retained: that is a contractual and compliance question, answerable only through written terms and your own judgement.

So the honest form of the conclusion is this: "this path behaves like the official API and is acceptable for experiments with no sensitive data" - not "this path is safe and reliable enough for production". That difference is precisely what the phrase "real boundaries" in this article's title means.

7. What free access suits, and what it does not

The previous sections described constraints; this one gives decisions. There is one criterion: can a human absorb the failure of this task. If yes, use the free path. If no, it does not belong there.

7.1 Suitable: prototyping, occasional queries, learning

These three share a property: the output is read by a person, errors surface immediately, and the volume is too small to matter as load.

  • Prototyping: establishing whether a prompt produces the result you want. Here you need iteration speed rather than stability, and the web tier is genuinely faster - no code, no keys, no retry logic.
  • Occasional queries: a handful of questions a day, such as decoding an error message, translating a passage, comparing two phrasings. Waiting is acceptable and not worth an invoice and a monitoring setup.
  • Learning and exploration: mapping capability boundaries, trying styles and thinking strengths. The free path is arguably better here, because its slowness forces you to formulate the question properly instead of firing a burst of requests and letting the model guess.

Note the common factor: the cost of failure is near zero. A failed prototype means rewriting a prompt, a failed query means asking again, a failed exploration is itself a lesson. Free-path instability costs nothing in these cases.

7.2 Unsuitable: production paths, confidential data, batch work

The mirror image shares a different property: failures are not immediately visible.

  • Production paths: users are already waiting, your terms of service promise availability, and the free tier offers no SLA, no support ticket and no commitment. The correct production design is not to use free credit as the degradation path: the fallback should be "switch to a cheaper tier that is still covered by contract", never "switch to the free tier".
  • Confidential data: customer lists, contracts, unpublished patents, internal code, identity data. This should not enter any trial channel, because trial and free channels normally carry the most permissive data clauses in the whole document, frequently including use for service improvement.
  • Batch work: tens of thousands of classifications, extractions or annotations. Free-path rate limits stretch a task from hours into days, and a failure in the middle leaves no checkpoint, so you end up with a partial result set and no reliable way to tell which rows are missing.

7.3 An executable decision table

The table below makes the judgement operational. Use it in reviews.

Task typeRecommended pathWhyRisk control required
Prompt prototypingOfficial web free tierFastest iteration, failures are freeRe-run key conclusions once through the API
Ad-hoc daily queriesOfficial web free tierLow volume, acceptable waitsNone
Learning and explorationOfficial web free tierSlowness is a featureNone
Integration and debuggingOfficial API trial creditReal interface shape, real error semanticsUsage alerts so the credit is not burned
Low-frequency production featureOfficial paid APIFree credit can change at any timeBudget alerts plus a cacheable prefix
High-concurrency production featureOfficial paid APIConcurrency and quotas are contractualBackoff and circuit breaking
Offline batch processingOfficial paid API or self-hostingFree paths offer no checkpoints or throughputSharding, idempotency, resume files
Data involving customers, contracts, patentsOfficial paid API under contract, or private deploymentTrial and free clauses cannot carry itData classification and redaction review first
One-off external trialThird-party aggregator, if at allOnly with no sensitive data and tolerable failuresNever upload customer data
Teaching demos and public examplesOfficial API trial creditReproducible, no third party involvedFixed example datasets

How to use this table: find your row, then read the last column. People usually look only at the recommended path and ignore the controls, and the last column is what actually determines whether an incident happens.

One extra dimension deserves its own line: replayability. Replayable tasks, where the same input can be regenerated, are the right place to try a free path first. Irreplayable tasks, where a specific single attempt must succeed, belong on a channel with a commitment. This distinction is what makes the "validate on web, then ship on API" strategy usable at all.

8. Privacy and compliance: the concrete price of a free channel

This section avoids abstractions and works through concrete situations: what data goes in, and what it costs. Free and trial channels normally carry the most permissive clauses in the documentation, and you have to accept that first, or nothing else in this section can be evaluated.

8.1 Four categories that should never enter a free channel

First, customer and business lists.Customer rosters, user identifiers, order records and quote requests may be identifying even after masking, because combinations of fields can reconstruct a company or a person. Handing them to a third party trades access to business intelligence for a saving that cannot compensate for it.

Second, unpublished contracts and commercial terms.Contract text usually contains pricing, delivery dates, penalties and exclusivity clauses. If such content is used for service improvement, your counterparty may eventually see your bottom line. Contracts are also legal evidence, and a leak triggers legal process that cannot undo the disclosure.

Third, unpublished code and patent material.The damage from a code leak depends on how central the code is, not on how new it is. Core scheduling, pricing logic, risk rules and unpublished patent implementations are precisely the material whose subsequent handling is hardest to adjudicate, because you will not fully know where it was stored or how long it was kept.

Fourth, identity data and secrets.National identifiers, bank details, passwords, API keys and access tokens. The model should never see this material, and the free channel's most common capture method is "persist the full request for troubleshooting" - logs are the easiest place to find things afterwards.

8.2 What you actually hand over in a prompt

People assume they are sending one sentence. To a model, a request usually contains: system prompt, conversation history, attachments, retrieved context and your raw input. You see only the last sentence in the interface, but what is transmitted, recorded and retained is the whole package.

Three questions therefore deserve a self-check:

  • Does my prompt embed material that belongs in code?Pasting an exported CSV with the instruction "analyse this" is the classic case. "Write the aggregation logic, I will plug the data in myself" is a far better boundary.
  • Can retrieved context smuggle fields it should not carry?Retrieval chunks from internal documents often contain customer names as incidental text, and such contamination is nearly invisible in the answer.
  • Do attachments and screenshots hide sensitive details?A single log line in a screenshot, an internal hostname in a stack trace, a comment inside a code fragment - all of it is uploaded.

8.3 A data classification table and its handling rules

Data typeSensitivityPermitted pathsHandlingCommon mistake
Public documentation and public codeLowFree web, API trial, aggregatorsSend directlyNone
Internal general documentationMediumOfficial API under its termsApply a field whitelist firstPasting it into a third-party trial
Customer lists and business dataHighOfficial paid API under contract, or private deploymentRedaction, field filtering, audit trailAssuming "redacted means safe"
Contracts and commercial termsHighOfficial paid API under contract, or private deploymentExtract clause points instead of sending whole documentsPasting a whole contract for a summary
Unpublished code and patent materialVery highPrivate deploymentNever leaves the internal networkConvincing yourself to "try it out"
Identity data and secretsVery highNo model channel at allRemove before the request is builtPasting an API key into chat while debugging

The last row deserves a sentence of its own. Pasting an API key into a chat window is common, cheap and directly harmful - once a secret is inside model context it should be treated as compromised and rotated immediately. The correct procedure is to reproduce the problem with a placeholder first, then substitute the real key locally exactly once.

8.4 Fallbacks that actually work

If some data genuinely has to pass through a model but you do not want it in a free channel, three fallbacks exist, in order of preference:

  1. Reduce the volume of data that enters the model: send only the fields the conclusion depends on. Many "I must paste the whole table" requirements actually need three aggregated columns.
  2. Filter sensitivity locally: replace identifiers, phone numbers, amounts, addresses and secret-shaped strings with placeholders before the request is built. This is the cheapest and most effective line of defence, but the rules must be written per data type and cannot be copied blindly.
  3. Change the path: move to the official paid API under contractual terms, or deploy privately for the most sensitive material.

When none of the three is available, the correct conclusion is not "send it and hope" but this requirement should not be solved with a large language model.

9. When the credit runs out: migrating smoothly to the official API

Migration itself is not complicated; doing it without an incident is. Running out of free credit is not a surprise - it is a certainty - so the road should be repaired before the fuel runs out.

9.1 The four-stage path

The path has four stages, each with an explicit acceptance condition. Skipping any of them and shipping straight to production is the classic way free approaches fail.

StageGoalKey actionsAcceptance conditionRollback triggerCommon mistake
Stage 0: web validationConfirm the need is realTune the prompt on the official web tierAt least 4 of 5 runs of the same prompt meet the quality barNot applicableOne success is treated as proof
Stage 1: API integrationGet the path workingCall the official API with timeout and retry, record usageEnd-to-end success rate meets target; usage fields are readableNo production impactCopying the web prompt verbatim
Stage 2: parallel comparisonQuantify the differenceRun one sample set through both paths and compare structure and qualityDifference rate and quality delta are recorded as numbersNo production impactRunning the API once and shipping
Stage 3: rollout and optimisationEnter production under controlRamp gradually, add cache-friendly prefixes and budget alertsError rate, latency and unit cost are all within targetAny metric below threshold returns to the previous configurationOne-shot full cutover

Stage 2 is the one most often skipped and the most valuable. "It works" on a free path is a conclusion drawn from a filtered subset; re-running the same evaluation set on the API and measuring the difference is your real output. The differences usually come from three places: different default parameters (the thinking-mode switch, for instance), different context and truncation behaviour, and possible extra post-processing on the web side. Chasing those three down finishes most of the migration.

9.2 The minimal migration example

The code below is deliberately minimal: one thin adapter, one retry policy, one usage record. It is not meant to become your framework; it demonstrates what the smallest sensible migration skeleton looks like - anything that differs between the free path and the official API has to appear explicitly in configuration or code rather than being hidden behind a default.

# minimal_migrate.py - from ad-hoc calling to metered, reversible operation
import os, json, time, urllib.request, urllib.error

BASE = os.environ.get("DS_BASE", "https://api.deepseek.com")
KEY  = os.environ["DS_API_KEY"]
MODEL = os.environ.get("DS_MODEL", "<use a model id the API actually returns>")
MAX_RETRIES = 3

def chat(prompt, max_tokens=512, timeout=60):
    body = {"model": MODEL,
            "messages": [{"role": "user", "content": prompt}],
            "max_tokens": max_tokens}
    req = urllib.request.Request(
        BASE.rstrip("/") + "/chat/completions",
        data=json.dumps(body).encode("utf-8"),
        headers={"Content-Type": "application/json",
                 "Authorization": "Bearer " + KEY})
    for attempt in range(MAX_RETRIES):
        t0 = time.time()
        try:
            with urllib.request.urlopen(req, timeout=timeout) as r:
                d = json.loads(r.read().decode("utf-8"))
                usage = d.get("usage") or {}
                # Record only what affects cost and diagnosis
                print(json.dumps({
                    "model_returned": d.get("model"),
                    "prompt_tokens": usage.get("prompt_tokens"),
                    "completion_tokens": usage.get("completion_tokens"),
                    "cache_hit_tokens": usage.get("prompt_cache_hit_tokens"),
                    "cache_miss_tokens": usage.get("prompt_cache_miss_tokens"),
                    "latency_s": round(time.time() - t0, 2)
                }, ensure_ascii=False))
                return d
        except urllib.error.HTTPError as e:
            body_txt = e.read().decode("utf-8", "replace")[:200]
            # 4xx usually means the request is wrong; retrying only wastes quota
            if e.code not in (429, 500, 502, 503, 504):
                raise RuntimeError("non-retryable error %s: %s" % (e.code, body_txt))
            time.sleep(min(2 ** attempt, 8))
        except Exception:
            if attempt == MAX_RETRIES - 1:
                raise
            time.sleep(min(2 ** attempt, 8))
    raise RuntimeError("retries exhausted")

if __name__ == "__main__":
    out = chat("Explain in one sentence what an idempotent interface is.")
    print(out["choices"][0]["message"]["content"])

Three details in that skeleton are deliberate and worth naming.

  • The model name comes from the environment, not from a literal.Available model lists change, and a hard-coded name may already be rerouted or retired. Printing model_returned at startup puts the fact into your logs.
  • Only retryable errors back off.Retrying 4xx responses amplifies useless traffic and provokes stricter limits. Separating "the request is wrong" from "the server is temporarily unhappy" is something you should get right on day one.
  • Cache hit and miss are recorded separately.Those two counters may differ by an order of magnitude in price and they are the only basis for cost work. Without usage data, no cost optimisation is possible.

9.3 Canary, rollback and "switchable at any time"

Migration should behave like a switch that can be thrown back at any moment, not like an irreversible cut. Three minimum requirements:

  1. Configuration separated from code.Path, model, timeout and concurrency limits live in configuration, so switching channels requires no code change and no redeploy.
  2. Shadow requests.Let a small share of traffic hit the new path in the background, record the results and return nothing, and compare the two sides before switching.
  3. A standing rollback path.Rollback must complete within minutes and must not itself depend on whether any free credit remains.
  • The second requirement is often mistaken for "doubling the spend". Shadow traffic is tiny, typically one to five percent, and what it buys is certainty: if a systematic difference exists between the two paths, you find it here rather than in a customer complaint.

    10. After the migration: cache hits and the shape of your bill

    Money only becomes real after you move to the paid API. The free phase trains you to ignore invoices; the paid phase requires you to read usage. And the most counter-intuitive fact is this: what usually determines your bill is not which model you chose, but whether you placed the invariant parts of your prompt where they can be reused.

    10.1 Why the same system prompt can differ by an order of magnitude

    Leading interfaces split input billing into two categories: cache-hit input and cache-miss input, priced at different magnitudes. A hit requires the service side to recognise the prefix as reusable.

    The consequence is that a 3000-token system prompt resent verbatim on every call and never reused is billed at the miss rate every single time. If it is organised as a stable prefix that is kept byte-identical across calls, its marginal cost after the first hit drops by an order of magnitude. The same text, the same model and the same number of calls can produce bills an order of magnitude apart, and the only difference is whether the text sits in a position that can be reused.

    To be explicit about the caveat: the exact cache pricing ratio, the matching rules and the retention window are governed by the official pricing page and API documentation, and no numbers are given here. The structural conclusion, however, is stable: cache hit versus miss is a cost variable you can control with engineering decisions.

    10.2 Stable prefixes: put everything invariant at the front

    Making a prefix reusable takes three concrete steps.

    • Fix it at the front: system prompt, tool definitions and a few examples go first; volatile material (the user question, retrieved passages, timestamps) goes last. Reordering breaks prefix matching.
    • Keep it byte-stable: do not embed the current time, random identifiers, build numbers or trace ids inside the system prompt. Any per-request variation inside the prefix makes reuse impossible. Moving volatile information to the end matters more than anything else here.
    • Never rewrite it mid-flight: changing one word of wording invalidates reuse for everything after it.

    Two positive optimisations are easy to miss: tool descriptions should be short, since tool definitions are resent on every call and verbose descriptions are a recurring cost; and retrieved documents should be ordered stably, because reordering the same set of passages on every call destroys the prefix just as effectively.

    10.3 Reconcile with usage, not with intuition

    Cost discussion has to end in checkable numbers. The snippet below persists per-request usage and aggregates it by model and cache-hit bucket; paired with a response-header capture it answers three questions: where did the money go, what is the hit rate, and what are the limit semantics.

    # Usage reconciliation: aggregate by model and report cache hit rate
    # Standard library only. Requires minimal_migrate.py to have written usage_log.jsonl
    import json, collections, csv, os
    
    LOG = "usage_log.jsonl"
    if not os.path.exists(LOG):
        raise SystemExit("no usage log yet - run the minimal example script first")
    
    agg = collections.defaultdict(lambda: {"calls": 0, "hit": 0, "miss": 0, "completion": 0})
    with open(LOG, encoding="utf-8") as f:
        for line in f:
            rec = json.loads(line)
            a = agg[rec.get("model_returned") or "unknown"]
            a["calls"] += 1
            a["hit"] += rec.get("cache_hit_tokens") or 0
            a["miss"] += rec.get("cache_miss_tokens") or 0
            a["completion"] += rec.get("completion_tokens") or 0
    
    with open("usage_summary.csv", "w", newline="", encoding="utf-8") as f:
        w = csv.writer(f)
        w.writerow(["model", "calls", "cache_hit", "cache_miss", "completion", "hit_rate"])
        for k, a in sorted(agg.items()):
            denom = a["hit"] + a["miss"]
            rate = round(a["hit"] / denom, 4) if denom else "n/a"
            w.writerow([k, a["calls"], a["hit"], a["miss"], a["completion"], rate])
    print("wrote usage_summary.csv")

    And a header capture step, so you can correlate limits, request identifiers and retry advice:

    # Persist the full response headers for logging and diagnosis
    curl -sS -D headers.txt -o body.json \
      -w 'code=%{http_code} ttfb=%{time_starttransfer} total=%{time_total}\n' \
      -H "Authorization: Bearer $DEEPSEEK_API_KEY" \
      -H 'Content-Type: application/json' \
      -d '{"model":"<model identifier>","messages":[{"role":"user","content":"ping"}],"max_tokens":16}' \
      https://api.deepseek.com/chat/completions
    
    # Fields worth keeping: request id, remaining limit, retry advice
    grep -iE 'request-id|ratelimit|retry-after' headers.txt

    Two conclusions tend to be skipped. First, the request identifier must land in your own logs: without it, a user's "it failed" cannot be tied to a specific server-side event. Second, track the hit rate as a live metric rather than computing it afterwards. A hit rate falling from 0.8 to 0.2 is almost never a model problem - it is someone who put a timestamp inside the system prompt - and a metric surfaces that the same day, while an invoice surfaces it a month later.

    11. Failure modes: the ten ways free approaches break

    This section is the avoidance chapter. The ten failures below occur most often in real teams, and nearly all of them share one root cause: treating free access as a resource you can depend on for a long time rather than a temporary state with conditions attached.

    11.1 Data failures

    • Pasting a customer list into a free chat window.It happens at the moment someone asks the model to analyse a spreadsheet. The data has now left a boundary you control, usually with no log to inspect.
    • Pasting an API key into chat while debugging.A key inside model context must be treated as compromised and rotated. The correct procedure is to reproduce with a placeholder first.
    • Assuming redaction equals safety.Masking a phone number as 138****8000 can still be reversed across a dataset; keeping the birthplace in an identifier can pinpoint a person. Redaction needs per-data-type rules, not a blanket mask.
    • Sending internal documents to an aggregator.Using an aggregator to summarise the company wiki hands internal documents to a channel you do not control.

    11.2 Engineering failures

    • Using one success to prove free credit is enough.A three-in-the-morning success has no predictive value for daytime production load.
    • Treating the free tier as a production degradation plan.During an incident, switching to the free tier turns "service unavailable" into "service even more unavailable". The fallback must be a cheaper tier that is still under contract.
    • Load testing against the web tier.This breaches the terms, tightens the limits and corrupts your own experimental conclusions.
    • Copying web-tier prompts verbatim during migration.The web tier may default behaviours differently (thinking mode, strict structured output). Copying them means production decisions are being made by implicit defaults. The differences must be quantified in stage 2.

    11.3 Organisational failures

    • Nobody owns "when does the free credit run out".Exhaustion always arrives suddenly, because nobody is watching. The fix is a usage alert.
    • "Free" ends up in a customer proposal.Once the word appears, the customer hears "forever".
    • Judging an aggregator by gut feel.Without the checklist, decisions rest on impressions, and impressions always lean towards "if it works, it works".
    Failure modeTypical symptomRoot causeCountermeasureRecoverable afterwards
    Customer data enters free chatDiscovered after the factNo data classification rulesField whitelist plus sensitivity review before sendingNo - treat as disclosed
    Secret pasted into chatOdd usage or an odd invoiceDebugging in a hurryReproduce with a placeholder, then rotateYes, but rotation is mandatory
    Insufficient redactionData still reconstructibleBlanket masking instead of targeted rulesWrite rules per data typeNo
    One success treated as evidenceBroad failure after launchSample size and timing unrepresentativeFixed-cadence time seriesYes, at the cost of a wasted cycle
    Free tier used as fallbackOutage compoundsNo cheaper tier under contractDegrade only inside the contractNo
    Load testing the web tierThrottled and misleading resultsTreating an interactive UI as an APILoad tests go through the API onlyYes, just re-test
    Web prompt copied verbatimBehaviour differs from expectationImplicit defaults never made explicitCompare item by item in stage 2Yes
    Credit exhaustion unmonitoredSudden service stopNo usage alertingAlerts plus budget capsYes, but users were already affected
    "Free" written into a proposalCustomer expectation mismatchMissing communication conventionDistinguish stage and path in proposalsYes, but it affects renewal
    Aggregator judged by impressionBehaviour drift or data exposureNo verification checklistWalk the checklist row by rowDepends on the case

    12. Boundary conditions and scenarios this article does not cover

    12.1 Out of scope

    • Full API integration and launch procedure.Other articles on this site cover that; this one handles only the transition from free to paid.
    • Any concrete free quota, rate threshold or price.Those are governed by official announcements and the live control panel; what follows is a measurement method, not a figure.
    • Benchmarking models against each other.This article does not argue which model is smarter; it discusses the operational boundaries of a path.
    • Private deployment hardware and tuning.Private deployment appears here only as the exit route for the most sensitive data, without deployment detail.

    12.2 Free credit is not a production degradation plan

    This deserves its own paragraph because it is so common. A degradation plan only works if the promise behind it still holds during the incident. Free credit does not qualify: it can be tightened at any moment, it can disappear exactly when you need it, and there is no contract behind it.

    A sound degradation chain looks like this: primary tier, then a cheaper tier that is still under contract, then shorter context and simpler output structure, then an explicit user-visible degradation notice. Every link is something you paid for and something you are committed to. Free access can sit outside the chain as a dedicated research and exploration resource; it should not be a link inside it.

    12.3 Geography, terms and compliance reality

    Three final boundaries, all of the "technically possible but inadvisable" kind.

    • Geography and availability: availability policy can change by region. Betting a business on a free channel means treating policy change as a certainty you have prepared for, which you have not.
    • Terms of service outrank technical convenience: free trials usually carry language about use for service improvement. A prompt is technically anonymous on a technical level and possibly a recorded, internally readable document on a legal one. Those two things are not in conflict - only your attention was.
    • Industry regulation and customer contracts: finance, healthcare, education and government workloads often carry additional retention and processing requirements, and enterprise customers routinely ask in supplier assessments exactly which path your model calls travel through. You should have that answer before integration, not after.

    13. Self-check list and conclusion

    13.1 A one-shot verification script

    Everything above compresses into one execution: list the models the account can actually use, send one minimal request to confirm routing and usage shape, and persist the response headers. The snippet below needs only the standard library and curl; running it gives you your own baseline facts instead of second-hand conclusions.

    # verify_baseline.py - establish your own baseline facts
    # 1) List the models the account can actually use (the only trustworthy source)
    curl -sS https://api.deepseek.com/models \
      -H "Authorization: Bearer $DEEPSEEK_API_KEY" | python -m json.tool
    
    # 2) One minimal request: capture the returned model id and the usage shape
    python - <<'PY'
    import json, os, urllib.request
    body = {"model": os.environ.get("DS_MODEL", "<use an id from step 1>"),
            "messages": [{"role": "user", "content": "ping"}], "max_tokens": 16}
    req = urllib.request.Request(
        "https://api.deepseek.com/chat/completions",
        data=json.dumps(body).encode("utf-8"),
        headers={"Content-Type": "application/json",
                 "Authorization": "Bearer " + os.environ["DEEPSEEK_API_KEY"]})
    with urllib.request.urlopen(req, timeout=60) as r:
        d = json.loads(r.read().decode("utf-8"))
        u = d.get("usage") or {}
        print("model_returned :", d.get("model"))
        print("usage_keys     :", sorted(u.keys()))
        print("prompt/complete:", u.get("prompt_tokens"), u.get("completion_tokens"))
        print("cache_hit/miss :", u.get("prompt_cache_hit_tokens"), u.get("prompt_cache_miss_tokens"))
    PY
    
    # 3) Balance and limits: whatever the console shows in real time is authoritative
    # 4) Free-tier rate behaviour: run probe_free.py and keep the time series

    13.2 The self-check list

    Before shipping, tick every one of these fifteen items. If you cannot tick one, you are still missing a piece of essential fact about this approach.

    #CheckHow to confirmConsequence if it fails
    1Which path am I on, and which version of its termsArchive the terms page with a dateNobody owns the compliance risk
    2How does this path retain and use dataRead the terms and get written confirmationLeak with no recourse
    3Can a human absorb failure of this taskWalk the section 7 decision tableProduction incidents
    4Does my data classification cover everything sentRow by row through the classification tableSensitive data escapes
    5Is critical state externalised to diskInterrupt a session and try to resumeConstant context rebuilding
    6Have I measured throttling at a fixed cadenceThe probe_free.py CSVConfusing busyness with exhaustion
    7Do I know which dimension throttling attaches toThe four controlled experimentsUnpredictable production behaviour
    8Did the aggregator pass the checklistTick every rowVersion drift or data exposure
    9Have I quantified free-versus-API differencesThe stage 2 difference reportBehaviour drift after launch
    10Do I log usage and the actually served model nameInspect the log fieldsCost cannot be attributed
    11Is the stable prefix genuinely stableWatch the cache hit rate metricBills off by an order of magnitude
    12Are there usage and budget alertsRehearse a triggerSudden service stop
    13Is every link of the degradation chain under contractWrite the degradation chain downAn outage compounds an outage
    14Can rollback complete within minutesPerform one rollback drillA small mistake becomes a long outage
    15Does every number I quote come from a current official sourceCheck each dateDecisions made on stale information

    13.3 Conclusion

    "Free" is both mythologised and underestimated. It is mythologised because it sounds like zero cost, so decisions are deferred until the credit runs out; it is underestimated because what is actually consumed is not that thin allowance but waiting time, interrupted context, and the one difference you failed to discover during the experiment phase.

    The mature way to use it is to treat free credit as a temporary resource with conditions attached. In prototyping, ad-hoc questions and learning, it has almost no substitute, because the cost of failure there approaches zero. In production paths, confidential data and batch work, it is not a cost-saving plan - it is a way of moving cost and risk off the invoice and onto somewhere less visible.

    The most practical closing thought: every question about free credit should end as one of your own measurement records. How much credit, how the limits are counted, what really sits behind an aggregator, how much differs after migration - the answers all expire, but the method does not. That is why this article keeps handing you scripts instead of numbers.