Chinese model APIs on one OpenAI-compatible key. Browse models
DeepSeek logo on the SmarToken DeepSeek API hub
DeepSeek

deepseek api

DeepSeek API: pick Flash or V4 Pro before you scale traffic

This hub is the production decision page for DeepSeek on SmarToken — not a thin model directory. You get Live IDs, a Flash vs Pro comparison, USD billing context, an eval checklist, and the internal/external links you need to ship without guessing.

Choose a first Live DeepSeek route, measure cost per successful task, then pin the API ID before raising concurrency.

5 Live · 0 Integrating · Base URL https://thesmartoken.com/v1

What this DeepSeek hub is for

Overseas “deepseek api” searches usually need three answers in one place: which model ID is Live today, what it costs in USD, and when Flash is enough versus V4 Pro. Directory-only pages fail that job. This hub owns the DeepSeek family on SmarToken and links out for numbers and access caveats instead of pretending one paragraph covers everything.

SmarToken currently exposes two Live DeepSeek text routes: deepseek-chat (product label DeepSeek Flash) and deepseek-v4-pro. Use those API IDs in code and logs. Marketing names and vendor console strings are not substitutes when you are debugging a 404 or a surprise bill.

Flash is the default canary when interactive latency and token cost dominate. Pro is the upgrade path when your acceptance suite fails on harder coding, long answers, or research-style prompts that Flash cannot clear even with retries. The right metric is cost per successful task — not list price per million tokens alone.

DeepSeek’s own docs also publish peak vs off-peak windows and cache-hit discounts. On SmarToken you still pay from a prepaid USD wallet, and billable rates have no additional platform surcharge. Always reconcile vendor list prices against /deepseek-api-pricing before you forecast a month of traffic.

If you arrived from a SiliconFlow-style or OpenRouter-style catalog, expect model ID strings to differ. Keep the OpenAI SDK shape, change Base URL + key + apiModelId, then re-run fixtures. Do not migrate agents, tools, and billing in the same commit.

Catalog rows for this vendor

ModelAPI IDContextIn / OutStatusDetail
DeepSeek Flashdeepseek-chat1M$0.3 / $1.2LiveOpen
DeepSeek V4 Prodeepseek-v4-pro1M$1.32 / $3.96LiveOpen
DeepSeek V4 Pro (TokenHub)deepseek-tokenhub-pro1M$1.74 / $3.48LiveOpen
DeepSeek V4.1 Flashdeepseek-v4.1-flash1M$0.3 / $1.2LiveOpen
DeepSeek V4.1 Flash (Vendor Direct)deepseek-tokenhub-flash1M$0.3 / $1.2LiveOpen

Flash vs V4 Pro at a glance

DimensionDeepSeek Flash (deepseek-chat)DeepSeek V4 Pro (deepseek-v4-pro)
Best first useInteractive apps, extraction, light coding, high-QPS canariesHarder coding, long answers, research prompts that fail Flash gates
Cost postureLower token rates; win when first-pass success is already highHigher rates; win only if retries/tokens drop enough to offset
Status on SmarTokenLive Chat Completions routeLive Chat Completions route
What to pin in configdeepseek-chatdeepseek-v4-pro
Pricing deep-divePeak / cache rows on DeepSeek pricing pageSame page — compare both rows before scaling

Workload → first pick

WorkloadFirst pickWhy
Chat UI / customer repliesdeepseek-chatLatency and cost matter more than maximum reasoning depth for most turns.
JSON / schema extractiondeepseek-chat → escalate to Pro if invalid rate stays highMeasure schema-valid % before paying Pro’s multiplier on every call.
Repo coding agentsBake-off both; promote Pro only on failing suitesPro can reduce tool retries; Flash can still win on cost per green test.
Batch overnight jobsFlash + schedule awarenessPeak windows change wallet burn; batch when rates and limits allow.
Long research synthesisdeepseek-v4-pro after Flash fails quality gatesDo not guess — keep identical prompts and score citations / completeness.

