完整计费规则(含所有情况、单位和条件)
{
"branches": [
{
"components": [
{
"coefficient": "2.57142857143",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "AUDIO_INPUT",
"usageVariable": "ai"
},
{
"coefficient": "10.2857142857",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "AUDIO_OUTPUT",
"usageVariable": "ao"
},
{
"coefficient": "0.314285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "IMAGE_INPUT",
"usageVariable": "img"
},
{
"coefficient": "0.314285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "base",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "2.57142857143",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "AUDIO_INPUT",
"usageVariable": "ai"
},
{
"coefficient": "1.9",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.314285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "IMAGE_INPUT",
"usageVariable": "img"
},
{
"coefficient": "0.314285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "base",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"arguments": [
{
"type": "string",
"value": "base"
},
{
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.314285714286"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "img",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.314285714286"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "ai",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "2.57142857143"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"condition": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.9"
},
"type": "binary"
},
"whenTrue": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "10.2857142857"
},
"type": "binary"
}
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"ai",
"ao",
"c",
"img",
"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.8",
"groupRatioApplied": false,
"humanExtractionReview": "NOT_PERFORMED",
"kind": "CONDITIONAL_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"
],
"normalization": {
"contextLength": "len is full input context, before subclass exclusion",
"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.1.0",
"ruleContentSha256": "eb1297937bbbb6c44998c7ff4e3cb0125f6a8711dec38c1962f3dcaeb9aecdf4",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "b35e77c317238837670dc7c07cbc1d91fa854c637e952206e98b13295e86fa1e",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
}这条价格的完整原始记录
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "57706bcc842807b2bcfbab1e3489d07c66c792dfa1816a61bf970385cd6a26ef",
"cacheReadPrice": null,
"cacheWritePrice": null,
"captureParserVersion": "grandet.new-api-public-pricing/1.7.0",
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"classification": "STRUCTURED_PRICING_RULE",
"conditions": {
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai"
],
"declaredGroupDescription": "百炼公池大客户专享 全模型 热门模型请选则其他折扣更低的",
"declaredGroupRatio": "0.8",
"eligibility": {
"declaredGroup": "阿里云百炼大客户",
"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": "阿里云百炼大客户",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [],
"freshUntil": "2026-10-17T07:22:43.428000Z",
"groupOfferingFlags": [],
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "qwen3.5-omni-flash-2026-03-15",
"multimodalPricing": null,
"observedAt": "2026-10-10T07:22:45.840Z",
"offerKey": "4c76af95ecd8f6aaf6411cdc6cab9b1610bbdfc5bf19f6816315b459cd071d85",
"outputPrice": null,
"parseRevisionId": null,
"parsedPricingDeclarations": null,
"parserFamily": "NEW_API_PUBLIC_PRICING",
"parserVersion": "grandet.new-api-public-pricing/1.7.0",
"partialPriceComponents": null,
"perRequestPrice": null,
"planId": "declared-group:阿里云百炼大客户",
"pricePairSourceRowId": "55311f51cd7215035ac20eaf3da6891f62d3d974c0ce60a069930469efd26a51",
"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": "STRUCTURED_RULE",
"pricingRule": {
"branches": [
{
"components": [
{
"coefficient": "2.57142857143",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "AUDIO_INPUT",
"usageVariable": "ai"
},
{
"coefficient": "10.2857142857",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "AUDIO_OUTPUT",
"usageVariable": "ao"
},
{
"coefficient": "0.314285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "IMAGE_INPUT",
"usageVariable": "img"
},
{
"coefficient": "0.314285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "base",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "2.57142857143",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "AUDIO_INPUT",
"usageVariable": "ai"
},
{
"coefficient": "1.9",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.314285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "IMAGE_INPUT",
"usageVariable": "img"
},
{
"coefficient": "0.314285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "base",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"arguments": [
{
"type": "string",
"value": "base"
},
{
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.314285714286"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "img",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.314285714286"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "ai",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "2.57142857143"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"condition": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "0"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.9"
},
"type": "binary"
},
"whenTrue": {
"left": {
"name": "ao",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "10.2857142857"
},
"type": "binary"
}
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"ai",
"ao",
"c",
"img",
"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.8",
"groupRatioApplied": false,
"humanExtractionReview": "NOT_PERFORMED",
"kind": "CONDITIONAL_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"
],
"normalization": {
"contextLength": "len is full input context, before subclass exclusion",
"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.1.0",
"ruleContentSha256": "eb1297937bbbb6c44998c7ff4e3cb0125f6a8711dec38c1962f3dcaeb9aecdf4",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "b35e77c317238837670dc7c07cbc1d91fa854c637e952206e98b13295e86fa1e",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "0c9dba2084540f72876a188eabd73fcbb2e8a6851f91ac90375c451d7b087216",
"quoteOrdinal": 638,
"semanticFlags": [],
"snapshotId": "56d972ef9075d38b307c65264a6dac29b92db1699a4738c053e1122d037384aa",
"sourceDomain": "aws.baby",
"sourceId": "aws.baby",
"sourceRowId": "55311f51cd7215035ac20eaf3da6891f62d3d974c0ce60a069930469efd26a51",
"transactionId": "256929d92137faee9a4c2a5de2102aa32e0eb71fa8b49ddaf8733dc396ac8e18",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}