← Back to dashboard

DeepSeek Integration Guide

What is DeepSeek?

The real model

MoE models, a three-protocol API, MIT weights, and PRC data residency.

V4.1-Flash is a 552B MoE with a causal encoder–decoder design: 8B active parameters for input and 16B for output. It has native image input and a KV cache about 1/4 the size of V4's. V4-Pro-0813 is 1.6T total / 49B active and text-only. Thinking is on by default. Effort is `low`/`high`/`max` via `reasoning_effort`, and `none` turns it off. The CoT comes back in `reasoning_content`. With `tools` in the request, you MUST send prior `reasoning_content` back or get a 400. JSON mode (`json_object`), strict tool calls (beta), FIM (beta, non-thinking) and Search/Fetch APIs are all available. AI SDK 7: `deepSeek('deepseek-flash')` from `@ai-sdk/deepseek`. The privacy policy says data is processed in the PRC, so codeAmani routes only non-sensitive traffic to the hosted API and keeps a Claude fallback.

Five things to know before integrating DeepSeek

Cheap, compatible and open-weights, but hosted in China and thinking by default.

Text
██████╗ ███████╗███████╗██████╗ ███████╗███████╗███████╗██╗  ██╗
██╔══██╗██╔════╝██╔════╝██╔══██╗██╔════╝██╔════╝██╔════╝██║ ██╔╝
██║  ██║█████╗  █████╗  ██████╔╝███████╗█████╗  █████╗  █████╔╝
██║  ██║██╔══╝  ██╔══╝  ██╔═══╝ ╚════██║██╔══╝  ██╔══╝  ██╔═██╗
██████╔╝███████╗███████╗██║     ███████║███████╗███████╗██║  ██╗
╚═════╝ ╚══════╝╚══════╝╚═╝     ╚══════╝╚══════╝╚══════╝╚═╝  ╚═╝

DeepSeek Integration Guide

Focus: cost-effective inference and chain-of-thought reasoning with deepseek-flash (V4.1) and deepseek-v4-pro, through the openai SDK, the Vercel AI SDK 7 (@ai-sdk/deepseek), or the Anthropic-compatible endpoint. Also covers the data-residency rules codeAmani applies for US customers.

Overview

As of 2026-10-20 the hosted API serves two model IDs:

  • deepseek-flash: the rolling alias for the current Flash release, DeepSeek-V4.1-Flash-1017 (released 2026-10-17). V4.1-Flash is a new MoE architecture with native image input. DeepSeek reports that it beats V4-Pro on most benchmarks, and it is also cheaper. Use it by default.
  • deepseek-v4-pro: DeepSeek-V4-Pro-0813. It is text-only, costs about 4× Flash, and has a lower concurrency limit. DeepSeek first said it would phase V4-Pro out, then reversed that and kept it running "until further notice" (see Model history below).

Both models have a 1M-token context and a 384K max output. Both support thinking mode, which is ON by default (effort high). They also support tool calls, JSON output, chat-prefix completion (beta) and FIM completion (beta, non-thinking only). Three wire formats reach the same models:

SurfaceBase URLUse with
OpenAI Chat Completionshttps://api.deepseek.comopenai SDK, @ai-sdk/deepseek, most tools
OpenAI Responses APIhttps://api.deepseek.com (/responses)openai SDK responses.create, Codex
Anthropic Messageshttps://api.deepseek.com/anthropic@anthropic-ai/sdk, Claude Code
Beta features (FIM, prefix, strict tools)https://api.deepseek.com/betaopenai SDK

Model history (why old IDs still work)

DateChange
2026-04-24V4 Preview: deepseek-v4-pro / deepseek-v4-flash launch with 1M context and the thinking toggle.
2026-07-24deepseek-chat (V3.x) and deepseek-reasoner (R1 line) retired. They no longer work.
2026-08-13V4-Pro GA (-0813). Effort levels low/high/max added, plus native Responses API and peak/off-peak pricing.
2026-08-21deepseek-v4-flash-vision-exp launched, along with the Files API.
2026-09-10V4.1-Flash launched as deepseek-flash. V4-Flash and Vision-Exp retired; their IDs now alias to V4.1-Flash at Flash prices. Prices cut.
2026-10-17deepseek-flash upgraded to V4.1-Flash-1017 with no price change. Search & Fetch APIs opened to everyone.

