uapi/sql/minimax_pricing.sql

89 lines
2.0 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ============================================================
-- MiniMax-H3 — 定价记录按pricing skill规范
-- 1个 pricing_program + 2个 pricing_program_timing
-- pricing_data: YAML格式 {unit_values, fields, pricings}
-- ============================================================
-- === pricing_program ===
INSERT IGNORE INTO pricing_program (id, name, ownerid, providerid, pricing_belong, description) VALUES (
'minimax_h3',
'MiniMax-H3',
'platform',
'minimax',
'provider',
'MiniMax-H3 视频生成模型,按分辨率+时长计费。2K 0.80元/秒768P 0.50元/秒。'
);
-- === pricing_program_timing: 2K (0.80元/秒) ===
-- pricing_data 是 YAML 格式,用 yaml.dump 生成的转义字符串
INSERT IGNORE INTO pricing_program_timing (id, ppid, name, pricing_data, enabled_date, expired_date) VALUES (
'minimax_h3_2k',
'minimax_h3',
'MiniMax-H3-2K',
'unit_values:
秒: 1
fields:
price_factors:
type: string
role: factor
label: 计价因子
unit_prices:
type: float
role: factor
label: 单位定价
unit:
type: string
role: factor
label: 计价单位
resolution:
type: string
role: filter
label: 分辨率
options:
- 2K
- 768P
pricings:
- price_factors: duration
unit_prices: 0.80
unit: 秒
resolution: 2K',
'2025-01-01',
'9999-12-31'
);
-- === pricing_program_timing: 768P (0.50元/秒) ===
INSERT IGNORE INTO pricing_program_timing (id, ppid, name, pricing_data, enabled_date, expired_date) VALUES (
'minimax_h3_768p',
'minimax_h3',
'MiniMax-H3-768P',
'unit_values:
秒: 1
fields:
price_factors:
type: string
role: factor
label: 计价因子
unit_prices:
type: float
role: factor
label: 单位定价
unit:
type: string
role: factor
label: 计价单位
resolution:
type: string
role: filter
label: 分辨率
options:
- 2K
- 768P
pricings:
- price_factors: duration
unit_prices: 0.50
unit: 秒
resolution: 768P',
'2025-01-01',
'9999-12-31'
);