From 38d18adefd7edadf940be5f4b8321b69dd439d91 Mon Sep 17 00:00:00 2001 From: mini Date: Fri, 15 May 2026 18:37:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(pricing):=20=E6=96=B0=E5=A2=9E=E6=8C=89?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=88=86=E7=BA=A7=E5=AE=9A=E4=BB=B7=E8=A1=A8?= =?UTF-8?q?=EF=BC=88C=20=E6=96=B9=E6=A1=88=EF=BC=9A=E7=BC=96=E7=A8=8B/?= =?UTF-8?q?=E9=AB=98=E6=80=A7=E8=83=BD/=E4=BD=8E=E4=BB=B7=E5=A5=BD?= =?UTF-8?q?=E7=94=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 Pricing 页 calc-section 之后、works-everywhere 之前插入 model pricing section,3 组共 19 个模型卡片,参照对标站 aiberm 真实定价: - 编程模型 (8): GPT-5.3 Codex -90% / Claude Opus 4.6 -81% 等 - 高性能模型 (7): Claude Opus 4.6 -26.4% / Gemini 3 Pro -63.2% 等 - 低价好用 (4): GPT-4o-mini -84.7% / Xiaomi Mimo -3% 等 样式沿用 puro 设计 token(card hover lift、provider 色卡)。 i18n 新增 pricing.modelPricing.* 命名空间(中英双语)。 --- frontend/src/i18n/locales/en.ts | 11 ++ frontend/src/i18n/locales/zh.ts | 11 ++ frontend/src/views/pricing/PricingView.vue | 199 +++++++++++++++++++++ 3 files changed, 221 insertions(+) diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index aabe29e4..745ba738 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -6677,6 +6677,17 @@ export default { a10Link: 'docs', a10Part2: '. Full model list available in the docs.', }, + modelPricing: { + kicker: '// model pricing', + title: 'Per-model pricing · transparent', + sub: 'Token-based billing with discount included. No monthly fees, no minimum. Prices shown per 1M tokens.', + groupCoding: 'Coding models', + groupPerformance: 'Premium models', + groupBudget: 'Budget-friendly', + inputLabel: 'Input', + outputLabel: 'Output', + unit: '/ 1M tokens', + }, finalCta: { kicker: '// ready to start', title: 'Get your first sk-puro-* key in 5 minutes', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index b6f9a40c..4d8b2239 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -6867,6 +6867,17 @@ export default { a10Link: '文档', a10Part2: '。', }, + modelPricing: { + kicker: '// model pricing', + title: '按模型分级·透明定价', + sub: '按 token 计费,价格已含折扣。无月费、无最低消费。下方数字为每百万 tokens 单价。', + groupCoding: '编程模型', + groupPerformance: '高性能模型', + groupBudget: '低价好用模型', + inputLabel: 'Input', + outputLabel: 'Output', + unit: '/ 百万 tokens', + }, finalCta: { kicker: '// ready to start', title: '5 分钟,拿到你第一个 sk-puro-* key', diff --git a/frontend/src/views/pricing/PricingView.vue b/frontend/src/views/pricing/PricingView.vue index 09834730..98ee88a4 100644 --- a/frontend/src/views/pricing/PricingView.vue +++ b/frontend/src/views/pricing/PricingView.vue @@ -161,6 +161,44 @@ + +
+
+
{{ $t('pricing.modelPricing.kicker') }}
+

{{ $t('pricing.modelPricing.title') }}

+

{{ $t('pricing.modelPricing.sub') }}

+
+ +
+

{{ $t(group.titleKey) }}

+
+
+
+ {{ m.provider }} +

{{ m.name }}

+
+
+
+
{{ $t('pricing.modelPricing.inputLabel') }}
+
+ ${{ m.input }} + {{ m.discount }} +
+
+
+
{{ $t('pricing.modelPricing.outputLabel') }}
+
+ ${{ m.output }} + {{ m.discount }} +
+
+
+
{{ $t('pricing.modelPricing.unit') }}
+
+
+
+
+
@@ -351,6 +389,46 @@ const customBonus = computed(() => { return 21 }) const customCredit = computed(() => Math.round(customAmt.value * (1 + customBonus.value / 100))) + +const modelGroups = [ + { + key: 'coding', + titleKey: 'pricing.modelPricing.groupCoding', + models: [ + { name: 'GPT-5.3 Codex', provider: 'OpenAI', input: '0.179', output: '1.435', discount: '-90%' }, + { name: 'GPT-5.2 Codex', provider: 'OpenAI', input: '0.690', output: '5.520', discount: '-60.6%' }, + { name: 'Claude Opus 4.6', provider: 'Anthropic', input: '0.950', output: '4.750', discount: '-81%' }, + { name: 'Claude Opus 4.5', provider: 'Anthropic', input: '0.950', output: '4.750', discount: '-81%' }, + { name: 'Claude Sonnet 4.5', provider: 'Anthropic', input: '0.570', output: '2.850', discount: '-81%' }, + { name: 'Claude Haiku 4.5', provider: 'Anthropic', input: '0.190', output: '0.950', discount: '-24%' }, + { name: 'Grok Code Fast 1', provider: 'xAI', input: '0.147', output: '1.104', discount: '-26.5%' }, + { name: 'MiniMax m2.1', provider: 'MiniMax', input: '0.230', output: '0.954', discount: '-14.8%' } + ] + }, + { + key: 'performance', + titleKey: 'pricing.modelPricing.groupPerformance', + models: [ + { name: 'Claude Opus 4.6', provider: 'Anthropic', input: '3.680', output: '18.400', discount: '-26.4%' }, + { name: 'Claude Opus 4.5', provider: 'Anthropic', input: '3.680', output: '18.400', discount: '-26.4%' }, + { name: 'Claude Sonnet 4.5', provider: 'Anthropic', input: '2.668', output: '13.340', discount: '-11.1%' }, + { name: 'GPT-5.2', provider: 'OpenAI', input: '0.690', output: '5.520', discount: '-60.6%' }, + { name: 'Gemini 3 Pro', provider: 'Google', input: '0.460', output: '2.760', discount: '-63.2%' }, + { name: 'DeepSeek v3.2', provider: 'DeepSeek', input: '0.207', output: '0.311', discount: '-26.1%' }, + { name: 'Grok 4.1 Fast', provider: 'xAI', input: '0.156', output: '0.391', discount: '-22%' } + ] + }, + { + key: 'budget', + titleKey: 'pricing.modelPricing.groupBudget', + models: [ + { name: 'GPT-5-mini', provider: 'OpenAI', input: '0.069', output: '0.552', discount: '-72.4%' }, + { name: 'GPT-4o-mini', provider: 'OpenAI', input: '0.023', output: '0.092', discount: '-84.7%' }, + { name: 'Gemini 3 Flash', provider: 'Google', input: '0.083', output: '0.662', discount: '-83.4%' }, + { name: 'Xiaomi Mimo v2', provider: 'Xiaomi', input: '0.097', output: '0.290', discount: '-3%' } + ] + } +]