增加2.5模型调用
This commit is contained in:
1 parent
3f29ba716a
commit
be655b6569
32 files changed
+1075
-56
No files matched your search
@@ -85,6 +85,36 @@ const EVOLINK_GPT_IMAGE_DIMENSIONS = [
|
||||
}
|
||||
] satisfies NonNullable<BillingPriceRuleInput["parameterDimensions"]>;
|
||||
|
||||
function evolink25PriceRule(model: string, sourceUrl: string): BillingPriceRuleInput {
|
||||
const parameterDimensions = structuredClone(EVOLINK_GPT_IMAGE_DIMENSIONS);
|
||||
parameterDimensions[0].tiers = [
|
||||
{ value: "low", label: "快速", standardFactor: 4 / 9, markupMultiplier: DEFAULT_BILLING_MARKUP_MULTIPLIER, enabled: true },
|
||||
{ value: "medium", label: "标准", standardFactor: 1, markupMultiplier: DEFAULT_BILLING_MARKUP_MULTIPLIER, enabled: true },
|
||||
{ value: "high", label: "精细", standardFactor: 35 / 9, markupMultiplier: DEFAULT_BILLING_MARKUP_MULTIPLIER, enabled: true }
|
||||
];
|
||||
parameterDimensions[1].tiers = parameterDimensions[1].tiers.slice(0, 1);
|
||||
return {
|
||||
id: `base-evolink-${model}`,
|
||||
provider: "evolink",
|
||||
capability: "image.generate",
|
||||
reqKey: model,
|
||||
unit: "image",
|
||||
standardUnitPriceFen: 9,
|
||||
markupMultiplier: DEFAULT_BILLING_MARKUP_MULTIPLIER,
|
||||
enabled: true,
|
||||
note: "1K 基础输出估算:low/medium/high 成本为 ¥0.04/¥0.09/¥0.35;输入费用未单独加收,非上游实际 token 账单。",
|
||||
parameterDimensions,
|
||||
source: {
|
||||
url: sourceUrl,
|
||||
currency: "USD",
|
||||
unitPrice: 0.012,
|
||||
fxRate: BILLING_USD_CNY_RATE,
|
||||
basis: "1024×1024、无参考图输出费用估算:low 约 $0.0053,medium 约 $0.012,high 约 $0.0474;人民币标准成本向上取整到分。参考图和提示词会影响上游实扣。",
|
||||
observedAt: "2026-09-23"
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export const DEFAULT_BILLING_PRICE_RULES: BillingPriceRuleInput[] = [
|
||||
{
|
||||
id: "base-volcengine-jimeng-seedream46",
|
||||
@@ -124,6 +154,8 @@ export const DEFAULT_BILLING_PRICE_RULES: BillingPriceRuleInput[] = [
|
||||
observedAt: BILLING_CATALOG_OBSERVED_AT
|
||||
}
|
||||
},
|
||||
evolink25PriceRule("gpt-image-2.5-flare", "https://evolink.ai/gpt-image-2-5"),
|
||||
evolink25PriceRule("gpt-image-2.5-sunburst", "https://evolink.ai/zh/gpt-image-2-5-sunburst"),
|
||||
{
|
||||
id: "base-bailian-wan27-image-pro",
|
||||
provider: "bailian",
|
||||
|
||||
Reference in new issue
Block a user