Migration: replace deepseek-v4-flash and deepseek-v4-flash-vision-exp with deepseek-flash. The legacy names still resolve, but DeepSeek calls them temporary. Code that still uses deepseek-chat / deepseek-reasoner is already broken.

Official Documentation


SDK Setup

Versions verified on 2026-10-20 with npm view and type-checked under tsc --strict:

PackageVersionRole
openai7.39.0Chat Completions / Responses / FIM client
ai7.0.146Vercel AI SDK 7 core
@ai-sdk/deepseek3.0.69AI SDK 7 provider (peer zod ^3.25.76 || ^4.1.8)
@anthropic-ai/sdk0.135.0Anthropic-format client (also the Claude fallback)
zod4.6.7Tool / output schemas
Bash
npm install openai@7.39.0
# or, for the AI SDK path:
npm install ai@7.0.146 @ai-sdk/deepseek@3.0.69 zod@4.6.7
TypeScript
// lib/deepseek.ts — server-only
import OpenAI from "openai";

const apiKey = process.env.DEEPSEEK_API_KEY;
if (!apiKey) throw new Error("DEEPSEEK_API_KEY is not set");

export const deepseek = new OpenAI({
  apiKey,
  baseURL: "https://api.deepseek.com",
  timeout: 120_000, // the server holds queued requests up to 10 min; fail over sooner
});

Models & limits

deepseek-flashdeepseek-v4-pro
ServesDeepSeek-V4.1-Flash-1017DeepSeek-V4-Pro-0813
Context1M tokens1M tokens
Max output384K (393,216)384K
Default max_tokens8K non-thinking · 64K thinking · 128K at maxsame
Thinkingon by default; none/low/high/maxon by default; none/low/high/max
Image inputyes (JPEG/PNG/GIF/WebP)no
JSON output · tool calls · Responses · Anthropic APIyesyes
FIM (beta)non-thinking onlynon-thinking only
Concurrency limit (per account)2,500500

GET /models returns live metadata (context window, max output, modalities, supported effort levels). Read it at startup instead of hard-coding these numbers.


Core Patterns

Standard chat (thinking off, for cheap bulk work)

Thinking is on by default, so turn it off explicitly for summaries, classification and extraction. reasoning_effort is typed in the openai SDK, so this needs no @ts-expect-error:

TypeScript
const res = await deepseek.chat.completions.create({
  model: "deepseek-flash",
  reasoning_effort: "none", // thinking OFF — cheaper, faster, temperature works
  messages: [
    { role: "system", content: "You are a helpful assistant for codeAmani Labs." },
    { role: "user", content: "Summarize this support ticket in one sentence: ..." },
  ],
  max_tokens: 1024,
});

const text = res.choices[0]?.message.content ?? "";

Thinking mode (reasoning)

ControlOpenAI formatAnthropic formatResponses format
On/offreasoning_effort: "none" (off) or thinking: { type: "enabled" | "disabled" }thinking (budget_tokens ignored)reasoning: { effort: "none" }
Effortreasoning_effort: "low" | "high" | "max"output_config: { effort }reasoning: { effort }

The server maps compatibility values: minimal becomes low, medium and xhigh become high, and ultra becomes max.

TypeScript
import type OpenAI from "openai";

type DeepSeekMessage = OpenAI.Chat.ChatCompletionMessage & {
  reasoning_content?: string | null; // DeepSeek-only field
};

const res = await deepseek.chat.completions.create({
  model: "deepseek-v4-pro",
  reasoning_effort: "high",
  messages: [{ role: "user", content: "Why is my Supabase RLS policy blocking authenticated users?" }],
  max_tokens: 16_384, // caps reasoning + answer together
});

const msg = res.choices[0]?.message as DeepSeekMessage | undefined;
console.log("CoT:", msg?.reasoning_content);
console.log("Answer:", msg?.content);
console.log("Reasoning tokens:", res.usage?.completion_tokens_details?.reasoning_tokens);

Rules (from the thinking-mode guide):

  • temperature, presence_penalty and frequency_penalty are silently ignored in thinking mode. top_p on deepseek-flash only applies in thinking mode, clamped to 0.95–1.0.
  • No tools in the request: you do not need to send reasoning_content back. The API ignores it.
  • tools in the request: you must send back every prior assistant turn's reasoning_content, including turns with no tool call. Otherwise the API returns 400. This reverses the old "never feed reasoning back" advice.
  • tool_choice: "required" and named tool choices return 400 in thinking mode.
  • Reasoning tokens are billed at the output rate.