Eval checklist before you raise concurrency

  1. Step 1

    Freeze a 20–50 prompt acceptance set

    Use real production shapes: schemas, languages, tool traces. Score pass/fail with the same rubric a human or CI would use — never “sounds smart.”

  2. Step 2

    Run Flash and Pro with identical knobs

    Lock temperature, max tokens, and tools. Log tokens in/out, latency p95, retries, and dollars. Compare cost per successful task.

  3. Step 3

    Decide with a break-even rule

    If Pro is ~3× more expensive per attempt, it only wins when Flash needs enough extra attempts or tokens that unit cost flips. Otherwise keep Flash as default and route hard cases only.

  4. Step 4

    Pin the winning API ID and budget the key

    Ship deepseek-chat or deepseek-v4-pro explicitly. Set key budgets, stop auto-retry on 402 insufficient_quota, and re-check GET /v1/models on deploy day.

USD billing notes (read before forecasting)

SmarToken bills from a prepaid USD wallet. Peak versus off-peak DeepSeek windows still matter for wallet burn even when your product team thinks in “flat SaaS pricing.”

Cache-hit input discounts on the vendor side can dominate the bill for repeated system prompts — but only if your traffic actually hits cache. Forecast with miss rates from your logs, not marketing best case.

No additional platform surcharge applies. Vendor list prices may differ from actual invoices after free credits. Use /deepseek-api-pricing and /pricing as the source of truth for customer-facing numbers.

Key budgets beat hope. Separate staging, user-facing, and batch keys so one runaway agent cannot empty the whole wallet.

Minimal request shape

Live example. Prefer deepseek-chat for first production canaries unless your eval already failed Flash quality gates. Current example ID: deepseek-chat (Live).

const client = new OpenAI({
  apiKey: process.env.SMTOKEN_API_KEY,
  baseURL: "https://thesmartoken.com/v1",
});

const result = await client.chat.completions.create({
  model: "deepseek-chat",
  messages: [{ role: "user", content: "Return one sentence confirming the model id." }],
});

Full protocol notes live in /docs#quickstart. Confirm Live IDs with GET /v1/models before raising concurrency.

Ops signals and error handling

  • 402 insufficient_quota: stop tight retry loops, top up, then resume. Docs spell out the top-up URL pattern.
  • Empty or unexpected model list: call GET /v1/models and confirm Live IDs before blaming the SDK.
  • Streaming clients: verify SSE handling against /docs before enabling stream:true in production.
  • Alias debt: temporary OpenRouter/SiliconFlow-style aliases are fine for migration week; long-term logs should show SmarToken apiModelId values.

Common DeepSeek integration mistakes

  • Treating any plaza card as Live without checking status or GET /v1/models.
  • Budgeting only off-peak prices while traffic sits in Beijing peak windows.
  • Comparing rates without checking cache and peak-hour assumptions.
  • Migrating prompts, tools, Base URL, and billing in one unreviewable change.
  • Using marketing names in config instead of deepseek-chat / deepseek-v4-pro.
  • Judging models on vibes instead of cost per successful task.

When this hub is the wrong page

  • You need a Live Chinese video generation endpoint today — see the AI video topic (Integrating only).
  • Your traffic is mostly non-China global models — a broad router may still fit better; compare /openrouter-alternative honestly.
  • You only wanted a price table — jump straight to /deepseek-api-pricing.
  • You need Moonshot-length context as the primary product story — start at the Kimi hub instead.

FAQ

Which DeepSeek model should I put in production first?
Start with deepseek-chat unless your eval set already shows Flash failing structured output, hard coding, or long-document tasks that Pro consistently passes.
Where do I see exact DeepSeek USD rates?
Use /deepseek-api-pricing for peak input, cached input and output rows. /pricing shows the wider gateway table.
Do I need a Chinese phone number for DeepSeek on SmarToken?
SmarToken signup is built for overseas teams using prepaid USD. See /deepseek-api-without-chinese-phone for the access narrative and current caveats.
Is deepseek-chat the same as DeepSeek Flash?
On this catalog, yes: the API ID is deepseek-chat and the product label is DeepSeek Flash. Always send the API ID in code.
How do I migrate from SiliconFlow-style DeepSeek IDs?
Keep the OpenAI SDK, switch Base URL and key, map to deepseek-chat or deepseek-v4-pro, then re-run fixtures. Details: /siliconflow-alternative.
Does Pro always beat Flash on coding?
No. Pro often scores higher on hard suites, but Flash can win on cost per green test when first-pass success is already high. Measure both.