Public declaration; cash qualification is not evaluated. Upstream identity, purchase eligibility and service quality are unverified.
Original pricing unit: See individual units in the complete rule · STRUCTURED_DECLARED_PRICING_RULE
Pricing unresolved; known parts do not establish complete cost. · UNRESOLVED
Complete pricing rule · all branches, units and conditions
{
"branches": [
{
"components": [
{
"coefficient": "24",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "8",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "32000"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "≤ 32K",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "36",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "12",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "32000"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "32001"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "64000"
},
"type": "binary"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "32001–64K",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "48",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "16",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "32000"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "32001"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "64000"
},
"type": "binary"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "> 64K",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "32000"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "32001"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "64000"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "> 64K"
},
{
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "16"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "48"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "32001–64K"
},
{
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "12"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "36"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "≤ 32K"
},
{
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "8"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "24"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"c",
"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.6",
"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": "fc7dee1a2762f10cda96ee7d53da2ac67763352abfc9975c267e8c29047c1cae",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "bc6d461bca32a47765968eb9de3b237b0d9e39a5b2ce17cc91ea5da45af4fe3c",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
}Complete public declaration and source identity
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "f4daecdae44a4df62810770b822b229c7d3eb66d90404eb4fe9d40fdabad666b",
"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",
"anthropic"
],
"declaredGroupDescription": "国产开源模型 6折",
"declaredGroupRatio": "0.6",
"eligibility": {
"declaredGroup": "Guochan6",
"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": "Guochan6",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [
"CONDITIONAL_ACTIVE_MAP_EXPRESSION_PRECEDENCE_UNESTABLISHED",
"CONDITIONAL_CURRENCY_NOT_DECLARED",
"CONDITIONAL_SETTLEMENT_UNITS_UNESTABLISHED",
"CONDITIONAL_TOKEN_QUANTITY_BASIS_UNESTABLISHED"
],
"freshUntil": "2026-10-10T23:46:30.445000Z",
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "deepseek-v3.2-fast",
"multimodalPricing": null,
"observedAt": "2026-10-03T23:46:32.414Z",
"outputPrice": null,
"parseRevisionId": "b6f86829e114ae8495871e75615ed74683f0bd21728d9425fb20215e1be8dc30",
"parsedPricingDeclarations": [
{
"branches": [
{
"completionRatio": "3",
"fixedPrice": "0",
"fixedPriceInterpretation": "RETAINED_SOURCE_DECLARATION_NOT_COMBINED_WITH_TOKEN_RATES",
"inputRatio": "4",
"sourceConditionOrdinal": 0,
"tokenBounds": {
"integerRequired": true,
"maximum": "32000",
"maximumInclusive": true,
"minimum": "0",
"minimumInclusive": true,
"quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
}
},
{
"completionRatio": "3",
"fixedPrice": "0",
"fixedPriceInterpretation": "RETAINED_SOURCE_DECLARATION_NOT_COMBINED_WITH_TOKEN_RATES",
"inputRatio": "6",
"sourceConditionOrdinal": 1,
"tokenBounds": {
"integerRequired": true,
"maximum": "64000",
"maximumInclusive": true,
"minimum": "32001",
"minimumInclusive": true,
"quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
}
},
{
"completionRatio": "3",
"fixedPrice": "0",
"fixedPriceInterpretation": "RETAINED_SOURCE_DECLARATION_NOT_COMBINED_WITH_TOKEN_RATES",
"inputRatio": "8",
"sourceConditionOrdinal": 2,
"tokenBounds": {
"integerRequired": true,
"maximum": null,
"maximumInclusive": false,
"minimum": "64001",
"minimumInclusive": true,
"quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
}
}
],
"calculationSupported": false,
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"competingExpressionSha256": "bc6d461bca32a47765968eb9de3b237b0d9e39a5b2ce17cc91ea5da45af4fe3c",
"declarationComplete": true,
"declaredCurrency": null,
"groupRatio": "0.6",
"groupRatioApplied": false,
"humanExtractionReview": "NOT_PERFORMED",
"kind": "MODEL_CONDITIONAL_PRICING",
"limitations": [
"SOURCE_DISPLAY_SEMANTICS_NOT_BACKEND_SETTLEMENT_PROOF",
"NO_DEFAULT_CURRENCY_OR_FX_APPLIED",
"NO_TOKEN_BASIS_INFERRED_FROM_MODEL_NAME",
"SOURCE_CONDITION_ORDINALS_PRESERVED"
],
"missingSemantics": [
"CONDITIONAL_ACTIVE_MAP_EXPRESSION_PRECEDENCE_UNESTABLISHED",
"CONDITIONAL_CURRENCY_NOT_DECLARED",
"CONDITIONAL_SETTLEMENT_UNITS_UNESTABLISHED",
"CONDITIONAL_TOKEN_QUANTITY_BASIS_UNESTABLISHED"
],
"parserVersion": "grandet.source-conditional-declaration/1.5.0",
"ruleContentSha256": "cb547b98d998a3b1f7cc5e65fa42115192ae0f02755be09bca077418d02856b8",
"schema": "grandet.public-conditional-declaration/v1",
"selection": {
"selectedPattern": "deepseek-v3.2-fast",
"selection": "EXACT"
},
"sourceConfig": {
"Conditions": [
{
"CompletionRatio": "3",
"FixedPrice": "0",
"InputRatio": "4",
"MaxTokens": "32000",
"MinTokens": "0"
},
{
"CompletionRatio": "3",
"FixedPrice": "0",
"InputRatio": "6",
"MaxTokens": "64000",
"MinTokens": "32001"
},
{
"CompletionRatio": "3",
"FixedPrice": "0",
"InputRatio": "8",
"MaxTokens": "-1",
"MinTokens": "64001"
}
]
},
"sourceConfigSha256": "118bbb2416cef4a481d92ac83211168437cabb9d2abb0314e79777150c6cabec",
"status": "PARSED_DECLARATION_CALCULATION_UNRESOLVED",
"tierOrder": "CLIENT_SORT_BY_MIN_TOKENS_STABLE",
"tierSelection": "NOT_EVALUATED",
"units": [
"SOURCE_DECLARED_CONDITIONAL_RATIOS_AND_FIXED_VALUE"
]
}
],
"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": null,
"input": "2400000.0",
"output": "7200000.0"
}
},
"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": "4"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "3"
}
],
"contentSha256": "b14ba0662c30b1f2f3a1618b28ad041bfc74cdc56fdd234be8c45991fe41b855",
"currencyInferred": false,
"declaredGroupRatio": "0.6",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "7b0cc66ea5c7c782d6d48a55371197d9b568d168d9045ea96a8cb8c624e1e348",
"rawDeclaredFieldsSha256": "83f47b39c0b85d099c4727c2b682f016cd6ca430a02a4aa455f5692ed5dbf9bc",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "41db9fcd41ed75159a7f19feb9f35123376d21f768a7f463a0cd0646aaf861a0",
"status": "PARTIAL_EXTRACTION_FINAL_TARIFF_UNRESOLVED",
"unresolvedTariffReasons": [
"CONDITIONAL_ACTIVE_MAP_EXPRESSION_PRECEDENCE_UNESTABLISHED",
"CONDITIONAL_CURRENCY_NOT_DECLARED",
"CONDITIONAL_SETTLEMENT_UNITS_UNESTABLISHED",
"CONDITIONAL_TOKEN_QUANTITY_BASIS_UNESTABLISHED"
]
},
"perRequestPrice": null,
"planId": "declared-group:Guochan6",
"pricePairSourceRowId": "41db9fcd41ed75159a7f19feb9f35123376d21f768a7f463a0cd0646aaf861a0",
"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"
},
{
"bundleSha256": "2c8bacb6f82d75fea06e6f5363469cbcbd14e8b9808cbeb5e6a4fb321fc3a1e1",
"bundleUrl": "https://api.zyai.online/static/js/1037.d0a7e82f.chunk.js",
"conditionalMapSha256": "09e03173c86a81ae3245b5e2a6d2492b8b7b79d224a57b91b3766dc2ebf8e3ce",
"legacyBodySha256": "76fa237bb1d78a5cf75e66046a44160aab628402b4a589be455c64371457f93a",
"legacyEndpoint": "https://api.zyai.online/api/pricing_legacy",
"legacyObservedAt": "2026-10-03T19:57:40.758Z",
"pricingAttemptId": "9af4c0e4c79cb7240621bdae8c62e8cd44cf69d44e4b752ba0def6c870ab7c78",
"pricingBodySha256": "6dec2a38a6547c331d007efbc909d70248b0eb46f96d0b0c6c1d9df55fd048e6",
"pricingObservedAt": "2026-10-03T19:06:26.514Z",
"pricingTransactionId": "418b8dd8695f48d596116e9073f372cdf69d641a6a739f4b4e513d72b3d6de1d"
},
{
"adapterVersion": "grandet.source-conditional-declaration/1.5.0",
"bundleSha256": "2c8bacb6f82d75fea06e6f5363469cbcbd14e8b9808cbeb5e6a4fb321fc3a1e1",
"fragmentSha256": "9dce525ca4bdcf7c5f3ee1831bbcdcb4e33dbe1db5ddf3b651943689179c1efa",
"kind": "SOURCE_CLIENT_WILDCARD_AND_FAMILY_SELECTION",
"sourceByteRange": [
6593,
8453
]
},
{
"adapterVersion": "grandet.source-conditional-declaration/1.5.0",
"bundleSha256": "2c8bacb6f82d75fea06e6f5363469cbcbd14e8b9808cbeb5e6a4fb321fc3a1e1",
"fragmentSha256": "3a017e8ceaed1d3c7fa54ae3286c015fcbedb25fc8d2b5cc7892adcf74aeec23",
"kind": "SOURCE_CLIENT_CONDITIONAL_EXACT_REGION_MERGE_AND_DISPLAY_GATE",
"sourceByteRange": [
39930,
42217
]
}
],
"pricingResolution": "UNRESOLVED",
"pricingRule": {
"branches": [
{
"components": [
{
"coefficient": "24",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "8",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "32000"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "≤ 32K",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "36",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "12",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "32000"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "32001"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "64000"
},
"type": "binary"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "32001–64K",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "48",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "16",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "32000"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "32001"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "64000"
},
"type": "binary"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "> 64K",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "32000"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "32001"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "64000"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "> 64K"
},
{
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "16"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "48"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "32001–64K"
},
{
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "12"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "36"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "≤ 32K"
},
{
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "8"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "24"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"c",
"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.6",
"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": "fc7dee1a2762f10cda96ee7d53da2ac67763352abfc9975c267e8c29047c1cae",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "bc6d461bca32a47765968eb9de3b237b0d9e39a5b2ce17cc91ea5da45af4fe3c",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "7b0cc66ea5c7c782d6d48a55371197d9b568d168d9045ea96a8cb8c624e1e348",
"quoteOrdinal": 341,
"snapshotId": "5309e3f8a12c26e5063fc81774dae62d114ef8cbb3fff52fc8ce2a0878babd46",
"sourceDomain": "api.zyai.online",
"sourceId": "api.zyai.online",
"sourceRowId": "41db9fcd41ed75159a7f19feb9f35123376d21f768a7f463a0cd0646aaf861a0",
"transactionId": "2ccc6f9f32270f0afe4f9c822bee474ad3a7d2e64132f628c53e5816c7d366a7",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}