Tool calling

The tool format is standard OpenAI tools / tool_calls. The easiest way to stay correct in thinking mode is to append the returned message object to history unchanged:

TypeScript
const res = await deepseek.chat.completions.create({
  model: "deepseek-flash",
  messages,
  tools,
  tool_choice: "auto",
  reasoning_effort: "high",
});
const message = res.choices[0]!.message;
// Keeps reasoning_content, which is required on later requests that carry `tools`
messages.push(message as OpenAI.Chat.ChatCompletionAssistantMessageParam);
for (const call of message.tool_calls ?? []) {
  if (call.type !== "function") continue;
  messages.push({ role: "tool", tool_call_id: call.id, content: await runTool(call) });
}

The full loop is in examples/tool-loop.ts. Strict mode (beta) uses base URL https://api.deepseek.com/beta, and every function must set strict: true. Each object must list all its properties as required and set additionalProperties: false. Supported types are object, string (pattern, format: email/hostname/ipv4/ipv6/uuid), number/integer (min/max/multipleOf), array (no min/maxItems), enum, anyOf, $ref/$def. Inserting tool calls the model never made into the middle of a conversation works only on the Anthropic and Responses surfaces, not on Chat Completions.

JSON output

TypeScript
const res = await deepseek.chat.completions.create({
  model: "deepseek-flash",
  reasoning_effort: "none",
  response_format: { type: "json_object" }, // only text | json_object — no json_schema
  messages: [
    { role: "system", content: 'Return JSON like {"name": string|null, "amountUsd": number|null}.' },
    { role: "user", content: "Extract from: 'Dana paid $42.50 for order ORD-123'" },
  ],
  max_tokens: 1024,
});
const raw = res.choices[0]?.message.content ?? "";
if (!raw.trim()) throw new Error("empty JSON response — retry"); // documented edge case
const data = JSON.parse(raw) as { name: string | null; amountUsd: number | null };

The prompt must contain the word "json" and should include an example shape. Without them the model can stream whitespace until it hits max_tokens. DeepSeek has no json_schema response format. For schema-validated output, use strict tool calls or the AI SDK's Output.object with zod validation.

FIM (fill-in-the-middle, beta)

TypeScript
const beta = new OpenAI({ apiKey, baseURL: "https://api.deepseek.com/beta" });
const res = await beta.completions.create({
  model: "deepseek-flash",
  prompt: "function fib(n: number): number {\n",
  suffix: "\n}\n",
  max_tokens: 256, // FIM max is 4K
});
console.log(res.choices[0]?.text);

FIM runs in non-thinking mode only, on the legacy /completions endpoint.

Streaming

TypeScript
const stream = await deepseek.chat.completions.create({
  model: "deepseek-flash",
  reasoning_effort: "none",
  stream: true,
  messages: [{ role: "user", content: prompt }],
});
for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}

In thinking mode, delta.reasoning_content chunks arrive before delta.content chunks (see examples/reasoner.ts). While a request waits in the queue, the server sends blank lines (non-streaming) or : keep-alive SSE comments (streaming). The SDK skips them, but a hand-rolled parser must skip them too. If inference has not started after 10 minutes, the server closes the connection.

Vercel AI SDK 7 (@ai-sdk/deepseek)

The provider reads DEEPSEEK_API_KEY by default. It exports deepSeek (canonical) and deepseek (alias). It also sends reasoning_content back between tool steps automatically, which DeepSeek requires.

TypeScript
import { deepSeek, type DeepSeekLanguageModelChatOptions } from "@ai-sdk/deepseek";
import { generateText, isStepCount, tool } from "ai";
import { z } from "zod";

