Within observation window · not a live quote
Observed as of: 2026-10-03T23:43:41.855Z · Original cache limit: 2026-10-10T23:43:40.625000Z · Effective limit (exclusive): 2026-10-10T23:43:40.625000Z
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
Input Not provided / unresolved
Output Not provided / unresolved
Per request Not provided / unresolved
Cache read Not provided / unresolved
Cache write Not provided / unresolved Extracted numeric fields These source ratios or price fields do not yet establish the complete plan cost.
model_ratio 0.6428571428571429 · SOURCE_BASE_MODEL_RATIO
completion_ratio 3 · SOURCE_COMPLETION_RATIO
cache_ratio 0.03333333333333333 · SOURCE_CACHE_READ_RATIO Complete partial extraction {
"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": "4714.28571428571412857142857142854000000",
"cacheWrite": null,
"input": "141428.571428571438000000",
"output": "424285.714285714314000000"
}
},
"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.6428571428571429"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "3"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "cache_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_CACHE_READ_RATIO",
"usageKind": "CACHE_READ",
"value": "0.03333333333333333"
}
],
"contentSha256": "ed4516b90ccf2cb2192f29faf6c50dfdc0a470b26a1a9ccbb7ed1274a5694e0f",
"currencyInferred": false,
"declaredGroupRatio": "0.22",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "75e036cc8b90edb6babd9da67bc66fa33288f5903078884b49208ee6a81ccfdf",
"rawDeclaredFieldsSha256": "6033d6126375046858a4c5c7c8d664b3675411e55437056f2288475e29ea8f42",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "880a310e50632568d90ead2fa7c3ecde612e6b1dddfc8d9ea338e2340dacdff3",
"status": "PARTIAL_EXTRACTION_FINAL_TARIFF_UNRESOLVED",
"unresolvedTariffReasons": [
"NONSTANDARD_GLOBAL_FIELDS"
]
} Unresolved reasons [
"NONSTANDARD_GLOBAL_FIELDS"
] Complete pricing rule · all branches, units and conditions {
"branches": [
{
"components": [
{
"coefficient": "3.857142857142857",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.04285714285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "1.2857142857142858",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "12"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "14"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "18"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"operand": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "3"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "2"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "15"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "23"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "19"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "21"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "27"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "7"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "!",
"type": "unary"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "peak",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "1.9285714285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.02142857142857143",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "0.6428571428571429",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "12"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "14"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "18"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"operand": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "3"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "2"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "15"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "23"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "19"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "21"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "27"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "7"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "!",
"type": "unary"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "off_peak",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "12"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "14"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "18"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"operand": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "3"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "2"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "15"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "23"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "19"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "21"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "27"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "7"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "!",
"type": "unary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "off_peak"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.6428571428571429"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.02142857142857143"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.9285714285714286"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "peak"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.2857142857142858"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.04285714285714286"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "3.857142857142857"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [
{
"argument": "Asia/Shanghai",
"function": "day"
},
{
"argument": "Asia/Shanghai",
"function": "hour"
},
{
"argument": "Asia/Shanghai",
"function": "month"
},
{
"argument": "Asia/Shanghai",
"function": "weekday"
}
],
"taskUsageSchema": null,
"usageVariables": [
"c",
"cr",
"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.22",
"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",
"CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
],
"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": "e03b05a644bfe9c3fcf6aa8483f69687c194726531c2ed030dda1f44e872fd81",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "7c471cea0ab93db0997a47aaf9d67b5b9debb132dd2cd3346e8c0c958ee1d26e",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
} Complete declared conditions {
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai"
],
"declaredGroupDescription": "kimi deepseek 智谱",
"declaredGroupRatio": "0.22",
"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"
}
} Bound source freshness context {
"cacheFreshUntil": "2026-10-10T23:43:40.625000Z",
"firstObservedAt": "2026-10-03T23:43:41.855Z",
"maximumQuoteAgeDays": 7,
"observedAt": "2026-10-03T23:43:41.855Z",
"snapshotId": "da59e79ff71bf4878a943793a83d13b19c8efc83d0b9d6ee490a5cae4ae79c6f",
"sourceId": "api.lingzhouai.com",
"transactionId": "01a75272df910bf22bcc73f6141eefb5b768aaba940ec49e1fd3574bda1738ac"
} Complete public declaration and source identity {
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "95bb1987e9e42352603799d31dbec924360832548ffab608858c79bd989c5460",
"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"
],
"declaredGroupDescription": "kimi deepseek 智谱",
"declaredGroupRatio": "0.22",
"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": [
"NONSTANDARD_GLOBAL_FIELDS"
],
"freshUntil": "2026-10-10T23:43:40.625000Z",
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "deepseek-v4-pro-0813",
"multimodalPricing": null,
"observedAt": "2026-10-03T23:43:41.855Z",
"outputPrice": null,
"parseRevisionId": "c3f81db930c244579fa3116df9f1542a8f68128f5f6c54633293c8cf7cef6090",
"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": "4714.28571428571412857142857142854000000",
"cacheWrite": null,
"input": "141428.571428571438000000",
"output": "424285.714285714314000000"
}
},
"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.6428571428571429"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "3"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "cache_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_CACHE_READ_RATIO",
"usageKind": "CACHE_READ",
"value": "0.03333333333333333"
}
],
"contentSha256": "ed4516b90ccf2cb2192f29faf6c50dfdc0a470b26a1a9ccbb7ed1274a5694e0f",
"currencyInferred": false,
"declaredGroupRatio": "0.22",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "75e036cc8b90edb6babd9da67bc66fa33288f5903078884b49208ee6a81ccfdf",
"rawDeclaredFieldsSha256": "6033d6126375046858a4c5c7c8d664b3675411e55437056f2288475e29ea8f42",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "880a310e50632568d90ead2fa7c3ecde612e6b1dddfc8d9ea338e2340dacdff3",
"status": "PARTIAL_EXTRACTION_FINAL_TARIFF_UNRESOLVED",
"unresolvedTariffReasons": [
"NONSTANDARD_GLOBAL_FIELDS"
]
},
"perRequestPrice": null,
"planId": "declared-group:国模",
"pricePairSourceRowId": "880a310e50632568d90ead2fa7c3ecde612e6b1dddfc8d9ea338e2340dacdff3",
"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": [
{
"coefficient": "3.857142857142857",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.04285714285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "1.2857142857142858",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "12"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "14"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "18"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"operand": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "3"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "2"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "15"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "23"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "19"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "21"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "27"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "7"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "!",
"type": "unary"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "peak",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "1.9285714285714286",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.02142857142857143",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "0.6428571428571429",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "12"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "14"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "18"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"operand": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "3"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "2"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "15"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "23"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "19"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "21"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "27"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "7"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "!",
"type": "unary"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "off_peak",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "12"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "14"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "18"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"operand": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "3"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "2"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "15"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "23"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "19"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "21"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "9"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "27"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "month",
"type": "call"
},
"operator": "==",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "Asia/Shanghai"
}
],
"function": "day",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "7"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"operator": "!",
"type": "unary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "off_peak"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.6428571428571429"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.02142857142857143"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.9285714285714286"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "peak"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.2857142857142858"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.04285714285714286"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "3.857142857142857"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [
{
"argument": "Asia/Shanghai",
"function": "day"
},
{
"argument": "Asia/Shanghai",
"function": "hour"
},
{
"argument": "Asia/Shanghai",
"function": "month"
},
{
"argument": "Asia/Shanghai",
"function": "weekday"
}
],
"taskUsageSchema": null,
"usageVariables": [
"c",
"cr",
"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.22",
"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",
"CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
],
"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": "e03b05a644bfe9c3fcf6aa8483f69687c194726531c2ed030dda1f44e872fd81",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "7c471cea0ab93db0997a47aaf9d67b5b9debb132dd2cd3346e8c0c958ee1d26e",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "75e036cc8b90edb6babd9da67bc66fa33288f5903078884b49208ee6a81ccfdf",
"quoteOrdinal": 58,
"snapshotId": "da59e79ff71bf4878a943793a83d13b19c8efc83d0b9d6ee490a5cae4ae79c6f",
"sourceDomain": "api.lingzhouai.com",
"sourceId": "api.lingzhouai.com",
"sourceRowId": "880a310e50632568d90ead2fa7c3ecde612e6b1dddfc8d9ea338e2340dacdff3",
"transactionId": "01a75272df910bf22bcc73f6141eefb5b768aaba940ec49e1fd3574bda1738ac",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}