Gemini· 公开 API
价格待解析 · 已知数值不代表完整费用
暂无可直接展示的标量;完整原声明仍保留。
全部价格、条件与来源证据
gemini-3.8-flash
console.buycodekey.com · 公开 API 声明
套餐 / 分组:declared-group:Gemini · Gemini
观察有效期内 · 非实时报价
截至观察: · 原缓存截止: · 最终评估截止(不含):
公开声明;现金资格尚未评估,上游身份、购买资格与服务质量未核验。
原计价单位:各项原单位见完整规则 · STRUCTURED_DECLARED_PRICING_RULE
价格待解析;已知部分不代表完整成本。 · UNRESOLVED
- 输入
- 未提供 / 待解析
- 输出
- 未提供 / 待解析
- 按次
- 未提供 / 待解析
- 缓存读取
- 未提供 / 待解析
- 缓存写入
- 未提供 / 待解析
已提取的数值字段
以下是原始倍率或价格字段,尚不代表完整套餐成本。
- model_ratio
- 0.75 · SOURCE_BASE_MODEL_RATIO
- completion_ratio
- 5 · SOURCE_COMPLETION_RATIO
- create_cache_ratio
- 0.056 · SOURCE_CACHE_WRITE_RATIO
- image_ratio
- 1 · SOURCE_IMAGE_RATIO
- audio_ratio
- 1 · SOURCE_AUDIO_RATIO
- audio_completion_ratio
- 0.1 · SOURCE_AUDIO_COMPLETION_RATIO
完整部分解析结果
{
"baseFormulaArithmetic": {
"formula": "model_ratio * declared_group_ratio * 1000000; output/cache additionally multiply their declared ratios",
"meaning": "UNMODIFIED_BASE_ARITHMETIC_ONLY_NOT_THE_FINAL_TARIFF",
"overridesApplied": false,
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"values": {
"cacheRead": null,
"cacheWrite": "12600.000000",
"input": "225000.000",
"output": "1125000.000"
}
},
"cashQualification": "NOT_EVALUATED",
"components": [
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "model_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_BASE_MODEL_RATIO",
"usageKind": "TEXT_INPUT",
"value": "0.75"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "5"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "create_cache_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_CACHE_WRITE_RATIO",
"usageKind": "CACHE_WRITE",
"value": "0.056"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "image_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_IMAGE_RATIO",
"usageKind": "IMAGE",
"value": "1"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "audio_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_AUDIO_RATIO",
"usageKind": "AUDIO_INPUT",
"value": "1"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "audio_completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_AUDIO_COMPLETION_RATIO",
"usageKind": "AUDIO_OUTPUT",
"value": "0.1"
}
],
"contentSha256": "aee189f1f46d40e4f74a53d4a34d66909c1e82166f128e3494b8365142cbe4da",
"currencyInferred": false,
"declaredGroupRatio": "0.3",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "4c99c9afdc64e87f0bf59d7ad97fa35e58d0cc622a572c1d3b00a2ef94c1d876",
"rawDeclaredFieldsSha256": "b995ecfc1654d883149a4be6f2af5db644d8f8baa205e945be33498ba46f6db7",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "52299e2f959da9d4b5a883d6ab38524ee70fd5aa8511cb6856e11d4f6081e875",
"status": "PARTIAL_EXTRACTION_FINAL_TARIFF_UNRESOLVED",
"unresolvedTariffReasons": [
"MULTIMODAL_BILLING_MODE_CONFLICT",
"NONSTANDARD_PRICING_FIELDS"
]
}待解析原因
[ "MULTIMODAL_BILLING_MODE_CONFLICT", "NONSTANDARD_PRICING_FIELDS" ]
完整计费规则 · 含所有分支、单位与条件
{
"branches": [
{
"components": [],
"costExpression": {
"divisor": "1000000",
"evaluation": "SYMBOLIC_ONLY",
"expressionAST": {
"condition": {
"left": {
"left": {
"name": "ai",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "7.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.084"
},
"type": "binary"
},
"type": "binary"
},
"whenTrue": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"left": {
"name": "len",
"type": "variable"
},
"operator": "-",
"right": {
"name": "ai",
"type": "variable"
},
"type": "binary"
},
{
"type": "number",
"value": "0"
}
],
"function": "max",
"type": "call"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "7.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "ai",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.15"
},
"type": "binary"
},
"type": "binary"
}
},
"numericSemantics": "SOURCE_FLOAT64_FORMULA_RETAINED_NOT_EXECUTED",
"resultUnit": "DECLARED_USD_TOTAL"
},
"pathConditions": [],
"perRequestPrice": null,
"tierName": null,
"unit": "DECLARED_USD_TOTAL"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"left": {
"name": "ai",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "base"
},
{
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "7.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.084"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "audio"
},
{
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"left": {
"name": "len",
"type": "variable"
},
"operator": "-",
"right": {
"name": "ai",
"type": "variable"
},
"type": "binary"
},
{
"type": "number",
"value": "0"
}
],
"function": "max",
"type": "call"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "7.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "ai",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.15"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"quantities": [],
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"ai",
"ao",
"c",
"cc",
"cr",
"len",
"p"
]
},
"evidenceRefs": [
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
],
"expressionVersion": "v1",
"groupRatio": "0.3",
"groupRatioApplied": false,
"humanExtractionReview": "NOT_PERFORMED",
"kind": "STRUCTURED_COST_EXPRESSION",
"limitations": [
"DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
"PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
"TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
"GROUP_RATIO_NOT_APPLIED",
"TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
"OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
"STRUCTURED_FORMULA_IS_NOT_A_CONSTANT_TEXT_TOKEN_PRICE",
"SOURCE_FLOAT64_ROUNDING_AND_FINAL_QUOTA_INTEGER_ROUNDING_NOT_REPRODUCED"
],
"normalization": {
"contextLength": "len is full input context, before subclass exclusion",
"fixedAmountScale": "fixed(amount) contributes amount*1000000 before the common divisor",
"inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
"outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
"profile": "NEW_API_BILLINGEXPR_V1",
"referencedVariablesAreExpressionWide": true,
"upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
},
"parserVersion": "grandet.new-api-expression-projection/1.2.0",
"ruleContentSha256": "f88eef947c5a51a8b2719f6414d6b0f96eac1961201b6db81ae50ef11b0dea82",
"schema": "grandet.public-pricing-rule/v2",
"sourceExpressionSha256": "60eb0d50c466c4c6220389b3228f43e1b81bf2229c3c728987270c8847dd3a6e",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_TOTAL"
]
}完整声明条件
{
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai",
"openai-response",
"openai-response-compact",
"anthropic",
"gemini",
"openai-alpha-search"
],
"declaredGroupDescription": "Gemini 系列",
"declaredGroupRatio": "0.3",
"eligibility": {
"declaredGroup": "Gemini",
"status": "UNKNOWN"
},
"membership": {
"status": "UNKNOWN"
},
"minimumTopup": {
"status": "UNKNOWN"
},
"mixedWallet": {
"status": "UNKNOWN"
},
"nightDiscount": {
"status": "UNKNOWN"
},
"rateWindows": {
"status": "UNKNOWN"
},
"requiredFees": {
"status": "UNKNOWN"
},
"sharedAllowance": {
"status": "UNKNOWN"
},
"sourceEffectiveAt": {
"status": "UNKNOWN"
},
"tieredRates": {
"status": "UNKNOWN"
},
"topupBonus": {
"status": "UNKNOWN"
}
}绑定的来源时效依据
{
"cacheFreshUntil": "2026-10-10T23:48:59.602000Z",
"firstObservedAt": "2026-10-03T23:49:01.279Z",
"maximumQuoteAgeDays": 7,
"observedAt": "2026-10-03T23:49:01.279Z",
"snapshotId": "0d48d7a7a64708dc90ae8965f6bab491e9163a8970e0d732a31c21e60018ac76",
"sourceId": "console.buycodekey.com",
"transactionId": "5f00d473cb1b2c2beff1394c344e29b03fdf9c6fe35bb303097a894b664f851a"
}完整公开声明与来源定位
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "717687d79700e8a13931c51536e733b15bff7686a81284a528cee4c5cea54c99",
"cacheReadPrice": null,
"cacheWritePrice": null,
"captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"classification": "SPECIAL_OR_UNKNOWN_PRICING",
"conditions": {
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai",
"openai-response",
"openai-response-compact",
"anthropic",
"gemini",
"openai-alpha-search"
],
"declaredGroupDescription": "Gemini 系列",
"declaredGroupRatio": "0.3",
"eligibility": {
"declaredGroup": "Gemini",
"status": "UNKNOWN"
},
"membership": {
"status": "UNKNOWN"
},
"minimumTopup": {
"status": "UNKNOWN"
},
"mixedWallet": {
"status": "UNKNOWN"
},
"nightDiscount": {
"status": "UNKNOWN"
},
"rateWindows": {
"status": "UNKNOWN"
},
"requiredFees": {
"status": "UNKNOWN"
},
"sharedAllowance": {
"status": "UNKNOWN"
},
"sourceEffectiveAt": {
"status": "UNKNOWN"
},
"tieredRates": {
"status": "UNKNOWN"
},
"topupBonus": {
"status": "UNKNOWN"
}
},
"declaredGroup": "Gemini",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [
"MULTIMODAL_BILLING_MODE_CONFLICT",
"NONSTANDARD_PRICING_FIELDS"
],
"freshUntil": "2026-10-10T23:48:59.602000Z",
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "gemini-3.8-flash",
"multimodalPricing": null,
"observedAt": "2026-10-03T23:49:01.279Z",
"outputPrice": null,
"parseRevisionId": "2b14a98991a59b71d227da008680bedf10c4e59649e96f8b01738e2996bc94df",
"parsedPricingDeclarations": null,
"parserFamily": "NEW_API_PUBLIC_PRICING",
"parserVersion": "grandet.new-api-public-pricing/1.5.1",
"partialPriceComponents": {
"baseFormulaArithmetic": {
"formula": "model_ratio * declared_group_ratio * 1000000; output/cache additionally multiply their declared ratios",
"meaning": "UNMODIFIED_BASE_ARITHMETIC_ONLY_NOT_THE_FINAL_TARIFF",
"overridesApplied": false,
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"values": {
"cacheRead": null,
"cacheWrite": "12600.000000",
"input": "225000.000",
"output": "1125000.000"
}
},
"cashQualification": "NOT_EVALUATED",
"components": [
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "model_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_BASE_MODEL_RATIO",
"usageKind": "TEXT_INPUT",
"value": "0.75"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "5"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "create_cache_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_CACHE_WRITE_RATIO",
"usageKind": "CACHE_WRITE",
"value": "0.056"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "image_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_IMAGE_RATIO",
"usageKind": "IMAGE",
"value": "1"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "audio_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_AUDIO_RATIO",
"usageKind": "AUDIO_INPUT",
"value": "1"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "audio_completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_AUDIO_COMPLETION_RATIO",
"usageKind": "AUDIO_OUTPUT",
"value": "0.1"
}
],
"contentSha256": "aee189f1f46d40e4f74a53d4a34d66909c1e82166f128e3494b8365142cbe4da",
"currencyInferred": false,
"declaredGroupRatio": "0.3",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "4c99c9afdc64e87f0bf59d7ad97fa35e58d0cc622a572c1d3b00a2ef94c1d876",
"rawDeclaredFieldsSha256": "b995ecfc1654d883149a4be6f2af5db644d8f8baa205e945be33498ba46f6db7",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "52299e2f959da9d4b5a883d6ab38524ee70fd5aa8511cb6856e11d4f6081e875",
"status": "PARTIAL_EXTRACTION_FINAL_TARIFF_UNRESOLVED",
"unresolvedTariffReasons": [
"MULTIMODAL_BILLING_MODE_CONFLICT",
"NONSTANDARD_PRICING_FIELDS"
]
},
"perRequestPrice": null,
"planId": "declared-group:Gemini",
"pricePairSourceRowId": "52299e2f959da9d4b5a883d6ab38524ee70fd5aa8511cb6856e11d4f6081e875",
"pricingAdapterEvidence": [
{
"kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
"url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
},
{
"kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
"url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
}
],
"pricingResolution": "UNRESOLVED",
"pricingRule": {
"branches": [
{
"components": [],
"costExpression": {
"divisor": "1000000",
"evaluation": "SYMBOLIC_ONLY",
"expressionAST": {
"condition": {
"left": {
"left": {
"name": "ai",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "7.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.084"
},
"type": "binary"
},
"type": "binary"
},
"whenTrue": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"left": {
"name": "len",
"type": "variable"
},
"operator": "-",
"right": {
"name": "ai",
"type": "variable"
},
"type": "binary"
},
{
"type": "number",
"value": "0"
}
],
"function": "max",
"type": "call"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "7.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "ai",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.15"
},
"type": "binary"
},
"type": "binary"
}
},
"numericSemantics": "SOURCE_FLOAT64_FORMULA_RETAINED_NOT_EXECUTED",
"resultUnit": "DECLARED_USD_TOTAL"
},
"pathConditions": [],
"perRequestPrice": null,
"tierName": null,
"unit": "DECLARED_USD_TOTAL"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"left": {
"name": "ai",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "base"
},
{
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "7.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.084"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "audio"
},
{
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"left": {
"name": "len",
"type": "variable"
},
"operator": "-",
"right": {
"name": "ai",
"type": "variable"
},
"type": "binary"
},
{
"type": "number",
"value": "0"
}
],
"function": "max",
"type": "call"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "7.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "ai",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.15"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"quantities": [],
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"ai",
"ao",
"c",
"cc",
"cr",
"len",
"p"
]
},
"evidenceRefs": [
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
],
"expressionVersion": "v1",
"groupRatio": "0.3",
"groupRatioApplied": false,
"humanExtractionReview": "NOT_PERFORMED",
"kind": "STRUCTURED_COST_EXPRESSION",
"limitations": [
"DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
"PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
"TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
"GROUP_RATIO_NOT_APPLIED",
"TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
"OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
"STRUCTURED_FORMULA_IS_NOT_A_CONSTANT_TEXT_TOKEN_PRICE",
"SOURCE_FLOAT64_ROUNDING_AND_FINAL_QUOTA_INTEGER_ROUNDING_NOT_REPRODUCED"
],
"normalization": {
"contextLength": "len is full input context, before subclass exclusion",
"fixedAmountScale": "fixed(amount) contributes amount*1000000 before the common divisor",
"inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
"outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
"profile": "NEW_API_BILLINGEXPR_V1",
"referencedVariablesAreExpressionWide": true,
"upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
},
"parserVersion": "grandet.new-api-expression-projection/1.2.0",
"ruleContentSha256": "f88eef947c5a51a8b2719f6414d6b0f96eac1961201b6db81ae50ef11b0dea82",
"schema": "grandet.public-pricing-rule/v2",
"sourceExpressionSha256": "60eb0d50c466c4c6220389b3228f43e1b81bf2229c3c728987270c8847dd3a6e",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_TOTAL"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "4c99c9afdc64e87f0bf59d7ad97fa35e58d0cc622a572c1d3b00a2ef94c1d876",
"quoteOrdinal": 33,
"snapshotId": "0d48d7a7a64708dc90ae8965f6bab491e9163a8970e0d732a31c21e60018ac76",
"sourceDomain": "console.buycodekey.com",
"sourceId": "console.buycodekey.com",
"sourceRowId": "52299e2f959da9d4b5a883d6ab38524ee70fd5aa8511cb6856e11d4f6081e875",
"transactionId": "5f00d473cb1b2c2beff1394c344e29b03fdf9c6fe35bb303097a894b664f851a",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}