const { text } = await generateText({
  model: deepSeek("deepseek-flash"),
  instructions: "You are an order-support assistant.",
  tools: {
    getOrderStatus: tool({
      description: "Look up an order's status by id.",
      inputSchema: z.object({ orderId: z.string() }),
      execute: async ({ orderId }) => ({ orderId, status: "shipped" as const }),
    }),
  },
  stopWhen: isStepCount(5),
  prompt: "Where is order ORD-123?",
  providerOptions: {
    deepseek: {
      thinking: { type: "enabled" },
      reasoningEffort: "high", // 'low' | 'high' | 'max'
      userId: "tenant_42-user_7", // opaque, no PII
    } satisfies DeepSeekLanguageModelChatOptions,
  },
});
  • The provider drops temperature / topP with a warning unless you set thinking: { type: "disabled" }. It always drops frequencyPenalty / presencePenalty.
  • result.providerMetadata.deepseek exposes promptCacheHitTokens, promptCacheMissTokens and systemFingerprint.
  • result.reasoningText is deprecated in v7. Use result.finalStep.reasoningText.
  • Strict tools and chat-prefix completion require createDeepSeek({ baseURL: "https://api.deepseek.com/beta" }).
  • All five patterns (bulk, thinking, tools, Output.object, streaming) are in examples/ai-sdk.mts.

Anthropic-compatible endpoint

TypeScript
import Anthropic from "@anthropic-ai/sdk";

const ds = new Anthropic({
  apiKey: process.env.DEEPSEEK_API_KEY, // a DeepSeek key, not an Anthropic key
  baseURL: "https://api.deepseek.com/anthropic",
});

const msg = await ds.messages.create({
  model: "deepseek-flash",
  max_tokens: 1024,
  system: "You are a helpful assistant.",
  messages: [{ role: "user", content: "Hi, how are you?" }],
});

Model-name mapping: claude-opus* maps to deepseek-v4-pro (billed at Pro rates), and every other claude* name maps to deepseek-flash. Other unknown names return 400. Ignored fields: anthropic-version, cache_control, top_k, mcp_servers, container, service_tier, and thinking.budget_tokens. output_config supports only effort. Document blocks, redacted_thinking, and MCP/code-execution result blocks are not supported. This endpoint is how Claude Code, Claude Desktop developer mode and similar tools run on DeepSeek. Do not point codeAmani's own Claude Code sessions at it (see codeAmani notes).

Responses API, Vision, Files, Search & Fetch

  • Responses API: call client.responses.create({ model: "deepseek-flash", instructions, input }) on the normal base URL. The stream uses semantic SSE events and has no [DONE] marker. DeepSeek built it for Codex.
  • Vision (deepseek-flash only): send image_url content parts as a base64 data URL, an https URL, or a Files API file_id. Limits: 48 MiB request body, 32 MiB per image (64 MiB via file_id), 600 images per request. Each image is resized to roughly 544²–1300² pixels and costs at most 1,024 tokens, billed at Flash text rates. (The Aug-21 Vision-Exp note said 384, but the current vision guide says 1,024.)
  • Files API: free. Upload an image once and reuse it by file_id. The AI SDK exposes it as uploadFile({ api: deepSeek.files() }).
  • Search & Fetch APIs: POST https://api.deepseek.com/v1/tools/search and /v1/tools/fetch with bearer auth, $0.75 per 1,000 successful calls each. Server-side search/fetch tool calls made through Claude Code / Codex / DeepSeek Harness are free until 2026-10-31 16:00 UTC, then billed. Queries and fetched URLs go to DeepSeek's PRC-hosted search engine, so the same residency rules apply.

AI Routing: when to use DeepSeek

DeepSeek is a cost-optimisation tier under Anthropic Claude (primary). It is not the default for everything:

TaskRecommended
Complex reasoning, agents, anything customer-sensitiveclaude-sonnet-5-5 (see anthropic/)
Bulk summarise / classify / extract on public or synthetic datadeepseek-flash, reasoning_effort: "none"
Cache-heavy long-context jobs (same 100K+ prefix reused)deepseek-flash: cache hits cost $0.003–0.006/M
Step-by-step math / logic on non-sensitive datadeepseek-flash at high or max first; deepseek-v4-pro only if an eval shows it wins
Fast classification of customer dataclaude-haiku-5-5
Strict JSON-schema outputOpenAI structured outputs (open-ai/) or DeepSeek strict tools (beta)

Price reality check (2026-10): the anthropic/ guide lists claude-haiku-5-5 at $0.10 / $0.50 per M tokens for prompts up to 100K. That is at or below deepseek-flash cache-miss pricing. DeepSeek's remaining cost edge is cache-hit input ($0.003/M off-peak), very long contexts, and open weights. Benchmark cost per task on your own workload before you route volume to it.


Error handling, retries & fallback

