AiCredits
Cost Showdown

DeepSeek Direct vs OpenRouter vs SiliconFlow: Real Cost per Million Tokens

Why the headline rate per million tokens misleads, and how to measure your true blended DeepSeek cost across direct, OpenRouter, SiliconFlow and AiCredits.

Published 2026-11-15 Updated 2026-11-15 7 min

The headline rate is not your rate

Search for a DeepSeek cost comparison and you will find a neat table of numbers per million tokens. Those numbers are real, but they answer a question almost nobody actually asks. Your invoice is decided by the mix of cached input, fresh input and output tokens in your workload — and that mix is yours, not the benchmark author's.

There is a second problem: these are three different products, not three shops selling the same tin of beans. DeepSeek direct is the first-party API. OpenRouter is a multi-model router. SiliconFlow is an inference platform with a strong mainland-China footprint. AiCredits sells DeepSeek credits to developers who don't have a Chinese phone number or bank account. Comparing them on one rate is like comparing rent per square metre without asking which city.

How the three routes (plus one) differ in cost shape

RouteWhat you're buyingHow billing worksMain frictionStrongest fit
DeepSeek directFirst-party API and the reference model behaviourPrepaid top-ups billed per token; cached input and off-peak usage bill lower than standard inputSign-up and top-up flow assumes a mainland payment and verification pathTeams that already have a mainland payment route and want the first-party relationship
OpenRouterOne key across many vendors' models, with routing, fallback and per-model analyticsPrepaid credits; pass-through model rates plus a platform fee when you buy creditsCard and regional availability vary; you sit one network hop further from the modelMulti-model products, or anyone who wants to swap vendors without rewriting code
SiliconFlowHosted inference for open-weight models, DeepSeek includedPrepaid balance, billed per tokenAccount creation and billing are oriented to mainland usersTeams serving users inside mainland China who care about in-region throughput
AiCredits APIA DeepSeek-only, OpenAI-compatible endpointPer-token, card or PayPal; cache hits and off-peak usage bill lower, pro costs more than flashDeliberately narrow — it is not a router and won't serve you non-DeepSeek modelsInternational developers who need DeepSeek in production today

DeepSeek direct: the best sticker, the most friction

If you can pay DeepSeek directly, you get the reference implementation: the model everyone is benchmarking, first-party prompt caching, and off-peak windows where identical tokens bill lower. No intermediary adds a fee or a hop.

The blocker is administrative rather than technical. In practice, the platform is built around mainland payment and verification methods, and international cards or phone numbers are where developers get stuck. If your company already has a Chinese entity or a payment partner, direct is hard to beat. If it doesn't, the lowest number in the comparison table is a price you cannot actually pay.

OpenRouter: you are paying for optionality

OpenRouter's genuine strength is breadth. One key, dozens of vendors, automatic fallback when a provider wobbles, and analytics that tell you which model actually answered. For a product still deciding what to build on, that optionality is worth real money and the engineering time it saves is not trivial.

The cost shape is the catch. Model rates are passed through, but a platform fee is applied when you buy credits, and every request takes an extra hop. If you only ever call DeepSeek, you are paying that fee for flexibility you never exercise. It is an excellent default for experimentation and a questionable one for a settled DeepSeek-only pipeline.

SiliconFlow: regional strength, regional assumptions

SiliconFlow hosts a broad catalogue of open-weight models, DeepSeek among them, and its in-region throughput is the reason many teams serving mainland users pick it. If your latency budget is dominated by users inside China, that advantage can outweigh a lot of rate-table arithmetic.

For everyone else, the friction is familiar: sign-up and billing assume a mainland account, and model IDs differ from what you'll see in third-party tutorials. It is a strong choice for the job it was built for, and an awkward one if that job isn't yours.

Where AiCredits fits

AiCredits exists to remove the payment problem rather than the model. You get an OpenAI-compatible endpoint at https://api.aicreditsapi.com/v1, top up with a card or PayPal, and skip the Chinese phone number and bank account entirely. The cost shape mirrors first-party pricing logic: cache hits bill lower than fresh input, off-peak usage bills lower than peak, and deepseek-v4-pro costs more than deepseek-v4-flash because it does more.

It is a focused product, and that is the honest trade-off — no non-DeepSeek models, no routing across vendors. Current rates live at aicreditsapi.com/pricing, which is the only place worth reading them from.

Step 1 — profile your own token mix

Before comparing anything, find out what your traffic looks like. This script runs the same prompt twice against both models, records prompt, cached and completion tokens, and writes the result to profiles.json for the next step. Keep the system prompt byte-identical between calls — that is what makes a cache hit possible in the first place.

import json
import os
import time

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AICREDITS_API_KEY"],
    base_url="https://api.aicreditsapi.com/v1",
)

SYSTEM = (
    "You are a senior Python reviewer. Flag only correctness and security bugs. "
    "Reply with a numbered list, one line per bug, and nothing else."
)

TASK = """Review this function:

def average(xs):
    return sum(xs) / len(xs)
"""


def profile(model, repeats=2):
    runs = []
    for i in range(repeats):
        started = time.perf_counter()
        resp = client.chat.completions.create(
            model=model,
            messages=[
                {"role": "system", "content": SYSTEM},
                {"role": "user", "content": TASK},
            ],
            temperature=0.2,
            max_tokens=300,
        )
        elapsed = time.perf_counter() - started
        usage = resp.usage
        details = getattr(usage, "prompt_tokens_details", None)
        runs.append(
            {
                "call": i + 1,
                "prompt_tokens": usage.prompt_tokens,
                "cached_tokens": getattr(details, "cached_tokens", 0) if details else 0,
                "completion_tokens": usage.completion_tokens,
                "seconds": round(elapsed, 2),
            }
        )
    return {"model": model, "runs": runs}


