mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-01 08:28:34 +00:00
fix(grok): 完善按模型视频价格矩阵
This commit is contained in:
@@ -522,6 +522,8 @@ export interface PaginationConfig {
|
||||
|
||||
export type GroupPlatform = 'anthropic' | 'openai' | 'gemini' | 'antigravity' | 'grok' | 'composite'
|
||||
|
||||
export type VideoModelPrices = Record<string, Record<string, number>>
|
||||
|
||||
export type SubscriptionType = 'standard' | 'subscription'
|
||||
|
||||
export interface OpenAIMessagesDispatchModelConfig {
|
||||
@@ -566,6 +568,8 @@ export interface Group {
|
||||
video_price_480p: number | null
|
||||
video_price_720p: number | null
|
||||
video_price_1080p: number | null
|
||||
// Optional model-family x resolution overrides for Grok video pricing.
|
||||
video_model_prices?: VideoModelPrices
|
||||
// Codex 网页搜索单次价格(USD/次);null 表示使用默认价 0.01
|
||||
web_search_price_per_call: number | null
|
||||
// 高峰时段倍率配置
|
||||
@@ -766,6 +770,7 @@ export interface CreateGroupRequest {
|
||||
video_price_480p?: number | null
|
||||
video_price_720p?: number | null
|
||||
video_price_1080p?: number | null
|
||||
video_model_prices?: VideoModelPrices
|
||||
web_search_price_per_call?: number | null
|
||||
peak_rate_enabled?: boolean
|
||||
peak_start?: string
|
||||
@@ -821,6 +826,7 @@ export interface UpdateGroupRequest {
|
||||
video_price_480p?: number | null
|
||||
video_price_720p?: number | null
|
||||
video_price_1080p?: number | null
|
||||
video_model_prices?: VideoModelPrices
|
||||
web_search_price_per_call?: number | null
|
||||
peak_rate_enabled?: boolean
|
||||
peak_start?: string
|
||||
|
||||
Reference in New Issue
Block a user