CodeMeaningClassAction
400Invalid request body (also: missing reasoning_content with tools, required tool_choice in thinking mode)terminalFix the request
401Wrong API keyterminalFix DEEPSEEK_API_KEY
402Insufficient balanceterminalTop up; fall back immediately
422Invalid parametersterminalFix params
429Concurrency / QPS limit reached (2,500 Flash, 500 Pro per account)transientBack off, then fall back
500Server errortransientRetry after a brief wait
503Server overloadedtransientRetry after a brief wait

finish_reason can also be insufficient_system_resource, which counts as transient. DeepSeek's own advice on 429 is to "temporarily switch to alternative LLM providers".

TypeScript
// lib/ai-resilient.ts
import OpenAI from "openai";
import Anthropic from "@anthropic-ai/sdk";

const deepseek = new OpenAI({
  apiKey: process.env.DEEPSEEK_API_KEY,
  baseURL: "https://api.deepseek.com",
  timeout: 60_000,
  maxRetries: 0, // we own the retry policy below
});
const anthropic = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY });

const RETRYABLE = new Set([429, 500, 503]);
const MAX_RETRIES = 3;
const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));

/** DeepSeek with jittered backoff on transient errors, then Claude. Non-sensitive input only. */
export async function completeWithFallback(prompt: string): Promise<string> {
  for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
    try {
      const res = await deepseek.chat.completions.create({
        model: "deepseek-flash",
        reasoning_effort: "none",
        messages: [{ role: "user", content: prompt }],
        max_tokens: 2048,
      });
      const choice = res.choices[0];
      // DeepSeek-only finish_reason, not in the OpenAI union, hence the widening cast
      if (choice && (choice.finish_reason as string) !== "insufficient_system_resource") {
        return choice.message.content ?? "";
      }
    } catch (err) {
      const status = err instanceof OpenAI.APIError ? err.status : undefined;
      if (!status || !RETRYABLE.has(status)) break; // terminal or network/timeout -> fallback
    }
    if (attempt === MAX_RETRIES) break;
    const base = 500 * 2 ** attempt;
    await sleep(base + Math.random() * base);
  }

  const msg = await anthropic.messages.create({
    model: "claude-haiku-5-5",
    max_tokens: 2048,
    messages: [{ role: "user", content: prompt }],
  });
  return msg.content.flatMap((b) => (b.type === "text" ? [b.text] : [])).join("");
}

Cost reference

USD per 1M tokens from the pricing page, checked 2026-10-20, shown as off-peak / peak. Peak hours are 01:00–04:00 and 06:00–10:00 UTC, Monday–Friday, excluding Chinese public holidays. All other hours, including weekends and Chinese holidays, bill at the off-peak rate, which is 50% of peak.

ModelInput (cache hit)Input (cache miss)Output
deepseek-flash (V4.1-Flash-1017)$0.003 / $0.006$0.15 / $0.30$0.60 / $1.20
deepseek-v4-pro (V4-Pro-0813)$0.022 / $0.044$0.66 / $1.32$1.98 / $3.96
Search API · Fetch API$0.75 per 1,000 successful requests (each)
  • Legacy deepseek-v4-flash and deepseek-v4-flash-vision-exp bill at the Flash price.
  • Context caching ("on disk") is automatic. A request hits the cache only when it fully matches a persisted prefix unit: the end of the previous user input, the end of the previous output, or a detected common prefix. Keep system prompts and tool lists byte-stable and append-only.
  • Thinking tokens bill as output, so max effort on long tasks can multiply output cost.
  • The full breakdown and worked examples are in reference/pricing-snapshot.md.

Open weights & licence

Repo (Hugging Face deepseek-ai/)LicenceNotes
DeepSeek-V4.1-Flash-1017MITWeights for the model behind deepseek-flash today
DeepSeek-V4.1-FlashMIT2026-09-10 release, with tech report
DeepSeek-V4-ProMIT1.6T total / 49B active
DeepSeek-V4-FlashMIT284B total / 13B active (retired from the API)

DeepSeek describes V4.1-Flash as a 552B-parameter MoE with a causal encoder–decoder design: 8B active parameters for input and 16B for output. The repo's safetensors metadata counts about 763B parameters (see NOTES.md). The weights are MIT-licensed, so commercial use, fine-tuning and redistribution are allowed as long as the copyright notice is kept. Serving them takes multi-GPU, data-centre-class hardware. Self-hosting in a US region (or using a US-hosted inference provider that serves these weights) gives you DeepSeek quality without sending data to the PRC.


