default· Public API
Pricing unresolved · known amounts are not complete cost
No directly displayable scalar; the complete declaration is retained.
All prices, conditions and source evidence
gpt-5.6-luna-openai-compact
api.xi-ai.cn · Public API declaration
Plan / group: declared-group:default · default
Within observation window · not a live quote
Observed as of: · Original cache limit: · Effective limit (exclusive):
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
Extracted conditional declaration
Complete terms and source evidence
{
"branches": [
{
"completionRatio": "6",
"fixedPrice": "0",
"fixedPriceInterpretation": "RETAINED_SOURCE_DECLARATION_NOT_COMBINED_WITH_TOKEN_RATES",
"inputRatio": "0.1",
"sourceConditionOrdinal": 0,
"tokenBounds": {
"integerRequired": true,
"maximum": "272000",
"maximumInclusive": true,
"minimum": "0",
"minimumInclusive": true,
"quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
}
},
{
"completionRatio": "4.5",
"fixedPrice": "0",
"fixedPriceInterpretation": "RETAINED_SOURCE_DECLARATION_NOT_COMBINED_WITH_TOKEN_RATES",
"inputRatio": "0.2",
"sourceConditionOrdinal": 1,
"tokenBounds": {
"integerRequired": true,
"maximum": null,
"maximumInclusive": false,
"minimum": "272001",
"minimumInclusive": true,
"quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
}
}
],
"calculationSupported": false,
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"competingExpressionSha256": "d424f48963395479213dea6cfbd72f683e557303a9fd6339d27fcb8d592e7e21",
"declarationComplete": true,
"declaredCurrency": null,
"groupRatio": "3",
"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": "17c1d6829a673e699c02c017f8c672be128c8adde224453daa84d73037288efc",
"schema": "grandet.public-conditional-declaration/v1",
"selection": {
"selectedPattern": "gpt-5.6-luna*",
"selection": "MOST_SPECIFIC_THEN_LEXICAL"
},
"sourceConfig": {
"Conditions": [
{
"CompletionRatio": "6",
"FixedPrice": "0",
"InputRatio": "0.1",
"MaxTokens": "272000",
"MinTokens": "0"
},
{
"CompletionRatio": "4.5",
"FixedPrice": "0",
"InputRatio": "0.2",
"MaxTokens": "-1",
"MinTokens": "272001"
}
]
},
"sourceConfigSha256": "3e19f57b9f15589f05d7998a1b4139482ca674a30494a37e988dbeb185dcea44",
"status": "PARSED_DECLARATION_CALCULATION_UNRESOLVED",
"tierOrder": "CLIENT_SORT_BY_MIN_TOKENS_STABLE",
"tierSelection": "NOT_EVALUATED",
"units": [
"SOURCE_DECLARED_CONDITIONAL_RATIOS_AND_FIXED_VALUE"
]
}- 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.5 · SOURCE_BASE_MODEL_RATIO
- completion_ratio
- 6 · SOURCE_COMPLETION_RATIO
- cache_ratio
- 0.1 · SOURCE_CACHE_READ_RATIO
- create_cache_ratio
- 1.25 · SOURCE_CACHE_WRITE_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": "150000.00",
"cacheWrite": "1875000.000",
"input": "1500000.0",
"output": "9000000.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": "0.5"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "6"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "cache_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_CACHE_READ_RATIO",
"usageKind": "CACHE_READ",
"value": "0.1"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "create_cache_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_CACHE_WRITE_RATIO",
"usageKind": "CACHE_WRITE",
"value": "1.25"
}
],
"contentSha256": "f440ba62d5e29b3e292583a1ebd111a54d1f432855fd4dc07a9f893daa3df3d6",
"currencyInferred": false,
"declaredGroupRatio": "3",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "48d7b495ee0fabefbe0f8a2c8b61aa8dd4d89e03d32c37a8306837ab206e825b",
"rawDeclaredFieldsSha256": "0b566346b7dbd4bde043bbb221c0123a2aa8a1c0852c5f6396da75a40c1a5e06",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "801d92829b61c233b7ef37938dca75cae67ba4bff5a3df6121d3ae33fe0d17d6",
"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"
]
}Unresolved reasons
[ "CONDITIONAL_ACTIVE_MAP_EXPRESSION_PRECEDENCE_UNESTABLISHED", "CONDITIONAL_CURRENCY_NOT_DECLARED", "CONDITIONAL_SETTLEMENT_UNITS_UNESTABLISHED", "CONDITIONAL_TOKEN_QUANTITY_BASIS_UNESTABLISHED" ]
Complete pricing rule · all branches, units and conditions
{
"branches": [
{
"components": [
{
"coefficient": "1.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_5M_OR_GENERIC",
"usageVariable": "cc"
},
{
"coefficient": "0.02",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "0.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "272000"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "≤ 272K",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "1.8",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_5M_OR_GENERIC",
"usageVariable": "cc"
},
{
"coefficient": "0.04",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "0.4",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "272000"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "> 272K",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "272000"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "> 272K"
},
{
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.4"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.8"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.04"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.5"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "≤ 272K"
},
{
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.2"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.2"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.02"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.25"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"c",
"cc",
"cr",
"len",
"p"
]
},
"evidenceRefs": [
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
],
"expressionVersion": "v1",
"groupRatio": "3",
"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": "229d0acf6b790351b308280b701d7ea5c7757a5f9fe6b757b5f5da7c895ab028",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "d424f48963395479213dea6cfbd72f683e557303a9fd6339d27fcb8d592e7e21",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
}Complete declared conditions
{
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai"
],
"declaredGroupDescription": "默认模型",
"declaredGroupRatio": 3,
"eligibility": {
"declaredGroup": "default",
"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:45:53.704000Z",
"firstObservedAt": "2026-10-03T23:45:56.249Z",
"maximumQuoteAgeDays": 7,
"observedAt": "2026-10-03T23:45:56.249Z",
"snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
"sourceId": "api.xi-ai.cn",
"transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a"
}Complete public declaration and source identity
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "d725e98b9b0422cb7aa4e77b0118896f69771470c9da3963923b233e5cebac3c",
"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": "默认模型",
"declaredGroupRatio": 3,
"eligibility": {
"declaredGroup": "default",
"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": "default",
"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:45:53.704000Z",
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "gpt-5.6-luna-openai-compact",
"multimodalPricing": null,
"observedAt": "2026-10-03T23:45:56.249Z",
"outputPrice": null,
"parseRevisionId": "cd3f7e9604b81c99ef0cba69047d4da62020b89a0d8043aa7f0b6860b39c3928",
"parsedPricingDeclarations": [
{
"branches": [
{
"completionRatio": "6",
"fixedPrice": "0",
"fixedPriceInterpretation": "RETAINED_SOURCE_DECLARATION_NOT_COMBINED_WITH_TOKEN_RATES",
"inputRatio": "0.1",
"sourceConditionOrdinal": 0,
"tokenBounds": {
"integerRequired": true,
"maximum": "272000",
"maximumInclusive": true,
"minimum": "0",
"minimumInclusive": true,
"quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
}
},
{
"completionRatio": "4.5",
"fixedPrice": "0",
"fixedPriceInterpretation": "RETAINED_SOURCE_DECLARATION_NOT_COMBINED_WITH_TOKEN_RATES",
"inputRatio": "0.2",
"sourceConditionOrdinal": 1,
"tokenBounds": {
"integerRequired": true,
"maximum": null,
"maximumInclusive": false,
"minimum": "272001",
"minimumInclusive": true,
"quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
}
}
],
"calculationSupported": false,
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"competingExpressionSha256": "d424f48963395479213dea6cfbd72f683e557303a9fd6339d27fcb8d592e7e21",
"declarationComplete": true,
"declaredCurrency": null,
"groupRatio": "3",
"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": "17c1d6829a673e699c02c017f8c672be128c8adde224453daa84d73037288efc",
"schema": "grandet.public-conditional-declaration/v1",
"selection": {
"selectedPattern": "gpt-5.6-luna*",
"selection": "MOST_SPECIFIC_THEN_LEXICAL"
},
"sourceConfig": {
"Conditions": [
{
"CompletionRatio": "6",
"FixedPrice": "0",
"InputRatio": "0.1",
"MaxTokens": "272000",
"MinTokens": "0"
},
{
"CompletionRatio": "4.5",
"FixedPrice": "0",
"InputRatio": "0.2",
"MaxTokens": "-1",
"MinTokens": "272001"
}
]
},
"sourceConfigSha256": "3e19f57b9f15589f05d7998a1b4139482ca674a30494a37e988dbeb185dcea44",
"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": "150000.00",
"cacheWrite": "1875000.000",
"input": "1500000.0",
"output": "9000000.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": "0.5"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "6"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "cache_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_CACHE_READ_RATIO",
"usageKind": "CACHE_READ",
"value": "0.1"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "create_cache_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_CACHE_WRITE_RATIO",
"usageKind": "CACHE_WRITE",
"value": "1.25"
}
],
"contentSha256": "f440ba62d5e29b3e292583a1ebd111a54d1f432855fd4dc07a9f893daa3df3d6",
"currencyInferred": false,
"declaredGroupRatio": "3",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "48d7b495ee0fabefbe0f8a2c8b61aa8dd4d89e03d32c37a8306837ab206e825b",
"rawDeclaredFieldsSha256": "0b566346b7dbd4bde043bbb221c0123a2aa8a1c0852c5f6396da75a40c1a5e06",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "801d92829b61c233b7ef37938dca75cae67ba4bff5a3df6121d3ae33fe0d17d6",
"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:default",
"pricePairSourceRowId": "801d92829b61c233b7ef37938dca75cae67ba4bff5a3df6121d3ae33fe0d17d6",
"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": "0146732dfc422b187c9741334c21b25f057caf6a5170177f98ce4b71a9a6b41b",
"bundleUrl": "https://api.xi-ai.cn/static/js/1037.f9964504.chunk.js",
"conditionalMapSha256": "104709407082d12d5a527d60c84ae7cca3220b0021098630f7b1470d32b4556c",
"legacyBodySha256": "be861fb5aef92445b38a68ccc81fd057aa533847c7086b02b766ece90ec17988",
"legacyEndpoint": "https://api.xi-ai.cn/api/pricing_legacy",
"legacyObservedAt": "2026-10-03T19:57:40.204Z",
"pricingAttemptId": "62bffb103635ed79567fa7cff58a28fcf78288b7e1e084e840175412c3b8e698",
"pricingBodySha256": "2afa49c27d5cb2a56069ea74a8a714f13120892348611d40bc2e1822590cc41f",
"pricingObservedAt": "2026-10-03T19:05:51.284Z",
"pricingTransactionId": "ac47a9fafbf410357b5d386478edacd4496568480e1e6e79a209e9c185b48588"
},
{
"adapterVersion": "grandet.source-conditional-declaration/1.5.0",
"bundleSha256": "0146732dfc422b187c9741334c21b25f057caf6a5170177f98ce4b71a9a6b41b",
"fragmentSha256": "9dce525ca4bdcf7c5f3ee1831bbcdcb4e33dbe1db5ddf3b651943689179c1efa",
"kind": "SOURCE_CLIENT_WILDCARD_AND_FAMILY_SELECTION",
"sourceByteRange": [
6593,
8453
]
},
{
"adapterVersion": "grandet.source-conditional-declaration/1.5.0",
"bundleSha256": "0146732dfc422b187c9741334c21b25f057caf6a5170177f98ce4b71a9a6b41b",
"fragmentSha256": "3a017e8ceaed1d3c7fa54ae3286c015fcbedb25fc8d2b5cc7892adcf74aeec23",
"kind": "SOURCE_CLIENT_CONDITIONAL_EXACT_REGION_MERGE_AND_DISPLAY_GATE",
"sourceByteRange": [
39930,
42217
]
}
],
"pricingResolution": "UNRESOLVED",
"pricingRule": {
"branches": [
{
"components": [
{
"coefficient": "1.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_5M_OR_GENERIC",
"usageVariable": "cc"
},
{
"coefficient": "0.02",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "0.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "272000"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "≤ 272K",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "1.8",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_5M_OR_GENERIC",
"usageVariable": "cc"
},
{
"coefficient": "0.04",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "0.4",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "272000"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "> 272K",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "272000"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "> 272K"
},
{
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.4"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.8"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.04"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.5"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "≤ 272K"
},
{
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.2"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.2"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.02"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.25"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"c",
"cc",
"cr",
"len",
"p"
]
},
"evidenceRefs": [
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
],
"expressionVersion": "v1",
"groupRatio": "3",
"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": "229d0acf6b790351b308280b701d7ea5c7757a5f9fe6b757b5f5da7c895ab028",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "d424f48963395479213dea6cfbd72f683e557303a9fd6339d27fcb8d592e7e21",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "48d7b495ee0fabefbe0f8a2c8b61aa8dd4d89e03d32c37a8306837ab206e825b",
"quoteOrdinal": 1678,
"snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
"sourceDomain": "api.xi-ai.cn",
"sourceId": "api.xi-ai.cn",
"sourceRowId": "801d92829b61c233b7ef37938dca75cae67ba4bff5a3df6121d3ae33fe0d17d6",
"transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}