if __name__ == "__main__":
    profiles = [profile("deepseek-v4-flash"), profile("deepseek-v4-pro")]
    with open("profiles.json", "w") as fh:
        json.dump(profiles, fh, indent=2)
    print(json.dumps(profiles, indent=2))

Step 2 — turn token counts into a comparable rate

Now create a rates.json beside the script with exactly three keys — input_uncached, input_cached and output — copied from the live pricing page of whichever route you're evaluating. Do not guess or reuse last quarter's numbers; the whole point is to compare what you'd pay today.

The script weights each token class the way your traffic actually uses it, so the blended figure it prints is comparable across providers even when their published rate structures differ.

import json
import sys


def load_rates(path="rates.json"):
    with open(path) as fh:
        rates = json.load(fh)
    required = {"input_uncached", "input_cached", "output"}
    missing = required - set(rates)
    if missing:
        sys.exit(f"rates.json is missing keys: {sorted(missing)}")
    return rates


def effective_rate(profile, rates):
    prompt = cached = completion = 0
    for run in profile["runs"]:
        prompt += run["prompt_tokens"]
        cached += run["cached_tokens"]
        completion += run["completion_tokens"]

    uncached = max(prompt - cached, 0)
    spend = (
        uncached * rates["input_uncached"]
        + cached * rates["input_cached"]
        + completion * rates["output"]
    ) / 1_000_000

    total = prompt + completion
    return {
        "model": profile["model"],
        "tokens": total,
        "spend": spend,
        "blended_per_mtok": (spend / total * 1_000_000) if total else 0.0,
        "cache_hit_ratio": (cached / prompt) if prompt else 0.0,
    }


if __name__ == "__main__":
    with open("profiles.json") as fh:
        profiles = json.load(fh)
    rates = load_rates()
    for prof in profiles:
        row = effective_rate(prof, rates)
        print(
            f"{row['model']:>18} | {row['tokens']:>7} tok | "
            f"cache ratio {row['cache_hit_ratio']:.2f} | "
            f"blended {row['blended_per_mtok']:.4f} / 1M"
        )

What moves your bill more than the choice of provider

  • Put the stable prefix first. A byte-identical system prompt or instruction block at the front of every request is what earns cache hits, and cached input bills lower than fresh input on any route that supports it.

  • Cap the output. Completion tokens usually cost more than input tokens, so max_tokens plus an instruction to answer briefly does more for your bill than switching vendors.

  • Right-size the model. deepseek-v4-flash handles extraction, classification and lint-fix suggestions; reserve deepseek-v4-pro for reasoning that flash genuinely fumbles. Most teams overspend here.

  • Run the boring jobs off-peak. Nightly lint sweeps, backfills and re-embeddings don't care when they run, and off-peak windows bill lower.

  • Count the routing tax honestly. A gateway's fee buys real flexibility — worth it for multi-model work, rarely worth it if DeepSeek is the only model you call.

The rate on the pricing page is an input to the calculation, not the answer. Your cache hit ratio and completion length decide what you actually pay.

Frequently asked questions

Which route is cheapest per million tokens?

There is no single answer, because cache hit ratio and output length dominate the result. A DeepSeek-only workload with a stable cached prefix and short answers lands far below the headline rate on any route; a chatty, output-heavy workload lands above it. Run the two scripts above using current rates from each provider's pricing page and compare the blended figure.

Can I switch routes without rewriting my app?

Yes, if you use an OpenAI-compatible SDK — change base_url and api_key and you are mostly done. You will also need to update the model ID, since each provider names models differently. Store the ID and base URL in environment variables so switching is a config change, not a code change.

Does routing through a gateway add latency?

There is one extra network hop, so expect some. Whether you notice it depends on how much of the request time the model spends generating versus how much is plumbing. The profiler records wall-clock seconds per call, so measure rather than assume.

How do I stop a runaway bill?

Set max_tokens on every call, log prompt and completion tokens per request, and aggregate daily. The profiler in this post gives you the logging shape; add a simple budget check before the call and you will catch a regression in cached-token usage before it compounds over a month.

Still stuck at DeepSeek's checkout?

This article explains why the payment fails. If what you actually need is a working key today, there is a shorter path: prepaid DeepSeek credits, no subscription, key issued to your account right after checkout.

  • $9 / $19 / $29 USD one-time credit packs — 1 USD = 500K credits (so $9 = 4.5M); billed by actual usage, never expires, tax excluded
  • Card, Apple Pay, Google Pay or Alipay via Creem — no PayPal account needed
  • Email signup only — no Chinese phone number, no Chinese bank account
  • Same DeepSeek models and the same OpenAI-compatible API — change one base_url

Get a DeepSeek key → Or try it free first

Not sure how prepaid billing works? See the full DeepSeek API credits guide → — packs, usage-based billing, supported models and payment methods.

Try Lint in 2 seconds

Wrote something? Paste it here for a free grammar check. No account needed.

More Tools →

Related Tools

💻Code Explainer

Was this article helpful?

| Share on X Reddit Copy link

服务器宕机了?别等用户告诉你

Wakeless 梦哨 帮你 30 秒监控网站 / API / SSL 证书,宕机秒级告警到邮箱、飞书、Slack。免费档 30 个监控,永久免费,无需信用卡。

免费开始监控 →
💬
反馈意见 / Feedback ×