feat: configure catalog token pricing

This commit is contained in:
wlx committed 2026-09-25 18:16:40 +08:00
1 parent 4e09dfa0e0
commit 05ed1fc9a4
5 files changed
+299 -8

No files matched your search

@@ -0,0 +1,271 @@
-- Prices are stored in CNY per 1M tokens. The list price remains in USD metadata for auditability.
-- Assumption for this release: 1 USD = 7.20 CNY; the displayed fold is the supplied fold plus 1.0.
WITH price_plan(provider_code, upstream_model, pricing) AS (
VALUES
('apipro', 'claude-fable-5', '{"input":40.32,"output":201.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":10,"output":50,"cachedInput":1},"cachedInput":4.032}'::jsonb),
('apipro', 'claude-fable-5-1', '{"input":40.32,"output":201.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":10,"output":50,"cachedInput":0.25},"cachedInput":1.008}'::jsonb),
('apipro', 'claude-haiku-4-5-20251001', '{"input":4.032,"output":20.16,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1,"output":5,"cachedInput":0.1},"cachedInput":0.4032}'::jsonb),
('apipro', 'claude-haiku-4-5-20251001-thinking', '{"input":4.032,"output":20.16,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1,"output":5}}'::jsonb),
('apipro', 'claude-opus-4-1-20250805', '{"input":60.48,"output":302.4,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":15,"output":75,"cachedInput":1.5},"cachedInput":6.048}'::jsonb),
('apipro', 'claude-opus-4-1-20250805-thinking', '{"input":60.48,"output":302.4,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":15,"output":75,"cachedInput":1.5},"cachedInput":6.048}'::jsonb),
('apipro', 'claude-opus-4-20250514', '{"input":60.48,"output":302.4,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":15,"output":75,"cachedInput":1.5},"cachedInput":6.048}'::jsonb),
('apipro', 'claude-opus-4-20250514-thinking', '{"input":60.48,"output":302.4,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":15,"output":75,"cachedInput":1.5},"cachedInput":6.048}'::jsonb),
('apipro', 'claude-opus-4-5-20251101', '{"input":20.16,"output":100.8,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'claude-opus-4-5-20251101-thinking', '{"input":20.16,"output":100.8,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'claude-opus-4-6', '{"input":20.16,"output":100.8,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'claude-opus-4-6-20260205', '{"input":20.16,"output":100.8,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'claude-opus-4-6-thinking', '{"input":20.16,"output":100.8,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'claude-opus-4-7', '{"input":20.16,"output":100.8,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'claude-opus-4-8', '{"input":20.16,"output":100.8,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'claude-opus-5', '{"input":20.16,"output":100.8,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":25,"cachedInput":0.25},"cachedInput":1.008}'::jsonb),
('apipro', 'claude-opus-5-5', '{"input":16.128,"output":80.64,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":4,"output":20,"cachedInput":0.2},"cachedInput":0.8064}'::jsonb),
('apipro', 'claude-sonnet-4-20250514', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15,"cachedInput":0.3},"cachedInput":1.2096}'::jsonb),
('apipro', 'claude-sonnet-4-20250514-thinking', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15,"cachedInput":0.3},"cachedInput":1.2096}'::jsonb),
('apipro', 'claude-sonnet-4-5', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15}}'::jsonb),
('apipro', 'claude-sonnet-4-5-20250929', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15,"cachedInput":0.3},"cachedInput":1.2096}'::jsonb),
('apipro', 'claude-sonnet-4-5-20250929-thinking', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15,"cachedInput":0.3},"cachedInput":1.2096}'::jsonb),
('apipro', 'claude-sonnet-4-6', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15,"cachedInput":0.3},"cachedInput":1.2096}'::jsonb),
('apipro', 'claude-sonnet-4-6-20260218', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15,"cachedInput":0.3},"cachedInput":1.2096}'::jsonb),
('apipro', 'claude-sonnet-4-6-thinking', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15}}'::jsonb),
('apipro', 'claude-sonnet-5', '{"input":8.064,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":10,"cachedInput":0.2},"cachedInput":0.8064}'::jsonb),
('apipro', 'codex-auto-review', '{"input":20.16,"output":120.96,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":30,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'deepseek-ocr', '{"input":0.20057076,"output":0.80228772,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.042857,"output":0.171429}}'::jsonb),
('apipro', 'deepseek-r1', '{"input":2.683512,"output":10.734048,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5734,"output":2.2936}}'::jsonb),
('apipro', 'deepseek-r1-distill-qwen-32b', '{"input":1.00285848,"output":4.01142924,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.214286,"output":0.857143}}'::jsonb),
('apipro', 'deepseek-v3', '{"input":1.34215848,"output":5.368428,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.286786,"output":1.1471}}'::jsonb),
('apipro', 'deepseek-v3-0324', '{"input":1.34215848,"output":5.368428,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.286786,"output":1.1471}}'::jsonb),
('apipro', 'deepseek-v3.1', '{"input":2.68431228,"output":8.052876,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.573571,"output":1.7207}}'::jsonb),
('apipro', 'deepseek-v3.2', '{"input":1.34215848,"output":2.01323772,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.286786,"output":0.430179}}'::jsonb),
('apipro', 'deepseek-v3.2-think', '{"input":1.34215848,"output":2.01323772,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.286786,"output":0.430179}}'::jsonb),
('apipro', 'deepseek-v4-flash', '{"input":0.66924,"output":1.33848,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.143,"output":0.286,"cachedInput":0.029},"cachedInput":0.13572}'::jsonb),
('apipro', 'deepseek-v4-flash-0731', '{"input":0.66924,"output":1.33848,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.143,"output":0.286,"cachedInput":0.029},"cachedInput":0.13572}'::jsonb),
('apipro', 'deepseek-v4-pro', '{"input":8.0262,"output":16.04772,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.715,"output":3.429,"cachedInput":0.143},"cachedInput":0.66924}'::jsonb),
('apipro', 'deepseek-v4-pro-0813', '{"input":6.017076,"output":18.051228,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.2857,"output":3.8571,"cachedInput":0.12857},"cachedInput":0.6017076}'::jsonb),
('apipro', 'deepseek-v4.1-flash', '{"input":0.668304,"output":2.674152,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.1428,"output":0.5714,"cachedInput":0.01428},"cachedInput":0.0668304}'::jsonb),
('apipro', 'doubao-1-5-lite-32k-250115', '{"input":2.16,"output":5.4,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":0.75}}'::jsonb),
('apipro', 'doubao-1-5-pro-32k-250115', '{"input":5.76,"output":14.4,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.8,"output":2}}'::jsonb),
('apipro', 'doubao-1-5-pro-32k-character-250715', '{"input":5.76,"output":14.4,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.8,"output":2}}'::jsonb),
('apipro', 'doubao-embedding-text', '{"input":0.576,"output":0.576,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.08,"output":0.08}}'::jsonb),
('apipro', 'doubao-embedding-text-240715', '{"input":0.576,"output":0.576,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.08,"output":0.08}}'::jsonb),
('apipro', 'doubao-seed-1-6-250615', '{"input":5.76,"output":57.6,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.8,"output":8}}'::jsonb),
('apipro', 'doubao-seed-1-6-251015', '{"input":5.76,"output":57.6,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.8,"output":8}}'::jsonb),
('apipro', 'doubao-seed-1-6-flash-250828', '{"input":2.16,"output":21.6,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":3}}'::jsonb),
('apipro', 'doubao-seed-1-6-lite-251015', '{"input":5.76,"output":14.4,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.8,"output":2}}'::jsonb),
('apipro', 'doubao-seed-1-6-vision-250815', '{"input":5.76,"output":57.6,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.8,"output":8}}'::jsonb),
('apipro', 'doubao-seed-1-8-251228', '{"input":5.76,"output":57.6,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.8,"output":8}}'::jsonb),
('apipro', 'doubao-seed-code-preview-251028', '{"input":5.76,"output":14.4,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.8,"output":2}}'::jsonb),
('apipro', 'doubao-seedance-2.0', '{"input":47.31408,"output":47.31408,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":6.5714,"output":6.5714}}'::jsonb),
('apipro', 'doubao-seedance-2.0-fast', '{"input":38.05704,"output":38.05704,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5.2857,"output":5.2857}}'::jsonb),
('apipro', 'doubao-seedance-2.0-mini', '{"input":23.65704,"output":23.65704,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3.2857,"output":3.2857}}'::jsonb),
('apipro', 'doubao-seedance-2.5', '{"input":72,"output":72,"unit":"CNY / 1M tokens","discount":10,"discountLabel":"10.0折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":10,"output":10}}'::jsonb),
('apipro', 'gemini-2.5-flash', '{"input":1.2096,"output":10.08,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":2.5}}'::jsonb),
('apipro', 'gemini-2.5-flash-image', '{"input":1.2096,"output":120.96,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":30}}'::jsonb),
('apipro', 'gemini-2.5-flash-image-preview', '{"input":302.4,"output":2520,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":625}}'::jsonb),
('apipro', 'gemini-2.5-flash-lite', '{"input":0.4032,"output":1.6128,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.1,"output":0.4}}'::jsonb),
('apipro', 'gemini-2.5-flash-nothinking', '{"input":1.2096,"output":10.08,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":2.5}}'::jsonb),
('apipro', 'gemini-2.5-flash-preview-09-2025', '{"input":302.4,"output":4.032,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":1}}'::jsonb),
('apipro', 'gemini-2.5-flash-preview-tts', '{"input":151.2,"output":3527.9496,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":37.5,"output":874.9875}}'::jsonb),
('apipro', 'gemini-2.5-flash-thinking', '{"input":302.4,"output":2520,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":625}}'::jsonb),
('apipro', 'gemini-2.5-flash-thinking-*', '{"input":302.4,"output":2520,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":625}}'::jsonb),
('apipro', 'gemini-2.5-pro', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10}}'::jsonb),
('apipro', 'gemini-2.5-pro-nothinking', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10}}'::jsonb),
('apipro', 'gemini-2.5-pro-preview-tts', '{"input":151.2,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":37.5,"output":300}}'::jsonb),
('apipro', 'gemini-2.5-pro-thinking', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10}}'::jsonb),
('apipro', 'gemini-2.5-pro-thinking-*', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10}}'::jsonb),
('apipro', 'gemini-2.5-pro-thinking-1024', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10}}'::jsonb),
('apipro', 'gemini-2.5-pro-thinking-128', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10}}'::jsonb),
('apipro', 'gemini-2.5-pro-thinking-256', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10}}'::jsonb),
('apipro', 'gemini-2.5-pro-thinking-512', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10}}'::jsonb),
('apipro', 'gemini-3-flash', '{"input":2.016,"output":12.096,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5,"output":3,"cachedInput":0.05},"cachedInput":0.2016}'::jsonb),
('apipro', 'gemini-3-flash-preview', '{"input":2.016,"output":12.096,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5,"output":3,"cachedInput":0.05},"cachedInput":0.2016}'::jsonb),
('apipro', 'gemini-3-flash-preview-low', '{"input":2.016,"output":12.096,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5,"output":3}}'::jsonb),
('apipro', 'gemini-3-flash-preview-minimal', '{"input":2.016,"output":12.096,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5,"output":3,"cachedInput":0.05},"cachedInput":0.2016}'::jsonb),
('apipro', 'gemini-3-flash-preview-nothinking', '{"input":2.016,"output":12.096,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5,"output":3,"cachedInput":0.05},"cachedInput":0.2016}'::jsonb),
('apipro', 'gemini-3-flash-preview-thinking', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-3-flash-preview-thinking-*', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-3-pro-image', '{"input":8.064,"output":483.84,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":120}}'::jsonb),
('apipro', 'gemini-3-pro-image-preview', '{"input":8.064,"output":483.84,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":120}}'::jsonb),
('apipro', 'gemini-3.1-flash-image', '{"input":2.016,"output":241.92,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5,"output":60}}'::jsonb),
('apipro', 'gemini-3.1-flash-image-preview', '{"input":2.016,"output":241.92,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5,"output":60}}'::jsonb),
('apipro', 'gemini-3.1-flash-lite', '{"input":1.008,"output":6.048,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.25,"output":1.5}}'::jsonb),
('apipro', 'gemini-3.1-flash-lite-image', '{"input":1.008,"output":120.96,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.25,"output":30}}'::jsonb),
('apipro', 'gemini-3.1-flash-lite-preview', '{"input":1.008,"output":6.048,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.25,"output":1.5}}'::jsonb),
('apipro', 'gemini-3.1-flash-tts-preview', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-3.1-pro-low', '{"input":302.4,"output":1814.4,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":450}}'::jsonb),
('apipro', 'gemini-3.1-pro-preview', '{"input":8.064,"output":48.384,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":12}}'::jsonb),
('apipro', 'gemini-3.1-pro-preview-customtools', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-3.1-pro-preview-high', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-3.1-pro-preview-low', '{"input":8.064,"output":48.384,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":12}}'::jsonb),
('apipro', 'gemini-3.1-pro-preview-medium', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-3.1-pro-preview-thinking', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-3.1-pro-preview-thinking-*', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-3.1-pro-preview-thinking-128', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15}}'::jsonb),
('apipro', 'gemini-3.1-pro-preview-thinking-low', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-3.5-flash', '{"input":6.048,"output":36.288,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.5,"output":9,"cachedInput":0.15},"cachedInput":0.6048}'::jsonb),
('apipro', 'gemini-3.5-flash-lite', '{"input":1.2096,"output":10.08,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":2.5}}'::jsonb),
('apipro', 'gemini-3.6-flash', '{"input":3.024,"output":15.12,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.75,"output":3.75,"cachedInput":0.075},"cachedInput":0.3024}'::jsonb),
('apipro', 'gemini-3.7-flash', '{"input":3.024,"output":15.12,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.75,"output":3.75}}'::jsonb),
('apipro', 'gemini-3.8-flash', '{"input":3.024,"output":15.12,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.75,"output":3.75,"cachedInput":0.075},"cachedInput":0.3024}'::jsonb),
('apipro', 'gemini-embedding-001', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-embedding-2', '{"input":0.8064,"output":3.2256,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.8}}'::jsonb),
('apipro', 'gemini-flash-latest', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-flash-latest-nothinking', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-flash-latest-thinking', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-flash-latest-thinking-*', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-flash-lite-latest', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-flash-lite-latest-nothinking', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-flash-lite-latest-thinking', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-flash-lite-latest-thinking-*', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-pro-latest', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-pro-latest-thinking', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-pro-latest-thinking-*', '{"input":302.4,"output":1209.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":300}}'::jsonb),
('apipro', 'gemini-robotics-er-1.5-preview', '{"input":302.4,"output":2520,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":75,"output":625}}'::jsonb),
('apipro', 'glm-4.7', '{"input":2.00772,"output":9.36,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.429,"output":2}}'::jsonb),
('apipro', 'glm-5', '{"input":2.674152,"output":12.034152,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5714,"output":2.5714}}'::jsonb),
('apipro', 'glm-5-apipro', '{"input":2.674152,"output":12.034152,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5714,"output":2.5714}}'::jsonb),
('apipro', 'glm-5.1', '{"input":4.011228,"output":16.045848,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.8571,"output":3.4286}}'::jsonb),
('apipro', 'glm-5.1-apipro', '{"input":4.011228,"output":16.045848,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.8571,"output":3.4286}}'::jsonb),
('apipro', 'glm-5.2', '{"input":5.348304,"output":18.72,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.1428,"output":4,"cachedInput":0.2857},"cachedInput":1.337076}'::jsonb),
('apipro', 'glm-5.3', '{"input":5.348304,"output":18.72,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.1428,"output":4,"cachedInput":0.2857},"cachedInput":1.337076}'::jsonb),
('apipro', 'gpt-3.5-turbo-0125', '{"input":2.016,"output":4.032,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5,"output":1}}'::jsonb),
('apipro', 'gpt-3.5-turbo-16k', '{"input":12.096,"output":24.192,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":6}}'::jsonb),
('apipro', 'gpt-4.1', '{"input":8.064,"output":32.256,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":8,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'gpt-4.1-2025-04-14', '{"input":8.064,"output":32.256,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":8,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'gpt-4.1-mini', '{"input":1.6128,"output":6.4512,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.4,"output":1.6,"cachedInput":0.1},"cachedInput":0.4032}'::jsonb),
('apipro', 'gpt-4.1-mini-2025-04-14', '{"input":1.6128,"output":6.4512,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.4,"output":1.6,"cachedInput":0.1},"cachedInput":0.4032}'::jsonb),
('apipro', 'gpt-4.1-nano', '{"input":0.4032,"output":1.6128,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.1,"output":0.4,"cachedInput":0.025},"cachedInput":0.1008}'::jsonb),
('apipro', 'gpt-4.1-nano-2025-04-14', '{"input":0.4032,"output":0.1008,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.1,"output":0.025,"cachedInput":0.05},"cachedInput":0.2016}'::jsonb),
('apipro', 'gpt-4o', '{"input":10.08,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2.5,"output":10,"cachedInput":1.25},"cachedInput":5.04}'::jsonb),
('apipro', 'gpt-4o-mini', '{"input":0.6048,"output":2.4192,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.15,"output":0.6,"cachedInput":0.075},"cachedInput":0.3024}'::jsonb),
('apipro', 'gpt-4o-mini-2024-07-18', '{"input":1.2096,"output":4.8384,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":1.2,"cachedInput":0.15},"cachedInput":0.6048}'::jsonb),
('apipro', 'gpt-5', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10,"cachedInput":0.125},"cachedInput":0.504}'::jsonb),
('apipro', 'gpt-5-2025-08-07', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10,"cachedInput":0.125},"cachedInput":0.504}'::jsonb),
('apipro', 'gpt-5-chat', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10,"cachedInput":0.125},"cachedInput":0.504}'::jsonb),
('apipro', 'gpt-5-chat-latest', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10,"cachedInput":0.125},"cachedInput":0.504}'::jsonb),
('apipro', 'gpt-5-mini', '{"input":1.008,"output":8.064,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.25,"output":2,"cachedInput":0.025},"cachedInput":0.1008}'::jsonb),
('apipro', 'gpt-5-mini-2025-08-07', '{"input":1.008,"output":8.064,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.25,"output":2,"cachedInput":0.025},"cachedInput":0.1008}'::jsonb),
('apipro', 'gpt-5-nano', '{"input":0.2016,"output":1.6128,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.05,"output":0.4,"cachedInput":0.005},"cachedInput":0.02016}'::jsonb),
('apipro', 'gpt-5-nano-2025-08-07', '{"input":0.2016,"output":1.6128,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.05,"output":0.4,"cachedInput":0.005},"cachedInput":0.02016}'::jsonb),
('apipro', 'gpt-5.1', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10,"cachedInput":0.125},"cachedInput":0.504}'::jsonb),
('apipro', 'gpt-5.1-codex', '{"input":5.04,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":10,"cachedInput":0.125},"cachedInput":0.504}'::jsonb),
('apipro', 'gpt-5.2', '{"input":7.056,"output":56.448,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.75,"output":14,"cachedInput":0.175},"cachedInput":0.7056}'::jsonb),
('apipro', 'gpt-5.2-pro', '{"input":84.672,"output":2844.9792,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":21,"output":705.6}}'::jsonb),
('apipro', 'gpt-5.2-pro-2025-12-11', '{"input":84.672,"output":2844.9792,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":21,"output":705.6}}'::jsonb),
('apipro', 'gpt-5.3-codex', '{"input":7.056,"output":56.448,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.75,"output":14,"cachedInput":0.175},"cachedInput":0.7056}'::jsonb),
('apipro', 'gpt-5.4', '{"input":10.08,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2.5,"output":15}}'::jsonb),
('apipro', 'gpt-5.4-mini', '{"input":3.024,"output":18.144,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.75,"output":4.5,"cachedInput":0.075},"cachedInput":0.3024}'::jsonb),
('apipro', 'gpt-5.4-nano', '{"input":0.8064,"output":5.04,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":1.25,"cachedInput":0.02},"cachedInput":0.08064}'::jsonb),
('apipro', 'gpt-5.4-pro', '{"input":120.96,"output":725.76,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":30,"output":180}}'::jsonb),
('apipro', 'gpt-5.5', '{"input":20.16,"output":120.96,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":30}}'::jsonb),
('apipro', 'gpt-5.5-pro', '{"input":120.96,"output":725.76,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":30,"output":180}}'::jsonb),
('apipro', 'gpt-5.6-luna', '{"input":0.8064,"output":4.8384,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":1.2}}'::jsonb),
('apipro', 'gpt-5.6-sol', '{"input":16.128,"output":80.64,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":4,"output":20}}'::jsonb),
('apipro', 'gpt-5.6-terra', '{"input":8.064,"output":48.384,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":12}}'::jsonb),
('apipro', 'gpt-6-astra', '{"input":40.32,"output":201.6,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":10,"output":50}}'::jsonb),
('apipro', 'gpt-6-luna', '{"input":0.4032,"output":2.016,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.1,"output":0.5}}'::jsonb),
('apipro', 'gpt-6-sol', '{"input":8.064,"output":40.32,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":10}}'::jsonb),
('apipro', 'gpt-image-1.5', '{"input":32.256,"output":129.024,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":8,"output":32}}'::jsonb),
('apipro', 'gpt-image-2', '{"input":20.16,"output":120.96,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":30,"cachedInput":2},"cachedInput":8.064}'::jsonb),
('apipro', 'gpt-image-2.5-flare', '{"input":20.16,"output":120.96,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":30,"cachedInput":2},"cachedInput":8.064}'::jsonb),
('apipro', 'gpt-image-2.5-sunburst', '{"input":20.16,"output":120.96,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":5,"output":30,"cachedInput":2},"cachedInput":8.064}'::jsonb),
('apipro', 'grok-3', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15,"cachedInput":0.75},"cachedInput":3.024}'::jsonb),
('apipro', 'grok-3-mini', '{"input":1.2096,"output":2.016,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":0.5}}'::jsonb),
('apipro', 'grok-4', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15,"cachedInput":0.75},"cachedInput":3.024}'::jsonb),
('apipro', 'grok-4-0709', '{"input":12.096,"output":60.48,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":3,"output":15}}'::jsonb),
('apipro', 'grok-4-1-fast-non-reasoning', '{"input":0.8064,"output":2.016,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.5,"cachedInput":0.05},"cachedInput":0.2016}'::jsonb),
('apipro', 'grok-4-1-fast-reasoning', '{"input":0.8064,"output":2.016,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.5,"cachedInput":0.05},"cachedInput":0.2016}'::jsonb),
('apipro', 'grok-4-20-non-reasoning', '{"input":5.04,"output":10.08,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":2.5,"cachedInput":0.2},"cachedInput":0.8064}'::jsonb),
('apipro', 'grok-4-fast', '{"input":0.8064,"output":2.016,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.5,"cachedInput":0.05},"cachedInput":0.2016}'::jsonb),
('apipro', 'grok-4-fast-non-reasoning', '{"input":0.8064,"output":2.016,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.5,"cachedInput":0.05},"cachedInput":0.2016}'::jsonb),
('apipro', 'grok-4-fast-reasoning', '{"input":0.8064,"output":2.016,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.5}}'::jsonb),
('apipro', 'grok-4.20-0309-non-reasoning', '{"input":5.04,"output":10.08,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":2.5,"cachedInput":0.2},"cachedInput":0.8064}'::jsonb),
('apipro', 'grok-4.20-0309-reasoning', '{"input":5.04,"output":10.08,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":2.5,"cachedInput":0.2},"cachedInput":0.8064}'::jsonb),
('apipro', 'grok-4.3', '{"input":5.04,"output":10.08,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.25,"output":2.5}}'::jsonb),
('apipro', 'grok-4.5', '{"input":8.064,"output":24.192,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":6}}'::jsonb),
('apipro', 'grok-4.6', '{"input":8.064,"output":24.192,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":6}}'::jsonb),
('apipro', 'grok-4.7', '{"input":8.064,"output":24.192,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":6}}'::jsonb),
('apipro', 'grok-code-fast-1', '{"input":0.8064,"output":6.048,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":1.5,"cachedInput":0.02},"cachedInput":0.08064}'::jsonb),
('apipro', 'kimi-k2-thinking', '{"input":2.67427368,"output":10.697076,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.571426,"output":2.2857,"cachedInput":0.142857},"cachedInput":0.66857076}'::jsonb),
('apipro', 'kimi-k2.5', '{"input":2.67427368,"output":14.04,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.571426,"output":3,"cachedInput":0.114285},"cachedInput":0.5348538}'::jsonb),
('apipro', 'kimi-k2.6', '{"input":4.345848,"output":18.051228,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.9286,"output":3.8571,"cachedInput":0.1571},"cachedInput":0.735228}'::jsonb),
('apipro', 'kimi-k2.7-code', '{"input":4.345848,"output":18.051228,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.9286,"output":3.8571,"cachedInput":0.1857},"cachedInput":0.869076}'::jsonb),
('apipro', 'kimi-k3', '{"input":13.371696,"output":66.857076,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2.8572,"output":14.2857,"cachedInput":0.2857},"cachedInput":1.337076}'::jsonb),
('apipro', 'minimax-m2.1', '{"input":1.404,"output":5.616,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":1.2,"cachedInput":0.06},"cachedInput":0.2808}'::jsonb),
('apipro', 'minimax-m2.5', '{"input":1.404,"output":5.616,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":1.2,"cachedInput":0.03},"cachedInput":0.1404}'::jsonb),
('apipro', 'minimax-m2.7', '{"input":1.404,"output":5.616,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.3,"output":1.2,"cachedInput":0.03},"cachedInput":0.1404}'::jsonb),
('apipro', 'Moonshot-Kimi-K2-Instruct', '{"input":2.67427368,"output":10.697076,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.571426,"output":2.2857}}'::jsonb),
('apipro', 'o1', '{"input":60.48,"output":241.92,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":15,"output":60,"cachedInput":7.5},"cachedInput":30.24}'::jsonb),
('apipro', 'o1-2024-12-17', '{"input":60.48,"output":241.92,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":15,"output":60,"cachedInput":7.5},"cachedInput":30.24}'::jsonb),
('apipro', 'o3', '{"input":8.064,"output":32.256,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":8,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'o3-2025-04-16', '{"input":8.064,"output":32.256,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":8,"cachedInput":0.5},"cachedInput":2.016}'::jsonb),
('apipro', 'o3-mini', '{"input":4.4352,"output":17.7408,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.1,"output":4.4,"cachedInput":0.55},"cachedInput":2.2176}'::jsonb),
('apipro', 'o3-mini-2025-01-31', '{"input":4.4352,"output":17.7408,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.1,"output":4.4,"cachedInput":0.55},"cachedInput":2.2176}'::jsonb),
('apipro', 'o4-mini', '{"input":4.4352,"output":17.7408,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.1,"output":4.4}}'::jsonb),
('apipro', 'o4-mini-2025-04-16', '{"input":4.4352,"output":17.7408,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.1,"output":4.4}}'::jsonb),
('apipro', 'qwen-flash', '{"input":0.09761076,"output":0.09761076,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.020857,"output":0.020857}}'::jsonb),
('apipro', 'qwen-max', '{"input":1.60457544,"output":6.418152,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.342858,"output":1.3714,"cachedInput":0.068572},"cachedInput":0.32091696}'::jsonb),
('apipro', 'qwen-plus', '{"input":1.46417076,"output":3.81730284,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.312857,"output":0.815663}}'::jsonb),
('apipro', 'qwen-turbo', '{"input":1.46417076,"output":3.05384508,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.312857,"output":0.652531}}'::jsonb),
('apipro', 'qwen3-235b-a22b-instruct-2507', '{"input":2.808,"output":11.232,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.6,"output":2.4}}'::jsonb),
('apipro', 'qwen3-235b-a22b-thinking-2507', '{"input":2.808,"output":22.464,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.6,"output":4.8}}'::jsonb),
('apipro', 'qwen3-30b-a3b-instruct-2507', '{"input":0.936,"output":3.744,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.8}}'::jsonb),
('apipro', 'qwen3-30b-a3b-thinking-2507', '{"input":0.936,"output":3.744,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.8}}'::jsonb),
('apipro', 'qwen3-32b', '{"input":0.936,"output":3.744,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.8}}'::jsonb),
('apipro', 'qwen3-8b', '{"input":0.702,"output":2.808,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.15,"output":0.6}}'::jsonb),
('apipro', 'qwen3-coder-flash', '{"input":2.34,"output":9.36,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5,"output":2}}'::jsonb),
('apipro', 'qwen3-coder-plus', '{"input":9.36,"output":37.44,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":2,"output":8,"cachedInput":0.4},"cachedInput":1.872}'::jsonb),
('apipro', 'qwen3-max', '{"input":2.683512,"output":10.734048,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.5734,"output":2.2936,"cachedInput":0.05734},"cachedInput":0.2683512}'::jsonb),
('apipro', 'qwen3-next-80b-a3b-instruct', '{"input":0.0936,"output":0.0936,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.02,"output":0.02}}'::jsonb),
('apipro', 'qwen3-next-80b-a3b-thinking', '{"input":0.0936,"output":0.0936,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.02,"output":0.02}}'::jsonb),
('apipro', 'qwen3-omni-flash', '{"input":0.936,"output":0.936,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.2}}'::jsonb),
('apipro', 'qwen3-vl-235b-a22b-instruct', '{"input":2.808,"output":11.232,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.6,"output":2.4}}'::jsonb),
('apipro', 'qwen3-vl-235b-a22b-thinking', '{"input":2.808,"output":22.464,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.6,"output":4.8}}'::jsonb),
('apipro', 'qwen3-vl-30b-a3b-instruct', '{"input":0.936,"output":3.744,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.8}}'::jsonb),
('apipro', 'qwen3-vl-32b-instruct', '{"input":0.936,"output":0.936,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.2}}'::jsonb),
('apipro', 'qwen3-vl-32b-thinking', '{"input":0.936,"output":0.936,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":0.2}}'::jsonb),
('apipro', 'qwen3-vl-8b-instruct', '{"input":0.702,"output":2.808,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.15,"output":0.6}}'::jsonb),
('apipro', 'qwen3-vl-8b-thinking', '{"input":0.702,"output":2.808,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.15,"output":0.6}}'::jsonb),
('apipro', 'qwen3-vl-plus', '{"input":0.936,"output":9.36,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2,"output":2}}'::jsonb),
('apipro', 'qwen3.5-plus', '{"input":0.534924,"output":3.209076,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.1143,"output":0.6857,"cachedInput":0.01143},"cachedInput":0.0534924}'::jsonb),
('apipro', 'qwen3.7-flash', '{"input":0.1386216,"output":0.55458,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.02962,"output":0.1185}}'::jsonb),
('apipro', 'qwen3.7-max', '{"input":8.02152,"output":24.06924,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.714,"output":5.143,"cachedInput":0.3429},"cachedInput":1.604772}'::jsonb),
('apipro', 'qwen3.7-plus', '{"input":1.337076,"output":5.348772,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.2857,"output":1.1429}}'::jsonb),
('apipro', 'qwen3.7-text-embedding', '{"input":0.3342924,"output":0.3342924,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.07143,"output":0.07143}}'::jsonb),
('apipro', 'qwen3.8-max', '{"input":8.022924,"output":24.068772,"unit":"CNY / 1M tokens","discount":6.5,"discountLabel":"6.5折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":1.7143,"output":5.1429,"cachedInput":0.2143},"cachedInput":1.002924}'::jsonb),
('apipro', 'text-embedding-3-large', '{"input":0.52416,"output":0.52416,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.13,"output":0.13}}'::jsonb),
('apipro', 'text-embedding-3-small', '{"input":0.08064,"output":0.08064,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.02,"output":0.02}}'::jsonb),
('apipro', 'text-embedding-ada-002', '{"input":0.4032,"output":0.4032,"unit":"CNY / 1M tokens","discount":5.6,"discountLabel":"5.6折","exchangeRate":7.2,"priceSource":"APIPro 模型广场","listPriceUsd":{"input":0.1,"output":0.1}}'::jsonb),
('apihub', 'deepseek-v4-flash', '{"input":6.70716,"output":20.103624,"unit":"CNY / 1M tokens","discount":3.1,"discountLabel":"3.1折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":3.005,"output":9.007,"cachedInput":0.1},"cachedInput":0.2232}'::jsonb),
('apihub', 'deepseek-v4-pro', '{"input":20.103624,"output":60.17472,"unit":"CNY / 1M tokens","discount":3.1,"discountLabel":"3.1折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":9.007,"output":26.96,"cachedInput":0.301},"cachedInput":0.671832}'::jsonb),
('apihub', 'glm-4.7', '{"input":1.3392,"output":4.9104,"unit":"CNY / 1M tokens","discount":3.1,"discountLabel":"3.1折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":0.6,"output":2.2,"cachedInput":0.11},"cachedInput":0.24552}'::jsonb),
('apihub', 'glm-5', '{"input":8.86104,"output":39.821112,"unit":"CNY / 1M tokens","discount":3.1,"discountLabel":"3.1折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":3.97,"output":17.841,"cachedInput":0.795},"cachedInput":1.77444}'::jsonb),
('apihub', 'glm-5.1', '{"input":13.237992,"output":52.9542,"unit":"CNY / 1M tokens","discount":3.1,"discountLabel":"3.1折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":5.931,"output":23.725,"cachedInput":0.593},"cachedInput":1.323576}'::jsonb),
('apihub', 'glm-5.2', '{"input":17.28,"output":60.56208,"unit":"CNY / 1M tokens","discount":3,"discountLabel":"3.0折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":8,"output":28.038,"cachedInput":2.002},"cachedInput":4.32432}'::jsonb),
('apihub', 'kimi-k2.5', '{"input":8.00352,"output":41.97312,"unit":"CNY / 1M tokens","discount":2.8,"discountLabel":"2.8折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":3.97,"output":20.82}}'::jsonb),
('apihub', 'kimi-k2.6', '{"input":12.989088,"output":53.95824,"unit":"CNY / 1M tokens","discount":2.8,"discountLabel":"2.8折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":6.443,"output":26.765}}'::jsonb),
('apihub', 'kimi-k2.7-code', '{"input":18.236736,"output":75.757248,"unit":"CNY / 1M tokens","discount":2.8,"discountLabel":"2.8折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":9.046,"output":37.578,"cachedInput":1.81},"cachedInput":3.64896}'::jsonb),
('apihub', 'kimi-k3', '{"input":40.76352,"output":203.8176,"unit":"CNY / 1M tokens","discount":2.8,"discountLabel":"2.8折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":20.22,"output":101.1}}'::jsonb),
('apihub', 'qwen3.6-plus', '{"input":4.437216,"output":26.551872,"unit":"CNY / 1M tokens","discount":3.1,"discountLabel":"3.1折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":1.988,"output":11.896}}'::jsonb),
('apihub', 'qwen3.7-max', '{"input":26.587584,"output":79.76052,"unit":"CNY / 1M tokens","discount":3.1,"discountLabel":"3.1折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":11.912,"output":35.735,"cachedInput":1.192},"cachedInput":2.660544}'::jsonb),
('apihub', 'qwen3.7-plus', '{"input":4.437216,"output":17.751096,"unit":"CNY / 1M tokens","discount":3.1,"discountLabel":"3.1折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":1.988,"output":7.953}}'::jsonb),
('apihub', 'qwen3.8-max', '{"input":26.777304,"output":80.182368,"unit":"CNY / 1M tokens","discount":3.1,"discountLabel":"3.1折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":11.997,"output":35.924,"cachedInput":1.483},"cachedInput":3.310056}'::jsonb),
('tokenfoundryx', 'claude-fable-5', '{"input":36,"output":180,"unit":"CNY / 1M tokens","discount":5,"discountLabel":"5.0折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":10,"output":50,"cachedInput":1},"cachedInput":3.6}'::jsonb),
('tokenfoundryx', 'claude-fable-5-1', '{"input":36,"output":180,"unit":"CNY / 1M tokens","discount":5,"discountLabel":"5.0折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":10,"output":50,"cachedInput":0.25},"cachedInput":0.9}'::jsonb),
('tokenfoundryx', 'claude-opus-4-6', '{"input":12.24,"output":61.2,"unit":"CNY / 1M tokens","discount":3.4,"discountLabel":"3.4折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":1.224}'::jsonb),
('tokenfoundryx', 'claude-opus-4-7', '{"input":12.24,"output":61.2,"unit":"CNY / 1M tokens","discount":3.4,"discountLabel":"3.4折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":1.224}'::jsonb),
('tokenfoundryx', 'claude-opus-4-8', '{"input":12.24,"output":61.2,"unit":"CNY / 1M tokens","discount":3.4,"discountLabel":"3.4折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":1.224}'::jsonb),
('tokenfoundryx', 'claude-opus-5', '{"input":12.24,"output":61.2,"unit":"CNY / 1M tokens","discount":3.4,"discountLabel":"3.4折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":5,"output":25,"cachedInput":0.5},"cachedInput":1.224}'::jsonb),
('tokenfoundryx', 'claude-sonnet-4-5', '{"input":7.344,"output":36.72,"unit":"CNY / 1M tokens","discount":3.4,"discountLabel":"3.4折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":3,"output":15,"cachedInput":0.3},"cachedInput":0.7344}'::jsonb),
('tokenfoundryx', 'claude-sonnet-4-6', '{"input":7.344,"output":36.72,"unit":"CNY / 1M tokens","discount":3.4,"discountLabel":"3.4折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":3,"output":15,"cachedInput":0.3},"cachedInput":0.7344}'::jsonb),
('tokenfoundryx', 'claude-sonnet-5', '{"input":4.896,"output":24.48,"unit":"CNY / 1M tokens","discount":3.4,"discountLabel":"3.4折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":2,"output":10,"cachedInput":0.2},"cachedInput":0.4896}'::jsonb),
('tokenfoundryx', 'gpt-5.6-sol', '{"input":9.72,"output":58.32,"unit":"CNY / 1M tokens","discount":2.7,"discountLabel":"2.7折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":5,"output":30,"cachedInput":0.5},"cachedInput":0.972}'::jsonb),
('tokenfoundryx', 'gpt-5.6-terra', '{"input":3.888,"output":23.328,"unit":"CNY / 1M tokens","discount":2.7,"discountLabel":"2.7折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":2,"output":12,"cachedInput":0.2},"cachedInput":0.3888}'::jsonb),
('tokenfoundryx', 'gpt-6-astra', '{"input":19.44,"output":97.2,"unit":"CNY / 1M tokens","discount":2.7,"discountLabel":"2.7折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":10,"output":50,"cachedInput":1},"cachedInput":1.944}'::jsonb),
)
UPDATE model_catalog AS m
SET pricing = price_plan.pricing, updated_at = now()
FROM model_providers AS p, price_plan
WHERE m.provider_id = p.id
AND price_plan.provider_code = p.code
AND price_plan.upstream_model = m.upstream_model
AND m.deleted_at IS NULL;
+5 -5
View File
@@ -29,7 +29,7 @@ async function remove() {
} }
const channel = reactive({ code: '', name: '', protocol: 'openai-compatible' as CatalogProvider['protocol'], sourceType: 'relay' as CatalogProvider['sourceType'], baseUrl: '', credentialType: 'api-key' as NonNullable<CatalogProvider['credentialType']>, credentialSecret: '', description: '', status: 'active' as CatalogProvider['status'] }) const channel = reactive({ code: '', name: '', protocol: 'openai-compatible' as CatalogProvider['protocol'], sourceType: 'relay' as CatalogProvider['sourceType'], baseUrl: '', credentialType: 'api-key' as NonNullable<CatalogProvider['credentialType']>, credentialSecret: '', description: '', status: 'active' as CatalogProvider['status'] })
const model = reactive({ publicName: '', modelKey: '', vendorName: '', type: 'text' as LogicalModel['type'], mode: 'sync' as LogicalModel['mode'], description: '', inputTypes: 'text', outputTypes: 'text', status: 'active' as LogicalModel['status'] }) const model = reactive({ publicName: '', modelKey: '', vendorName: '', type: 'text' as LogicalModel['type'], mode: 'sync' as LogicalModel['mode'], description: '', inputTypes: 'text', outputTypes: 'text', status: 'active' as LogicalModel['status'] })
const group = reactive({ logicalModelId: '', providerId: '', sourceLabel: '', upstreamModel: '', input: '', output: '', cachedInput: '', unit: 'CNY / 1M tokens', priority: '100', maxConcurrency: '4', status: 'active' as CatalogModel['status'] }) const group = reactive({ logicalModelId: '', providerId: '', sourceLabel: '', upstreamModel: '', input: '', output: '', cachedInput: '', unit: 'CNY / 1M tokens', discountLabel: '', priority: '100', maxConcurrency: '4', status: 'active' as CatalogModel['status'] })
const shownModels = computed(() => models.value.filter(item => `${item.publicName} ${item.vendorName || ''} ${item.modelKey || ''}`.toLowerCase().includes(query.value.toLowerCase()))) const shownModels = computed(() => models.value.filter(item => `${item.publicName} ${item.vendorName || ''} ${item.modelKey || ''}`.toLowerCase().includes(query.value.toLowerCase())))
const shownChannels = computed(() => channels.value.filter(item => `${item.name} ${item.code}`.toLowerCase().includes(query.value.toLowerCase()))) const shownChannels = computed(() => channels.value.filter(item => `${item.name} ${item.code}`.toLowerCase().includes(query.value.toLowerCase())))
const { page: modelPage, pageSize: modelPageSize, pagedItems: pagedModels } = usePagination(shownModels) const { page: modelPage, pageSize: modelPageSize, pagedItems: pagedModels } = usePagination(shownModels)
@@ -64,7 +64,7 @@ function editModel(item?: LogicalModel) {
} }
function editGroup(parent: LogicalModel, item?: CatalogModel) { function editGroup(parent: LogicalModel, item?: CatalogModel) {
editingId.value = item?.id editingId.value = item?.id
Object.assign(group, { logicalModelId: parent.id, providerId: item?.providerId || '', sourceLabel: item?.sourceLabel || '', upstreamModel: item?.upstreamModel || '', input: item?.pricing?.input?.toString() || '', output: item?.pricing?.output?.toString() || '', cachedInput: item?.pricing?.cachedInput?.toString() || '', unit: item?.pricing?.unit || 'CNY / 1M tokens', priority: String(item?.priority ?? 100), maxConcurrency: String(item?.maxConcurrency ?? 4), status: item?.status || 'active' }) Object.assign(group, { logicalModelId: parent.id, providerId: item?.providerId || '', sourceLabel: item?.sourceLabel || '', upstreamModel: item?.upstreamModel || '', input: item?.pricing?.input?.toString() || '', output: item?.pricing?.output?.toString() || '', cachedInput: item?.pricing?.cachedInput?.toString() || '', unit: item?.pricing?.unit || 'CNY / 1M tokens', discountLabel: item?.pricing?.discountLabel || '', priority: String(item?.priority ?? 100), maxConcurrency: String(item?.maxConcurrency ?? 4), status: item?.status || 'active' })
editor.value = 'group' editor.value = 'group'
} }
async function save() { async function save() {
@@ -81,7 +81,7 @@ async function save() {
await catalogClient.saveDefinition(editingId.value, { ...model, inputTypes: model.inputTypes.split(',').map(s => s.trim()).filter(Boolean), outputTypes: model.outputTypes.split(',').map(s => s.trim()).filter(Boolean) }) await catalogClient.saveDefinition(editingId.value, { ...model, inputTypes: model.inputTypes.split(',').map(s => s.trim()).filter(Boolean), outputTypes: model.outputTypes.split(',').map(s => s.trim()).filter(Boolean) })
} else { } else {
if (!group.providerId || !group.sourceLabel.trim() || !group.upstreamModel.trim()) throw new Error('请选择渠道并填写分组名称、上游模型标识') if (!group.providerId || !group.sourceLabel.trim() || !group.upstreamModel.trim()) throw new Error('请选择渠道并填写分组名称、上游模型标识')
await catalogClient.saveGroup(editingId.value, { logicalModelId: group.logicalModelId, providerId: group.providerId, sourceLabel: group.sourceLabel, upstreamModel: group.upstreamModel, status: group.status, priority: Number(group.priority), maxConcurrency: Number(group.maxConcurrency), pricing: { input: group.input === '' ? undefined : Number(group.input), output: group.output === '' ? undefined : Number(group.output), cachedInput: group.cachedInput === '' ? undefined : Number(group.cachedInput), unit: group.unit } }) await catalogClient.saveGroup(editingId.value, { logicalModelId: group.logicalModelId, providerId: group.providerId, sourceLabel: group.sourceLabel, upstreamModel: group.upstreamModel, status: group.status, priority: Number(group.priority), maxConcurrency: Number(group.maxConcurrency), pricing: { input: group.input === '' ? undefined : Number(group.input), output: group.output === '' ? undefined : Number(group.output), cachedInput: group.cachedInput === '' ? undefined : Number(group.cachedInput), unit: group.unit, discountLabel: group.discountLabel.trim() || undefined } })
} }
editor.value = '' editor.value = ''
await refresh() await refresh()
@@ -116,7 +116,7 @@ async function toggle(kind: 'channel' | 'model' | 'group', item: CatalogProvider
<section v-for="item in pagedModels" :key="item.id" class="model-definition-section"> <section v-for="item in pagedModels" :key="item.id" class="model-definition-section">
<header class="panel-header"><div><h3>{{ item.publicName }}</h3><small>{{ item.vendorName || '未标注厂商' }} · {{ item.modelKey || item.id }} · {{ item.type }} · {{ item.mode }}</small></div><div class="heading-actions"><label class="catalog-toggle"><input type="checkbox" :checked="item.status === 'active'" :disabled="saving" :aria-label="`${item.publicName} 启用`" @change="toggle('model', item)" />启用</label><button class="icon-button" :title="`编辑模型 ${item.publicName}`" @click="editModel(item)"><Pencil :size="16" /></button><button class="icon-button" :title="`删除模型 ${item.publicName}`" :disabled="saving" @click="confirmDelete('model', item.id, item.publicName)"><Trash2 :size="16" /></button><button class="button secondary small" @click="editGroup(item)"><Plus :size="15" />添加分组</button></div></header> <header class="panel-header"><div><h3>{{ item.publicName }}</h3><small>{{ item.vendorName || '未标注厂商' }} · {{ item.modelKey || item.id }} · {{ item.type }} · {{ item.mode }}</small></div><div class="heading-actions"><label class="catalog-toggle"><input type="checkbox" :checked="item.status === 'active'" :disabled="saving" :aria-label="`${item.publicName} 启用`" @change="toggle('model', item)" />启用</label><button class="icon-button" :title="`编辑模型 ${item.publicName}`" @click="editModel(item)"><Pencil :size="16" /></button><button class="icon-button" :title="`删除模型 ${item.publicName}`" :disabled="saving" @click="confirmDelete('model', item.id, item.publicName)"><Trash2 :size="16" /></button><button class="button secondary small" @click="editGroup(item)"><Plus :size="15" />添加分组</button></div></header>
<p v-if="item.description" class="catalog-secondary">{{ item.description }}</p> <p v-if="item.description" class="catalog-secondary">{{ item.description }}</p>
<div class="responsive-table"><table><thead><tr><th>分组名称</th><th>渠道</th><th>上游模型</th><th>输入 / 输出价格</th><th>并发</th><th>状态</th><th>操作</th></tr></thead><tbody><tr v-for="route in modelGroups(item.id)" :key="route.id"><td>{{ route.sourceLabel }}</td><td>{{ channelName(route.providerId) }}</td><td><code>{{ route.upstreamModel }}</code></td><td>{{ route.pricing?.input ?? '—' }} / {{ route.pricing?.output ?? '—' }}<small class="catalog-secondary">{{ route.pricing?.unit }}</small></td><td>{{ route.maxConcurrency ?? '默认' }}</td><td><label class="catalog-toggle"><input type="checkbox" :checked="route.status === 'active'" :disabled="saving" :aria-label="`${route.sourceLabel} 启用`" @change="toggle('group', route)" />{{ route.status === 'active' ? '已启用' : '已停用' }}</label></td><td><button class="icon-button" :title="`编辑分组 ${route.sourceLabel}`" @click="editGroup(item, route)"><Pencil :size="16" /></button><button class="icon-button" :title="`删除分组 ${route.sourceLabel}`" :disabled="saving" @click="confirmDelete('group', route.id, route.sourceLabel || '默认分组')"><Trash2 :size="16" /></button></td></tr><tr v-if="!modelGroups(item.id).length"><td colspan="7">暂无分组</td></tr></tbody></table></div> <div class="responsive-table"><table><thead><tr><th>分组名称</th><th>渠道</th><th>上游模型</th><th>输入 / 输出价格</th><th>对外折扣</th><th>并发</th><th>状态</th><th>操作</th></tr></thead><tbody><tr v-for="route in modelGroups(item.id)" :key="route.id"><td>{{ route.sourceLabel }}</td><td>{{ channelName(route.providerId) }}</td><td><code>{{ route.upstreamModel }}</code></td><td>{{ route.pricing?.input ?? '—' }} / {{ route.pricing?.output ?? '—' }}<small class="catalog-secondary">{{ route.pricing?.unit }}</small></td><td>{{ route.pricing?.discountLabel || '—' }}</td><td>{{ route.maxConcurrency ?? '默认' }}</td><td><label class="catalog-toggle"><input type="checkbox" :checked="route.status === 'active'" :disabled="saving" :aria-label="`${route.sourceLabel} 启用`" @change="toggle('group', route)" />{{ route.status === 'active' ? '已启用' : '已停用' }}</label></td><td><button class="icon-button" :title="`编辑分组 ${route.sourceLabel}`" @click="editGroup(item, route)"><Pencil :size="16" /></button><button class="icon-button" :title="`删除分组 ${route.sourceLabel}`" :disabled="saving" @click="confirmDelete('group', route.id, route.sourceLabel || '默认分组')"><Trash2 :size="16" /></button></td></tr><tr v-if="!modelGroups(item.id).length"><td colspan="8">暂无分组</td></tr></tbody></table></div>
</section> </section>
<p v-if="!shownModels.length && !loading">暂无模型</p> <p v-if="!shownModels.length && !loading">暂无模型</p>
<ListPagination v-model:page="modelPage" v-model:page-size="modelPageSize" :total="shownModels.length" label="管理端模型分页" /> <ListPagination v-model:page="modelPage" v-model:page-size="modelPageSize" :total="shownModels.length" label="管理端模型分页" />
@@ -152,7 +152,7 @@ async function toggle(kind: 'channel' | 'model' | 'group', item: CatalogProvider
<div class="modal-form-grid"><label><span class="form-label">输入价格</span><input v-model="group.input" class="text-input" type="number" min="0" step="any" /></label><label><span class="form-label">输出价格</span><input v-model="group.output" class="text-input" type="number" min="0" step="any" /></label></div> <div class="modal-form-grid"><label><span class="form-label">输入价格</span><input v-model="group.input" class="text-input" type="number" min="0" step="any" /></label><label><span class="form-label">输出价格</span><input v-model="group.output" class="text-input" type="number" min="0" step="any" /></label></div>
<label class="form-label">缓存命中输入价格(留空按普通输入价格)<input v-model="group.cachedInput" class="text-input" type="number" min="0" step="any" /></label> <label class="form-label">缓存命中输入价格(留空按普通输入价格)<input v-model="group.cachedInput" class="text-input" type="number" min="0" step="any" /></label>
<label class="form-label" for="group-unit">价格单位</label><input id="group-unit" v-model="group.unit" class="text-input" required /> <label class="form-label" for="group-unit">价格单位</label><input id="group-unit" v-model="group.unit" class="text-input" required />
<small>文本聊天自动扣费仅支持 CNY / 1M tokens(元/百万 Token)。输入、输出均需填写;填 0 表示免费,留空则禁止调用。请填写平台对用户的售价。</small> <label class="form-label" for="group-discount">对外折扣(仅展示)</label><input id="group-discount" v-model="group.discountLabel" class="text-input" maxlength="24" placeholder="例如:5.6折" /><small>输入、输出价格是实际扣费值,单位为 CNY / 1M tokens。折扣只用于向用户展示,不会替代人民币售价;留空表示不展示折扣。</small>
<div class="modal-form-grid"><label><span class="form-label">优先级</span><input v-model="group.priority" class="text-input" type="number" min="0" step="1" required /></label><label><span class="form-label">上游分组并发上限</span><input v-model="group.maxConcurrency" class="text-input" type="number" min="1" step="1" required /><small>这是中转站允许多个用户共享该模型的并发数。1 为串行;按渠道实际额度填写。</small></label></div> <div class="modal-form-grid"><label><span class="form-label">优先级</span><input v-model="group.priority" class="text-input" type="number" min="0" step="1" required /></label><label><span class="form-label">上游分组并发上限</span><input v-model="group.maxConcurrency" class="text-input" type="number" min="1" step="1" required /><small>这是中转站允许多个用户共享该模型的并发数。1 为串行;按渠道实际额度填写。</small></label></div>
</template> </template>
</form> </form>
+11 -1
View File
@@ -29,7 +29,17 @@ export interface CatalogModel {
inputTypes: string[] inputTypes: string[]
outputTypes: string[] outputTypes: string[]
capabilities: Record<string, unknown> capabilities: Record<string, unknown>
pricing?: { input?: number; output?: number; cachedInput?: number; unit?: string } pricing?: {
input?: number
output?: number
cachedInput?: number
unit?: string
discount?: number
discountLabel?: string
exchangeRate?: number
priceSource?: string
listPriceUsd?: { input?: number; output?: number; cachedInput?: number }
}
priority?: number priority?: number
maxConcurrency?: number maxConcurrency?: number
status: 'active' | 'disabled' status: 'active' | 'disabled'
+11 -1
View File
@@ -34,7 +34,17 @@ export interface ModelItem {
icon: Component icon: Component
modelKey?: string modelKey?: string
sourceLabel?: string sourceLabel?: string
pricing?: { input?: number; output?: number; cachedInput?: number; unit?: string } pricing?: {
input?: number
output?: number
cachedInput?: number
unit?: string
discount?: number
discountLabel?: string
exchangeRate?: number
priceSource?: string
listPriceUsd?: { input?: number; output?: number; cachedInput?: number }
}
priority?: number priority?: number
maxConcurrency?: number maxConcurrency?: number
} }
+1 -1
View File
@@ -721,7 +721,7 @@ $env:OPENAI_API_KEY="你的 MOYI 用户 API Key"
<strong>{{ group.sourceLabel || '默认分组' }}</strong><small>{{ group.provider }}</small> <strong>{{ group.sourceLabel || '默认分组' }}</strong><small>{{ group.provider }}</small>
<label>调用模型 ID <code>{{ group.id }}</code></label> <label>调用模型 ID <code>{{ group.id }}</code></label>
<button class="text-link" @click="copy(group.id, '调用模型 ID', group.id)"><Copy :size="14" />{{ copySucceeded(group.id) ? '已复制' : '复制调用 ID' }}</button> <button class="text-link" @click="copy(group.id, '调用模型 ID', group.id)"><Copy :size="14" />{{ copySucceeded(group.id) ? '已复制' : '复制调用 ID' }}</button>
<small v-if="group.pricing?.unit">输入 {{ group.pricing.input ?? '待定' }} / 输出 {{ group.pricing.output ?? '待定' }} · {{ group.pricing.unit }}</small> <small v-if="group.pricing?.unit">输入 {{ group.pricing.input ?? '待定' }} / 输出 {{ group.pricing.output ?? '待定' }} · {{ group.pricing.unit }}<template v-if="group.pricing.discountLabel"> · 对外 {{ group.pricing.discountLabel }}</template></small>
<button class="button secondary" @click="tryModel({ ...selectedModel, groups: [group] })">试用此分组</button> <button class="button secondary" @click="tryModel({ ...selectedModel, groups: [group] })">试用此分组</button>
</section> </section>
<template #footer><button class="button primary full" :disabled="!selectedModel.groups.length" @click="tryModel(selectedModel)"><Play :size="16" />{{ selectedModel.groups.length ? '在线试用' : '分组待上线' }}</button><button class="button secondary full" @click="selectedModel = null; emit('navigate', 'docs')"><BookOpen :size="16" />查看文档</button></template> <template #footer><button class="button primary full" :disabled="!selectedModel.groups.length" @click="tryModel(selectedModel)"><Play :size="16" />{{ selectedModel.groups.length ? '在线试用' : '分组待上线' }}</button><button class="button secondary full" @click="selectedModel = null; emit('navigate', 'docs')"><BookOpen :size="16" />查看文档</button></template>