Data residency & compliance (US customers)

  • Where data goes: DeepSeek's privacy policy (last updated 2026-02-10) names Hangzhou DeepSeek Artificial Intelligence Co., Ltd. as data controller and says it "directly collect[s], process[es] and store[s] your Personal Data in People's Republic of China". The same policy lists user input among the data used to "train and improve our technology". No US or EU data region, no BAA, and no zero-data-retention option is documented for the API.
  • codeAmani rule: never send PII, PHI (DoseVault and other HIPAA-scoped apps), payment or card data, credentials, customer source code or anything under NDA to the hosted DeepSeek API. Route that traffic to Anthropic Claude, or to self-hosted MIT weights in a US region.
  • Fine to send: public content, synthetic or test data, internal docs cleared for third-party processing, and anonymised or aggregated text.
  • Enterprise customers: many US enterprise, government and public-sector buyers ban PRC-hosted AI services outright. Check the customer's vendor policy before DeepSeek appears anywhere in a data-flow diagram.
  • user_id: an opaque per-end-user identifier for DeepSeek's safety, KV-cache and scheduling isolation. Use a hashed or random id. It must never be an email address or a name.
  • Kenya-targeted projects: the KDPA 2019 cross-border transfer rules apply too. See COMPLIANCE_GUIDE.md.

Environment Variables

The only secret is the API key:

Bash
DEEPSEEK_API_KEY=sk-...

Non-secret settings go in code or config, not in the secrets vault:

SettingValue
OpenAI-format base URLhttps://api.deepseek.com
Anthropic-format base URLhttps://api.deepseek.com/anthropic
Beta base URL (FIM, prefix, strict tools)https://api.deepseek.com/beta
Default modeldeepseek-flash
Escalation modeldeepseek-v4-pro

Troubleshooting

IssueFix
model not found / 400 on deepseek-chat / deepseek-reasonerRetired 2026-07-24. Use deepseek-flash.
Unexpectedly high bill or slow responsesThinking is on by default. Send reasoning_effort: "none" for bulk calls.
temperature has no effectIgnored in thinking mode. Turn thinking off first.
400 on the second tool-loop requestYou dropped reasoning_content. Append the full assistant message.
400 with tool_choice: "required"Not allowed in thinking mode. Use "auto" or turn thinking off.
JSON mode returns whitespace / emptyPut "json" and an example shape in the prompt, set max_tokens, and retry on empty.
Image input rejected on deepseek-v4-proPro is text-only. Use deepseek-flash.
FIM / strict tools failUse baseURL: "https://api.deepseek.com/beta". FIM is non-thinking only.
429 under loadAccount concurrency is 2,500 (Flash) / 500 (Pro). Back off, fall back, or request expansion (free).
reasoning_content is a TS errorIt is not in the OpenAI types. Intersect ChatCompletionMessage & { reasoning_content?: string | null }.

codeAmani notes

  • Secrets server-side only. DEEPSEEK_API_KEY lives in .env.local, Vercel/Netlify env vars or Hazina, never in a client bundle. Call DeepSeek from API routes or server actions.
  • Routing: Anthropic Claude stays primary. DeepSeek is the cost tier for non-sensitive bulk and cache-heavy work, always with a Claude fallback (see lib/ai-resilient.ts above). Re-run the cost comparison against claude-haiku-5-5 before scaling a route.
  • US-first data rule (new, 2026-10-20): PRC processing makes the hosted API off-limits for customer PII/PHI/payment data. Document every DeepSeek call site in the project's data-flow notes. Do not point codeAmani's own Claude Code sessions at the /anthropic endpoint either, because our repos contain customer code and secrets.
  • Payments: DeepSeek is a model provider and has nothing to do with payment rails. Stripe stays the default. M-Pesa is used only for Kenya-targeted projects, and M-Pesa transaction logs count as payment data, so they never go to hosted DeepSeek.
  • African market: off-peak covers every weekend hour and every hour outside 01:00–04:00 and 06:00–10:00 UTC (04:00–07:00 and 09:00–13:00 EAT). That makes overnight and weekend batch jobs for Kenya-targeted projects cheap. KDPA cross-border rules still apply, so prefer self-hosted weights for personal data.