528 identifier groups match; choose one and submit to view prices.

488 sources · 1,248 public declarations

Pricing and freshness · cash / quality unverified

Input, output, cache rates and conditions stay with their original plan. Host units differ and are not cash-ranked across hosts; cash qualification, upstream identity and quality remain unverified.

1,248 declarations in scope: 1,224 within observation window, 24 freshness unassessed, 0 historical / verification records.

Freshness evaluated as of: · Rendering does not extend the original observation window.

Captured name archive

Back to all sources

1 sources and 9 declarations match · 9 rows on this page

api.xi-ai.cn

9 declarations · 9 on this page

9 within window, 0 freshness unassessed, 0 historical / verification records.

code_x· Public API

gpt-5.4

Individual units in the complete rule · Observed:

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.4

api.xi-ai.cn · Public API declaration

Plan / group: declared-group:code_x · code_x

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": "1.25",
      "sourceConditionOrdinal": 0,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": "271999",
        "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": "2.5",
      "sourceConditionOrdinal": 1,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": null,
        "maximumInclusive": false,
        "minimum": "272000",
        "minimumInclusive": true,
        "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
      }
    }
  ],
  "calculationSupported": false,
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "declarationComplete": true,
  "declaredCurrency": null,
  "groupRatio": "0.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": "2a43f2b7d519e54c10184acde4f6cf6796ff46aa64d3a3757736cef71cfc5061",
  "schema": "grandet.public-conditional-declaration/v1",
  "selection": {
    "selectedPattern": "gpt-5.4",
    "selection": "EXACT"
  },
  "sourceConfig": {
    "Conditions": [
      {
        "CompletionRatio": "6",
        "FixedPrice": "0",
        "InputRatio": "1.25",
        "MaxTokens": "271999",
        "MinTokens": "0"
      },
      {
        "CompletionRatio": "4.5",
        "FixedPrice": "0",
        "InputRatio": "2.5",
        "MaxTokens": "-1",
        "MinTokens": "272000"
      }
    ]
  },
  "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
  "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
1.25 · SOURCE_BASE_MODEL_RATIO
completion_ratio
8 · SOURCE_COMPLETION_RATIO
cache_ratio
0.25 · 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": "93750.00000",
      "cacheWrite": null,
      "input": "375000.000",
      "output": "3000000.000"
    }
  },
  "cashQualification": "NOT_EVALUATED",
  "components": [
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "model_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_BASE_MODEL_RATIO",
      "usageKind": "TEXT_INPUT",
      "value": "1.25"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "completion_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_COMPLETION_RATIO",
      "usageKind": "TEXT_OUTPUT",
      "value": "8"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "cache_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_CACHE_READ_RATIO",
      "usageKind": "CACHE_READ",
      "value": "0.25"
    }
  ],
  "contentSha256": "2859babbb91a45441057fd33445e0cf64dcdb7dc422958589442985871318616",
  "currencyInferred": false,
  "declaredGroupRatio": "0.3",
  "effectiveQuote": false,
  "eligibleForPriceRanking": false,
  "quoteId": "adcf80f4e8f8321c8fd8203b72e263008d610b41d1ce9859155453357151acb5",
  "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
  "schema": "grandet.partial-price-components/v1",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "0.625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "2.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "≤ 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "22.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "1.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "> 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "condition": {
      "left": {
        "name": "len",
        "type": "variable"
      },
      "operator": "<=",
      "right": {
        "type": "number",
        "value": "271999"
      },
      "type": "binary"
    },
    "type": "conditional",
    "whenFalse": {
      "arguments": [
        {
          "type": "string",
          "value": "> 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "22.5"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "1.25"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    },
    "whenTrue": {
      "arguments": [
        {
          "type": "string",
          "value": "≤ 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "2.5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "15"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "0.625"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    }
  },
  "dependencies": {
    "requestContext": [],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "0.3",
  "groupRatioApplied": false,
  "humanExtractionReview": "NOT_PERFORMED",
  "kind": "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": "30744c5d1c5d26be41e6c1e3ba9098d3a696920d2ae1bb4af578d87c29d7452d",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "Codex-0.2",
  "declaredGroupRatio": "0.3",
  "eligibility": {
    "declaredGroup": "code_x",
    "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": "Codex-0.2",
    "declaredGroupRatio": "0.3",
    "eligibility": {
      "declaredGroup": "code_x",
      "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": "code_x",
  "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.4",
  "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": "1.25",
          "sourceConditionOrdinal": 0,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": "271999",
            "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": "2.5",
          "sourceConditionOrdinal": 1,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": null,
            "maximumInclusive": false,
            "minimum": "272000",
            "minimumInclusive": true,
            "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
          }
        }
      ],
      "calculationSupported": false,
      "cashQualification": "NOT_EVALUATED",
      "cashQualified": false,
      "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
      "declarationComplete": true,
      "declaredCurrency": null,
      "groupRatio": "0.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": "2a43f2b7d519e54c10184acde4f6cf6796ff46aa64d3a3757736cef71cfc5061",
      "schema": "grandet.public-conditional-declaration/v1",
      "selection": {
        "selectedPattern": "gpt-5.4",
        "selection": "EXACT"
      },
      "sourceConfig": {
        "Conditions": [
          {
            "CompletionRatio": "6",
            "FixedPrice": "0",
            "InputRatio": "1.25",
            "MaxTokens": "271999",
            "MinTokens": "0"
          },
          {
            "CompletionRatio": "4.5",
            "FixedPrice": "0",
            "InputRatio": "2.5",
            "MaxTokens": "-1",
            "MinTokens": "272000"
          }
        ]
      },
      "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
      "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": "93750.00000",
        "cacheWrite": null,
        "input": "375000.000",
        "output": "3000000.000"
      }
    },
    "cashQualification": "NOT_EVALUATED",
    "components": [
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "model_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_BASE_MODEL_RATIO",
        "usageKind": "TEXT_INPUT",
        "value": "1.25"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "completion_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_COMPLETION_RATIO",
        "usageKind": "TEXT_OUTPUT",
        "value": "8"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "cache_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_CACHE_READ_RATIO",
        "usageKind": "CACHE_READ",
        "value": "0.25"
      }
    ],
    "contentSha256": "2859babbb91a45441057fd33445e0cf64dcdb7dc422958589442985871318616",
    "currencyInferred": false,
    "declaredGroupRatio": "0.3",
    "effectiveQuote": false,
    "eligibleForPriceRanking": false,
    "quoteId": "adcf80f4e8f8321c8fd8203b72e263008d610b41d1ce9859155453357151acb5",
    "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
    "schema": "grandet.partial-price-components/v1",
    "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
    "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:code_x",
  "pricePairSourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "0.625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "2.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "≤ 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "22.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "1.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "> 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "condition": {
        "left": {
          "name": "len",
          "type": "variable"
        },
        "operator": "<=",
        "right": {
          "type": "number",
          "value": "271999"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "arguments": [
          {
            "type": "string",
            "value": "> 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "22.5"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "1.25"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      },
      "whenTrue": {
        "arguments": [
          {
            "type": "string",
            "value": "≤ 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "2.5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "15"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "0.625"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      }
    },
    "dependencies": {
      "requestContext": [],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "0.3",
    "groupRatioApplied": false,
    "humanExtractionReview": "NOT_PERFORMED",
    "kind": "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": "30744c5d1c5d26be41e6c1e3ba9098d3a696920d2ae1bb4af578d87c29d7452d",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "adcf80f4e8f8321c8fd8203b72e263008d610b41d1ce9859155453357151acb5",
  "quoteOrdinal": 1515,
  "snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
  "sourceDomain": "api.xi-ai.cn",
  "sourceId": "api.xi-ai.cn",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

default· Public API

gpt-5.4

Individual units in the complete rule · Observed:

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.4

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": "1.25",
      "sourceConditionOrdinal": 0,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": "271999",
        "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": "2.5",
      "sourceConditionOrdinal": 1,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": null,
        "maximumInclusive": false,
        "minimum": "272000",
        "minimumInclusive": true,
        "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
      }
    }
  ],
  "calculationSupported": false,
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "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": "aa4d0a6546378d541aebef9fb7251970b8fb5e0b13b86a2e5ec2b21ccbee36a5",
  "schema": "grandet.public-conditional-declaration/v1",
  "selection": {
    "selectedPattern": "gpt-5.4",
    "selection": "EXACT"
  },
  "sourceConfig": {
    "Conditions": [
      {
        "CompletionRatio": "6",
        "FixedPrice": "0",
        "InputRatio": "1.25",
        "MaxTokens": "271999",
        "MinTokens": "0"
      },
      {
        "CompletionRatio": "4.5",
        "FixedPrice": "0",
        "InputRatio": "2.5",
        "MaxTokens": "-1",
        "MinTokens": "272000"
      }
    ]
  },
  "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
  "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
1.25 · SOURCE_BASE_MODEL_RATIO
completion_ratio
8 · SOURCE_COMPLETION_RATIO
cache_ratio
0.25 · 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": "937500.0000",
      "cacheWrite": null,
      "input": "3750000.00",
      "output": "30000000.00"
    }
  },
  "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": "1.25"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "completion_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_COMPLETION_RATIO",
      "usageKind": "TEXT_OUTPUT",
      "value": "8"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "cache_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_CACHE_READ_RATIO",
      "usageKind": "CACHE_READ",
      "value": "0.25"
    }
  ],
  "contentSha256": "5763f3af6eea8ce88013c8f9d5d3e945fa5cdd47d2c6474b5b954fe31b3a8789",
  "currencyInferred": false,
  "declaredGroupRatio": "3",
  "effectiveQuote": false,
  "eligibleForPriceRanking": false,
  "quoteId": "e557d01d3bf0838ccefe556b2e4a729978724eab859d3505b7d7e33b2f90d591",
  "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
  "schema": "grandet.partial-price-components/v1",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "0.625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "2.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "≤ 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "22.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "1.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "> 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "condition": {
      "left": {
        "name": "len",
        "type": "variable"
      },
      "operator": "<=",
      "right": {
        "type": "number",
        "value": "271999"
      },
      "type": "binary"
    },
    "type": "conditional",
    "whenFalse": {
      "arguments": [
        {
          "type": "string",
          "value": "> 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "22.5"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "1.25"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    },
    "whenTrue": {
      "arguments": [
        {
          "type": "string",
          "value": "≤ 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "2.5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "15"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "0.625"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    }
  },
  "dependencies": {
    "requestContext": [],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "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": "2e17c134f70a680cb92359cfd592efbcebbb1cb1486dc5f1beec4a367de9d219",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "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.4",
  "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": "1.25",
          "sourceConditionOrdinal": 0,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": "271999",
            "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": "2.5",
          "sourceConditionOrdinal": 1,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": null,
            "maximumInclusive": false,
            "minimum": "272000",
            "minimumInclusive": true,
            "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
          }
        }
      ],
      "calculationSupported": false,
      "cashQualification": "NOT_EVALUATED",
      "cashQualified": false,
      "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
      "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": "aa4d0a6546378d541aebef9fb7251970b8fb5e0b13b86a2e5ec2b21ccbee36a5",
      "schema": "grandet.public-conditional-declaration/v1",
      "selection": {
        "selectedPattern": "gpt-5.4",
        "selection": "EXACT"
      },
      "sourceConfig": {
        "Conditions": [
          {
            "CompletionRatio": "6",
            "FixedPrice": "0",
            "InputRatio": "1.25",
            "MaxTokens": "271999",
            "MinTokens": "0"
          },
          {
            "CompletionRatio": "4.5",
            "FixedPrice": "0",
            "InputRatio": "2.5",
            "MaxTokens": "-1",
            "MinTokens": "272000"
          }
        ]
      },
      "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
      "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": "937500.0000",
        "cacheWrite": null,
        "input": "3750000.00",
        "output": "30000000.00"
      }
    },
    "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": "1.25"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "completion_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_COMPLETION_RATIO",
        "usageKind": "TEXT_OUTPUT",
        "value": "8"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "cache_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_CACHE_READ_RATIO",
        "usageKind": "CACHE_READ",
        "value": "0.25"
      }
    ],
    "contentSha256": "5763f3af6eea8ce88013c8f9d5d3e945fa5cdd47d2c6474b5b954fe31b3a8789",
    "currencyInferred": false,
    "declaredGroupRatio": "3",
    "effectiveQuote": false,
    "eligibleForPriceRanking": false,
    "quoteId": "e557d01d3bf0838ccefe556b2e4a729978724eab859d3505b7d7e33b2f90d591",
    "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
    "schema": "grandet.partial-price-components/v1",
    "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
    "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": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "0.625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "2.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "≤ 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "22.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "1.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "> 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "condition": {
        "left": {
          "name": "len",
          "type": "variable"
        },
        "operator": "<=",
        "right": {
          "type": "number",
          "value": "271999"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "arguments": [
          {
            "type": "string",
            "value": "> 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "22.5"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "1.25"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      },
      "whenTrue": {
        "arguments": [
          {
            "type": "string",
            "value": "≤ 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "2.5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "15"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "0.625"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      }
    },
    "dependencies": {
      "requestContext": [],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "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": "2e17c134f70a680cb92359cfd592efbcebbb1cb1486dc5f1beec4a367de9d219",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "e557d01d3bf0838ccefe556b2e4a729978724eab859d3505b7d7e33b2f90d591",
  "quoteOrdinal": 1516,
  "snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
  "sourceDomain": "api.xi-ai.cn",
  "sourceId": "api.xi-ai.cn",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

default_1· Public API

gpt-5.4

Individual units in the complete rule · Observed:

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.4

api.xi-ai.cn · Public API declaration

Plan / group: declared-group:default_1 · default_1

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": "1.25",
      "sourceConditionOrdinal": 0,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": "271999",
        "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": "2.5",
      "sourceConditionOrdinal": 1,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": null,
        "maximumInclusive": false,
        "minimum": "272000",
        "minimumInclusive": true,
        "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
      }
    }
  ],
  "calculationSupported": false,
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "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": "aa4d0a6546378d541aebef9fb7251970b8fb5e0b13b86a2e5ec2b21ccbee36a5",
  "schema": "grandet.public-conditional-declaration/v1",
  "selection": {
    "selectedPattern": "gpt-5.4",
    "selection": "EXACT"
  },
  "sourceConfig": {
    "Conditions": [
      {
        "CompletionRatio": "6",
        "FixedPrice": "0",
        "InputRatio": "1.25",
        "MaxTokens": "271999",
        "MinTokens": "0"
      },
      {
        "CompletionRatio": "4.5",
        "FixedPrice": "0",
        "InputRatio": "2.5",
        "MaxTokens": "-1",
        "MinTokens": "272000"
      }
    ]
  },
  "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
  "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
1.25 · SOURCE_BASE_MODEL_RATIO
completion_ratio
8 · SOURCE_COMPLETION_RATIO
cache_ratio
0.25 · 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": "937500.0000",
      "cacheWrite": null,
      "input": "3750000.00",
      "output": "30000000.00"
    }
  },
  "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": "1.25"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "completion_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_COMPLETION_RATIO",
      "usageKind": "TEXT_OUTPUT",
      "value": "8"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "cache_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_CACHE_READ_RATIO",
      "usageKind": "CACHE_READ",
      "value": "0.25"
    }
  ],
  "contentSha256": "b4bd347f83c50939dba16b1bd5105410898d512cbea376a7d882b53ab35de8c9",
  "currencyInferred": false,
  "declaredGroupRatio": "3",
  "effectiveQuote": false,
  "eligibleForPriceRanking": false,
  "quoteId": "e25ed5c2ee5d546318bae619bc72ebc9dcc550685301119b5c2d039d72bf6919",
  "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
  "schema": "grandet.partial-price-components/v1",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "0.625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "2.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "≤ 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "22.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "1.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "> 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "condition": {
      "left": {
        "name": "len",
        "type": "variable"
      },
      "operator": "<=",
      "right": {
        "type": "number",
        "value": "271999"
      },
      "type": "binary"
    },
    "type": "conditional",
    "whenFalse": {
      "arguments": [
        {
          "type": "string",
          "value": "> 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "22.5"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "1.25"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    },
    "whenTrue": {
      "arguments": [
        {
          "type": "string",
          "value": "≤ 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "2.5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "15"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "0.625"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    }
  },
  "dependencies": {
    "requestContext": [],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "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": "2e17c134f70a680cb92359cfd592efbcebbb1cb1486dc5f1beec4a367de9d219",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "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_1",
    "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_1",
      "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_1",
  "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.4",
  "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": "1.25",
          "sourceConditionOrdinal": 0,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": "271999",
            "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": "2.5",
          "sourceConditionOrdinal": 1,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": null,
            "maximumInclusive": false,
            "minimum": "272000",
            "minimumInclusive": true,
            "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
          }
        }
      ],
      "calculationSupported": false,
      "cashQualification": "NOT_EVALUATED",
      "cashQualified": false,
      "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
      "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": "aa4d0a6546378d541aebef9fb7251970b8fb5e0b13b86a2e5ec2b21ccbee36a5",
      "schema": "grandet.public-conditional-declaration/v1",
      "selection": {
        "selectedPattern": "gpt-5.4",
        "selection": "EXACT"
      },
      "sourceConfig": {
        "Conditions": [
          {
            "CompletionRatio": "6",
            "FixedPrice": "0",
            "InputRatio": "1.25",
            "MaxTokens": "271999",
            "MinTokens": "0"
          },
          {
            "CompletionRatio": "4.5",
            "FixedPrice": "0",
            "InputRatio": "2.5",
            "MaxTokens": "-1",
            "MinTokens": "272000"
          }
        ]
      },
      "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
      "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": "937500.0000",
        "cacheWrite": null,
        "input": "3750000.00",
        "output": "30000000.00"
      }
    },
    "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": "1.25"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "completion_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_COMPLETION_RATIO",
        "usageKind": "TEXT_OUTPUT",
        "value": "8"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "cache_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_CACHE_READ_RATIO",
        "usageKind": "CACHE_READ",
        "value": "0.25"
      }
    ],
    "contentSha256": "b4bd347f83c50939dba16b1bd5105410898d512cbea376a7d882b53ab35de8c9",
    "currencyInferred": false,
    "declaredGroupRatio": "3",
    "effectiveQuote": false,
    "eligibleForPriceRanking": false,
    "quoteId": "e25ed5c2ee5d546318bae619bc72ebc9dcc550685301119b5c2d039d72bf6919",
    "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
    "schema": "grandet.partial-price-components/v1",
    "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
    "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_1",
  "pricePairSourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "0.625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "2.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "≤ 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "22.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "1.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "> 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "condition": {
        "left": {
          "name": "len",
          "type": "variable"
        },
        "operator": "<=",
        "right": {
          "type": "number",
          "value": "271999"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "arguments": [
          {
            "type": "string",
            "value": "> 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "22.5"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "1.25"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      },
      "whenTrue": {
        "arguments": [
          {
            "type": "string",
            "value": "≤ 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "2.5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "15"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "0.625"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      }
    },
    "dependencies": {
      "requestContext": [],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "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": "2e17c134f70a680cb92359cfd592efbcebbb1cb1486dc5f1beec4a367de9d219",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "e25ed5c2ee5d546318bae619bc72ebc9dcc550685301119b5c2d039d72bf6919",
  "quoteOrdinal": 1517,
  "snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
  "sourceDomain": "api.xi-ai.cn",
  "sourceId": "api.xi-ai.cn",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

gpt_codex_0· Public API

gpt-5.4

Individual units in the complete rule · Observed:

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.4

api.xi-ai.cn · Public API declaration

Plan / group: declared-group:gpt_codex_0 · gpt_codex_0

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": "1.25",
      "sourceConditionOrdinal": 0,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": "271999",
        "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": "2.5",
      "sourceConditionOrdinal": 1,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": null,
        "maximumInclusive": false,
        "minimum": "272000",
        "minimumInclusive": true,
        "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
      }
    }
  ],
  "calculationSupported": false,
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "declarationComplete": true,
  "declaredCurrency": null,
  "groupRatio": "0.2",
  "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": "a9753dcdba76c06fc78c0a816bd13b1a45d26b9d0f6a0ad0021de3d0112f4149",
  "schema": "grandet.public-conditional-declaration/v1",
  "selection": {
    "selectedPattern": "gpt-5.4",
    "selection": "EXACT"
  },
  "sourceConfig": {
    "Conditions": [
      {
        "CompletionRatio": "6",
        "FixedPrice": "0",
        "InputRatio": "1.25",
        "MaxTokens": "271999",
        "MinTokens": "0"
      },
      {
        "CompletionRatio": "4.5",
        "FixedPrice": "0",
        "InputRatio": "2.5",
        "MaxTokens": "-1",
        "MinTokens": "272000"
      }
    ]
  },
  "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
  "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
1.25 · SOURCE_BASE_MODEL_RATIO
completion_ratio
8 · SOURCE_COMPLETION_RATIO
cache_ratio
0.25 · 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": "62500.00000",
      "cacheWrite": null,
      "input": "250000.000",
      "output": "2000000.000"
    }
  },
  "cashQualification": "NOT_EVALUATED",
  "components": [
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "model_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_BASE_MODEL_RATIO",
      "usageKind": "TEXT_INPUT",
      "value": "1.25"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "completion_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_COMPLETION_RATIO",
      "usageKind": "TEXT_OUTPUT",
      "value": "8"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "cache_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_CACHE_READ_RATIO",
      "usageKind": "CACHE_READ",
      "value": "0.25"
    }
  ],
  "contentSha256": "760e736d1ade0dd111a872eb761cebe946e2dba9240dbf07032005e0f9b2135a",
  "currencyInferred": false,
  "declaredGroupRatio": "0.2",
  "effectiveQuote": false,
  "eligibleForPriceRanking": false,
  "quoteId": "b9cff645787f708984405609c0dc0dad423a3b317b36fe9b6e76b90a7399006e",
  "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
  "schema": "grandet.partial-price-components/v1",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "0.625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "2.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "≤ 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "22.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "1.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "> 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "condition": {
      "left": {
        "name": "len",
        "type": "variable"
      },
      "operator": "<=",
      "right": {
        "type": "number",
        "value": "271999"
      },
      "type": "binary"
    },
    "type": "conditional",
    "whenFalse": {
      "arguments": [
        {
          "type": "string",
          "value": "> 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "22.5"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "1.25"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    },
    "whenTrue": {
      "arguments": [
        {
          "type": "string",
          "value": "≤ 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "2.5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "15"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "0.625"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    }
  },
  "dependencies": {
    "requestContext": [],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "0.2",
  "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": "ee18c19fe03341ef34f3b1fb9d7bc2778edd93b6e3b9bd1a0922bd2a3686a7e7",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "gpt-codex-稳定",
  "declaredGroupRatio": "0.2",
  "eligibility": {
    "declaredGroup": "gpt_codex_0",
    "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": "gpt-codex-稳定",
    "declaredGroupRatio": "0.2",
    "eligibility": {
      "declaredGroup": "gpt_codex_0",
      "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": "gpt_codex_0",
  "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.4",
  "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": "1.25",
          "sourceConditionOrdinal": 0,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": "271999",
            "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": "2.5",
          "sourceConditionOrdinal": 1,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": null,
            "maximumInclusive": false,
            "minimum": "272000",
            "minimumInclusive": true,
            "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
          }
        }
      ],
      "calculationSupported": false,
      "cashQualification": "NOT_EVALUATED",
      "cashQualified": false,
      "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
      "declarationComplete": true,
      "declaredCurrency": null,
      "groupRatio": "0.2",
      "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": "a9753dcdba76c06fc78c0a816bd13b1a45d26b9d0f6a0ad0021de3d0112f4149",
      "schema": "grandet.public-conditional-declaration/v1",
      "selection": {
        "selectedPattern": "gpt-5.4",
        "selection": "EXACT"
      },
      "sourceConfig": {
        "Conditions": [
          {
            "CompletionRatio": "6",
            "FixedPrice": "0",
            "InputRatio": "1.25",
            "MaxTokens": "271999",
            "MinTokens": "0"
          },
          {
            "CompletionRatio": "4.5",
            "FixedPrice": "0",
            "InputRatio": "2.5",
            "MaxTokens": "-1",
            "MinTokens": "272000"
          }
        ]
      },
      "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
      "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": "62500.00000",
        "cacheWrite": null,
        "input": "250000.000",
        "output": "2000000.000"
      }
    },
    "cashQualification": "NOT_EVALUATED",
    "components": [
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "model_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_BASE_MODEL_RATIO",
        "usageKind": "TEXT_INPUT",
        "value": "1.25"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "completion_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_COMPLETION_RATIO",
        "usageKind": "TEXT_OUTPUT",
        "value": "8"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "cache_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_CACHE_READ_RATIO",
        "usageKind": "CACHE_READ",
        "value": "0.25"
      }
    ],
    "contentSha256": "760e736d1ade0dd111a872eb761cebe946e2dba9240dbf07032005e0f9b2135a",
    "currencyInferred": false,
    "declaredGroupRatio": "0.2",
    "effectiveQuote": false,
    "eligibleForPriceRanking": false,
    "quoteId": "b9cff645787f708984405609c0dc0dad423a3b317b36fe9b6e76b90a7399006e",
    "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
    "schema": "grandet.partial-price-components/v1",
    "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
    "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:gpt_codex_0",
  "pricePairSourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "0.625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "2.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "≤ 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "22.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "1.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "> 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "condition": {
        "left": {
          "name": "len",
          "type": "variable"
        },
        "operator": "<=",
        "right": {
          "type": "number",
          "value": "271999"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "arguments": [
          {
            "type": "string",
            "value": "> 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "22.5"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "1.25"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      },
      "whenTrue": {
        "arguments": [
          {
            "type": "string",
            "value": "≤ 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "2.5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "15"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "0.625"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      }
    },
    "dependencies": {
      "requestContext": [],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "0.2",
    "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": "ee18c19fe03341ef34f3b1fb9d7bc2778edd93b6e3b9bd1a0922bd2a3686a7e7",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "b9cff645787f708984405609c0dc0dad423a3b317b36fe9b6e76b90a7399006e",
  "quoteOrdinal": 1518,
  "snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
  "sourceDomain": "api.xi-ai.cn",
  "sourceId": "api.xi-ai.cn",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

gpt_codex_2· Public API

gpt-5.4

Individual units in the complete rule · Observed:

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.4

api.xi-ai.cn · Public API declaration

Plan / group: declared-group:gpt_codex_2 · gpt_codex_2

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": "1.25",
      "sourceConditionOrdinal": 0,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": "271999",
        "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": "2.5",
      "sourceConditionOrdinal": 1,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": null,
        "maximumInclusive": false,
        "minimum": "272000",
        "minimumInclusive": true,
        "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
      }
    }
  ],
  "calculationSupported": false,
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "declarationComplete": true,
  "declaredCurrency": null,
  "groupRatio": "0.35",
  "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": "4295d87effe38f0ade2835feb52283d354b4c8d2ea5e0c279d6293adc15842da",
  "schema": "grandet.public-conditional-declaration/v1",
  "selection": {
    "selectedPattern": "gpt-5.4",
    "selection": "EXACT"
  },
  "sourceConfig": {
    "Conditions": [
      {
        "CompletionRatio": "6",
        "FixedPrice": "0",
        "InputRatio": "1.25",
        "MaxTokens": "271999",
        "MinTokens": "0"
      },
      {
        "CompletionRatio": "4.5",
        "FixedPrice": "0",
        "InputRatio": "2.5",
        "MaxTokens": "-1",
        "MinTokens": "272000"
      }
    ]
  },
  "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
  "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
1.25 · SOURCE_BASE_MODEL_RATIO
completion_ratio
8 · SOURCE_COMPLETION_RATIO
cache_ratio
0.25 · 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": "109375.000000",
      "cacheWrite": null,
      "input": "437500.0000",
      "output": "3500000.0000"
    }
  },
  "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": "1.25"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "completion_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_COMPLETION_RATIO",
      "usageKind": "TEXT_OUTPUT",
      "value": "8"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "cache_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_CACHE_READ_RATIO",
      "usageKind": "CACHE_READ",
      "value": "0.25"
    }
  ],
  "contentSha256": "d9b10c5c31404b1dcefcc6112bdc3449d825686db205a993dcc9d7414579d26a",
  "currencyInferred": false,
  "declaredGroupRatio": "0.35",
  "effectiveQuote": false,
  "eligibleForPriceRanking": false,
  "quoteId": "5a8d15ee831b6a9f2cec58429c87810c701db64eb0a61ab29296bdbb2da96d7f",
  "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
  "schema": "grandet.partial-price-components/v1",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "0.625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "2.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "≤ 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "22.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "1.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "> 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "condition": {
      "left": {
        "name": "len",
        "type": "variable"
      },
      "operator": "<=",
      "right": {
        "type": "number",
        "value": "271999"
      },
      "type": "binary"
    },
    "type": "conditional",
    "whenFalse": {
      "arguments": [
        {
          "type": "string",
          "value": "> 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "22.5"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "1.25"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    },
    "whenTrue": {
      "arguments": [
        {
          "type": "string",
          "value": "≤ 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "2.5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "15"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "0.625"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    }
  },
  "dependencies": {
    "requestContext": [],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "0.35",
  "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": "9a07c6e164f91898820604a688cfea2f2d37731b3ad99398721e97a9993c45b0",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "gpt-codex-稳定极速",
  "declaredGroupRatio": "0.35",
  "eligibility": {
    "declaredGroup": "gpt_codex_2",
    "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": "gpt-codex-稳定极速",
    "declaredGroupRatio": "0.35",
    "eligibility": {
      "declaredGroup": "gpt_codex_2",
      "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": "gpt_codex_2",
  "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.4",
  "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": "1.25",
          "sourceConditionOrdinal": 0,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": "271999",
            "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": "2.5",
          "sourceConditionOrdinal": 1,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": null,
            "maximumInclusive": false,
            "minimum": "272000",
            "minimumInclusive": true,
            "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
          }
        }
      ],
      "calculationSupported": false,
      "cashQualification": "NOT_EVALUATED",
      "cashQualified": false,
      "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
      "declarationComplete": true,
      "declaredCurrency": null,
      "groupRatio": "0.35",
      "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": "4295d87effe38f0ade2835feb52283d354b4c8d2ea5e0c279d6293adc15842da",
      "schema": "grandet.public-conditional-declaration/v1",
      "selection": {
        "selectedPattern": "gpt-5.4",
        "selection": "EXACT"
      },
      "sourceConfig": {
        "Conditions": [
          {
            "CompletionRatio": "6",
            "FixedPrice": "0",
            "InputRatio": "1.25",
            "MaxTokens": "271999",
            "MinTokens": "0"
          },
          {
            "CompletionRatio": "4.5",
            "FixedPrice": "0",
            "InputRatio": "2.5",
            "MaxTokens": "-1",
            "MinTokens": "272000"
          }
        ]
      },
      "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
      "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": "109375.000000",
        "cacheWrite": null,
        "input": "437500.0000",
        "output": "3500000.0000"
      }
    },
    "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": "1.25"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "completion_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_COMPLETION_RATIO",
        "usageKind": "TEXT_OUTPUT",
        "value": "8"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "cache_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_CACHE_READ_RATIO",
        "usageKind": "CACHE_READ",
        "value": "0.25"
      }
    ],
    "contentSha256": "d9b10c5c31404b1dcefcc6112bdc3449d825686db205a993dcc9d7414579d26a",
    "currencyInferred": false,
    "declaredGroupRatio": "0.35",
    "effectiveQuote": false,
    "eligibleForPriceRanking": false,
    "quoteId": "5a8d15ee831b6a9f2cec58429c87810c701db64eb0a61ab29296bdbb2da96d7f",
    "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
    "schema": "grandet.partial-price-components/v1",
    "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
    "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:gpt_codex_2",
  "pricePairSourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "0.625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "2.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "≤ 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "22.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "1.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "> 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "condition": {
        "left": {
          "name": "len",
          "type": "variable"
        },
        "operator": "<=",
        "right": {
          "type": "number",
          "value": "271999"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "arguments": [
          {
            "type": "string",
            "value": "> 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "22.5"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "1.25"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      },
      "whenTrue": {
        "arguments": [
          {
            "type": "string",
            "value": "≤ 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "2.5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "15"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "0.625"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      }
    },
    "dependencies": {
      "requestContext": [],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "0.35",
    "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": "9a07c6e164f91898820604a688cfea2f2d37731b3ad99398721e97a9993c45b0",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "5a8d15ee831b6a9f2cec58429c87810c701db64eb0a61ab29296bdbb2da96d7f",
  "quoteOrdinal": 1519,
  "snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
  "sourceDomain": "api.xi-ai.cn",
  "sourceId": "api.xi-ai.cn",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

优惠模型· Public API

gpt-5.4

Individual units in the complete rule · Observed:

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.4

api.xi-ai.cn · Public API declaration

Plan / group: declared-group:优惠模型 · 优惠模型

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": "1.25",
      "sourceConditionOrdinal": 0,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": "271999",
        "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": "2.5",
      "sourceConditionOrdinal": 1,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": null,
        "maximumInclusive": false,
        "minimum": "272000",
        "minimumInclusive": true,
        "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
      }
    }
  ],
  "calculationSupported": false,
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "declarationComplete": true,
  "declaredCurrency": null,
  "groupRatio": "2",
  "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": "b38a451000395ca5028cb5d5d91ac63d0cd0386d174bb30e25c030730e68f2c9",
  "schema": "grandet.public-conditional-declaration/v1",
  "selection": {
    "selectedPattern": "gpt-5.4",
    "selection": "EXACT"
  },
  "sourceConfig": {
    "Conditions": [
      {
        "CompletionRatio": "6",
        "FixedPrice": "0",
        "InputRatio": "1.25",
        "MaxTokens": "271999",
        "MinTokens": "0"
      },
      {
        "CompletionRatio": "4.5",
        "FixedPrice": "0",
        "InputRatio": "2.5",
        "MaxTokens": "-1",
        "MinTokens": "272000"
      }
    ]
  },
  "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
  "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
1.25 · SOURCE_BASE_MODEL_RATIO
completion_ratio
8 · SOURCE_COMPLETION_RATIO
cache_ratio
0.25 · 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": "625000.0000",
      "cacheWrite": null,
      "input": "2500000.00",
      "output": "20000000.00"
    }
  },
  "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": "1.25"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "completion_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_COMPLETION_RATIO",
      "usageKind": "TEXT_OUTPUT",
      "value": "8"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "cache_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_CACHE_READ_RATIO",
      "usageKind": "CACHE_READ",
      "value": "0.25"
    }
  ],
  "contentSha256": "dd0ddb2aae8ac7e4d2335f65478841088bd892a9fada0a91800fdffb8afdfbcc",
  "currencyInferred": false,
  "declaredGroupRatio": "2",
  "effectiveQuote": false,
  "eligibleForPriceRanking": false,
  "quoteId": "17592cc1b8f8eb004c2a675ec24103867f757ab96a6e2e97f1a482f24abcb649",
  "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
  "schema": "grandet.partial-price-components/v1",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "0.625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "2.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "≤ 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "22.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "1.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "> 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "condition": {
      "left": {
        "name": "len",
        "type": "variable"
      },
      "operator": "<=",
      "right": {
        "type": "number",
        "value": "271999"
      },
      "type": "binary"
    },
    "type": "conditional",
    "whenFalse": {
      "arguments": [
        {
          "type": "string",
          "value": "> 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "22.5"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "1.25"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    },
    "whenTrue": {
      "arguments": [
        {
          "type": "string",
          "value": "≤ 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "2.5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "15"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "0.625"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    }
  },
  "dependencies": {
    "requestContext": [],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "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": "2",
  "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": "d53edf411256ccf2e99cf4da274bef77c36f524d5490ceccb0b513bbebfe121b",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "1比2分组",
  "declaredGroupRatio": 2,
  "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: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": "1比2分组",
    "declaredGroupRatio": 2,
    "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": [
    "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.4",
  "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": "1.25",
          "sourceConditionOrdinal": 0,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": "271999",
            "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": "2.5",
          "sourceConditionOrdinal": 1,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": null,
            "maximumInclusive": false,
            "minimum": "272000",
            "minimumInclusive": true,
            "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
          }
        }
      ],
      "calculationSupported": false,
      "cashQualification": "NOT_EVALUATED",
      "cashQualified": false,
      "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
      "declarationComplete": true,
      "declaredCurrency": null,
      "groupRatio": "2",
      "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": "b38a451000395ca5028cb5d5d91ac63d0cd0386d174bb30e25c030730e68f2c9",
      "schema": "grandet.public-conditional-declaration/v1",
      "selection": {
        "selectedPattern": "gpt-5.4",
        "selection": "EXACT"
      },
      "sourceConfig": {
        "Conditions": [
          {
            "CompletionRatio": "6",
            "FixedPrice": "0",
            "InputRatio": "1.25",
            "MaxTokens": "271999",
            "MinTokens": "0"
          },
          {
            "CompletionRatio": "4.5",
            "FixedPrice": "0",
            "InputRatio": "2.5",
            "MaxTokens": "-1",
            "MinTokens": "272000"
          }
        ]
      },
      "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
      "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": "625000.0000",
        "cacheWrite": null,
        "input": "2500000.00",
        "output": "20000000.00"
      }
    },
    "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": "1.25"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "completion_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_COMPLETION_RATIO",
        "usageKind": "TEXT_OUTPUT",
        "value": "8"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "cache_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_CACHE_READ_RATIO",
        "usageKind": "CACHE_READ",
        "value": "0.25"
      }
    ],
    "contentSha256": "dd0ddb2aae8ac7e4d2335f65478841088bd892a9fada0a91800fdffb8afdfbcc",
    "currencyInferred": false,
    "declaredGroupRatio": "2",
    "effectiveQuote": false,
    "eligibleForPriceRanking": false,
    "quoteId": "17592cc1b8f8eb004c2a675ec24103867f757ab96a6e2e97f1a482f24abcb649",
    "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
    "schema": "grandet.partial-price-components/v1",
    "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
    "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:优惠模型",
  "pricePairSourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "0.625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "2.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "≤ 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "22.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "1.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "> 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "condition": {
        "left": {
          "name": "len",
          "type": "variable"
        },
        "operator": "<=",
        "right": {
          "type": "number",
          "value": "271999"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "arguments": [
          {
            "type": "string",
            "value": "> 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "22.5"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "1.25"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      },
      "whenTrue": {
        "arguments": [
          {
            "type": "string",
            "value": "≤ 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "2.5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "15"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "0.625"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      }
    },
    "dependencies": {
      "requestContext": [],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "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": "2",
    "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": "d53edf411256ccf2e99cf4da274bef77c36f524d5490ceccb0b513bbebfe121b",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "17592cc1b8f8eb004c2a675ec24103867f757ab96a6e2e97f1a482f24abcb649",
  "quoteOrdinal": 1520,
  "snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
  "sourceDomain": "api.xi-ai.cn",
  "sourceId": "api.xi-ai.cn",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

国产模型· Public API

gpt-5.4

Individual units in the complete rule · Observed:

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.4

api.xi-ai.cn · Public API declaration

Plan / group: declared-group:国产模型 · 国产模型

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": "1.25",
      "sourceConditionOrdinal": 0,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": "271999",
        "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": "2.5",
      "sourceConditionOrdinal": 1,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": null,
        "maximumInclusive": false,
        "minimum": "272000",
        "minimumInclusive": true,
        "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
      }
    }
  ],
  "calculationSupported": false,
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "declarationComplete": true,
  "declaredCurrency": null,
  "groupRatio": "1",
  "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": "4e8468047ae5bede58e0e0a6d6426cbb2b7f1720b42c1b079429bb8372abf315",
  "schema": "grandet.public-conditional-declaration/v1",
  "selection": {
    "selectedPattern": "gpt-5.4",
    "selection": "EXACT"
  },
  "sourceConfig": {
    "Conditions": [
      {
        "CompletionRatio": "6",
        "FixedPrice": "0",
        "InputRatio": "1.25",
        "MaxTokens": "271999",
        "MinTokens": "0"
      },
      {
        "CompletionRatio": "4.5",
        "FixedPrice": "0",
        "InputRatio": "2.5",
        "MaxTokens": "-1",
        "MinTokens": "272000"
      }
    ]
  },
  "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
  "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
1.25 · SOURCE_BASE_MODEL_RATIO
completion_ratio
8 · SOURCE_COMPLETION_RATIO
cache_ratio
0.25 · 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": "312500.0000",
      "cacheWrite": null,
      "input": "1250000.00",
      "output": "10000000.00"
    }
  },
  "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": "1.25"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "completion_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_COMPLETION_RATIO",
      "usageKind": "TEXT_OUTPUT",
      "value": "8"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "cache_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_CACHE_READ_RATIO",
      "usageKind": "CACHE_READ",
      "value": "0.25"
    }
  ],
  "contentSha256": "5de83f3ac16d0fab246791a55cb2e866d1ce1090752fe86fcb1428b36a186453",
  "currencyInferred": false,
  "declaredGroupRatio": "1",
  "effectiveQuote": false,
  "eligibleForPriceRanking": false,
  "quoteId": "679abca39c760280da494ae2f998939b718ea419a18e7465045cded2ba924226",
  "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
  "schema": "grandet.partial-price-components/v1",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "0.625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "2.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "≤ 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "22.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "1.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "> 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "condition": {
      "left": {
        "name": "len",
        "type": "variable"
      },
      "operator": "<=",
      "right": {
        "type": "number",
        "value": "271999"
      },
      "type": "binary"
    },
    "type": "conditional",
    "whenFalse": {
      "arguments": [
        {
          "type": "string",
          "value": "> 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "22.5"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "1.25"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    },
    "whenTrue": {
      "arguments": [
        {
          "type": "string",
          "value": "≤ 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "2.5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "15"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "0.625"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    }
  },
  "dependencies": {
    "requestContext": [],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "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": "1",
  "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": "e7b18326fb4ff27a2e19f2426719b4f309ae2d80a8a86c49508f4aa93021c2c3",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "1比1分组",
  "declaredGroupRatio": 1,
  "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: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": "1比1分组",
    "declaredGroupRatio": 1,
    "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": [
    "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.4",
  "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": "1.25",
          "sourceConditionOrdinal": 0,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": "271999",
            "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": "2.5",
          "sourceConditionOrdinal": 1,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": null,
            "maximumInclusive": false,
            "minimum": "272000",
            "minimumInclusive": true,
            "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
          }
        }
      ],
      "calculationSupported": false,
      "cashQualification": "NOT_EVALUATED",
      "cashQualified": false,
      "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
      "declarationComplete": true,
      "declaredCurrency": null,
      "groupRatio": "1",
      "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": "4e8468047ae5bede58e0e0a6d6426cbb2b7f1720b42c1b079429bb8372abf315",
      "schema": "grandet.public-conditional-declaration/v1",
      "selection": {
        "selectedPattern": "gpt-5.4",
        "selection": "EXACT"
      },
      "sourceConfig": {
        "Conditions": [
          {
            "CompletionRatio": "6",
            "FixedPrice": "0",
            "InputRatio": "1.25",
            "MaxTokens": "271999",
            "MinTokens": "0"
          },
          {
            "CompletionRatio": "4.5",
            "FixedPrice": "0",
            "InputRatio": "2.5",
            "MaxTokens": "-1",
            "MinTokens": "272000"
          }
        ]
      },
      "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
      "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": "312500.0000",
        "cacheWrite": null,
        "input": "1250000.00",
        "output": "10000000.00"
      }
    },
    "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": "1.25"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "completion_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_COMPLETION_RATIO",
        "usageKind": "TEXT_OUTPUT",
        "value": "8"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "cache_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_CACHE_READ_RATIO",
        "usageKind": "CACHE_READ",
        "value": "0.25"
      }
    ],
    "contentSha256": "5de83f3ac16d0fab246791a55cb2e866d1ce1090752fe86fcb1428b36a186453",
    "currencyInferred": false,
    "declaredGroupRatio": "1",
    "effectiveQuote": false,
    "eligibleForPriceRanking": false,
    "quoteId": "679abca39c760280da494ae2f998939b718ea419a18e7465045cded2ba924226",
    "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
    "schema": "grandet.partial-price-components/v1",
    "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
    "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:国产模型",
  "pricePairSourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "0.625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "2.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "≤ 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "22.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "1.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "> 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "condition": {
        "left": {
          "name": "len",
          "type": "variable"
        },
        "operator": "<=",
        "right": {
          "type": "number",
          "value": "271999"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "arguments": [
          {
            "type": "string",
            "value": "> 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "22.5"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "1.25"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      },
      "whenTrue": {
        "arguments": [
          {
            "type": "string",
            "value": "≤ 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "2.5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "15"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "0.625"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      }
    },
    "dependencies": {
      "requestContext": [],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "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": "1",
    "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": "e7b18326fb4ff27a2e19f2426719b4f309ae2d80a8a86c49508f4aa93021c2c3",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "679abca39c760280da494ae2f998939b718ea419a18e7465045cded2ba924226",
  "quoteOrdinal": 1521,
  "snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
  "sourceDomain": "api.xi-ai.cn",
  "sourceId": "api.xi-ai.cn",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

特惠模型· Public API

gpt-5.4

Individual units in the complete rule · Observed:

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.4

api.xi-ai.cn · Public API declaration

Plan / group: declared-group:特惠模型 · 特惠模型

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": "1.25",
      "sourceConditionOrdinal": 0,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": "271999",
        "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": "2.5",
      "sourceConditionOrdinal": 1,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": null,
        "maximumInclusive": false,
        "minimum": "272000",
        "minimumInclusive": true,
        "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
      }
    }
  ],
  "calculationSupported": false,
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "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": "2c3e96ac5a91cde85c3455c1e5bc3269e38f0047c11e3f1674c3faf5b9a46c3b",
  "schema": "grandet.public-conditional-declaration/v1",
  "selection": {
    "selectedPattern": "gpt-5.4",
    "selection": "EXACT"
  },
  "sourceConfig": {
    "Conditions": [
      {
        "CompletionRatio": "6",
        "FixedPrice": "0",
        "InputRatio": "1.25",
        "MaxTokens": "271999",
        "MinTokens": "0"
      },
      {
        "CompletionRatio": "4.5",
        "FixedPrice": "0",
        "InputRatio": "2.5",
        "MaxTokens": "-1",
        "MinTokens": "272000"
      }
    ]
  },
  "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
  "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
1.25 · SOURCE_BASE_MODEL_RATIO
completion_ratio
8 · SOURCE_COMPLETION_RATIO
cache_ratio
0.25 · 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": "187500.00000",
      "cacheWrite": null,
      "input": "750000.000",
      "output": "6000000.000"
    }
  },
  "cashQualification": "NOT_EVALUATED",
  "components": [
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "model_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_BASE_MODEL_RATIO",
      "usageKind": "TEXT_INPUT",
      "value": "1.25"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "completion_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_COMPLETION_RATIO",
      "usageKind": "TEXT_OUTPUT",
      "value": "8"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "cache_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_CACHE_READ_RATIO",
      "usageKind": "CACHE_READ",
      "value": "0.25"
    }
  ],
  "contentSha256": "356fe64cf77b600363485fb6ddedefe693e7472b7aa444a863ce5b8f6ce13fff",
  "currencyInferred": false,
  "declaredGroupRatio": "0.6",
  "effectiveQuote": false,
  "eligibleForPriceRanking": false,
  "quoteId": "da86fdffd62bd316eb3cd049e4c4ade85fad86c16170d3bf26f69205ca23cdd2",
  "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
  "schema": "grandet.partial-price-components/v1",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "0.625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "2.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "≤ 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "22.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "1.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "> 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "condition": {
      "left": {
        "name": "len",
        "type": "variable"
      },
      "operator": "<=",
      "right": {
        "type": "number",
        "value": "271999"
      },
      "type": "binary"
    },
    "type": "conditional",
    "whenFalse": {
      "arguments": [
        {
          "type": "string",
          "value": "> 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "22.5"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "1.25"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    },
    "whenTrue": {
      "arguments": [
        {
          "type": "string",
          "value": "≤ 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "2.5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "15"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "0.625"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    }
  },
  "dependencies": {
    "requestContext": [],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "0.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": "6583bba6539effa2a53eacd61cedb7f91dfa33b6c78f9fbbd57c2fca5ad98de9",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "1比0.6分组",
  "declaredGroupRatio": "0.6",
  "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: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": "1比0.6分组",
    "declaredGroupRatio": "0.6",
    "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": [
    "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.4",
  "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": "1.25",
          "sourceConditionOrdinal": 0,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": "271999",
            "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": "2.5",
          "sourceConditionOrdinal": 1,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": null,
            "maximumInclusive": false,
            "minimum": "272000",
            "minimumInclusive": true,
            "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
          }
        }
      ],
      "calculationSupported": false,
      "cashQualification": "NOT_EVALUATED",
      "cashQualified": false,
      "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
      "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": "2c3e96ac5a91cde85c3455c1e5bc3269e38f0047c11e3f1674c3faf5b9a46c3b",
      "schema": "grandet.public-conditional-declaration/v1",
      "selection": {
        "selectedPattern": "gpt-5.4",
        "selection": "EXACT"
      },
      "sourceConfig": {
        "Conditions": [
          {
            "CompletionRatio": "6",
            "FixedPrice": "0",
            "InputRatio": "1.25",
            "MaxTokens": "271999",
            "MinTokens": "0"
          },
          {
            "CompletionRatio": "4.5",
            "FixedPrice": "0",
            "InputRatio": "2.5",
            "MaxTokens": "-1",
            "MinTokens": "272000"
          }
        ]
      },
      "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
      "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": "187500.00000",
        "cacheWrite": null,
        "input": "750000.000",
        "output": "6000000.000"
      }
    },
    "cashQualification": "NOT_EVALUATED",
    "components": [
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "model_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_BASE_MODEL_RATIO",
        "usageKind": "TEXT_INPUT",
        "value": "1.25"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "completion_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_COMPLETION_RATIO",
        "usageKind": "TEXT_OUTPUT",
        "value": "8"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "cache_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_CACHE_READ_RATIO",
        "usageKind": "CACHE_READ",
        "value": "0.25"
      }
    ],
    "contentSha256": "356fe64cf77b600363485fb6ddedefe693e7472b7aa444a863ce5b8f6ce13fff",
    "currencyInferred": false,
    "declaredGroupRatio": "0.6",
    "effectiveQuote": false,
    "eligibleForPriceRanking": false,
    "quoteId": "da86fdffd62bd316eb3cd049e4c4ade85fad86c16170d3bf26f69205ca23cdd2",
    "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
    "schema": "grandet.partial-price-components/v1",
    "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
    "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:特惠模型",
  "pricePairSourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "0.625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "2.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "≤ 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "22.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "1.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "> 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "condition": {
        "left": {
          "name": "len",
          "type": "variable"
        },
        "operator": "<=",
        "right": {
          "type": "number",
          "value": "271999"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "arguments": [
          {
            "type": "string",
            "value": "> 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "22.5"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "1.25"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      },
      "whenTrue": {
        "arguments": [
          {
            "type": "string",
            "value": "≤ 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "2.5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "15"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "0.625"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      }
    },
    "dependencies": {
      "requestContext": [],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "0.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": "6583bba6539effa2a53eacd61cedb7f91dfa33b6c78f9fbbd57c2fca5ad98de9",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "da86fdffd62bd316eb3cd049e4c4ade85fad86c16170d3bf26f69205ca23cdd2",
  "quoteOrdinal": 1522,
  "snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
  "sourceDomain": "api.xi-ai.cn",
  "sourceId": "api.xi-ai.cn",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

稳定模型· Public API

gpt-5.4

Individual units in the complete rule · Observed:

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.4

api.xi-ai.cn · Public API declaration

Plan / group: declared-group:稳定模型 · 稳定模型

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": "1.25",
      "sourceConditionOrdinal": 0,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": "271999",
        "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": "2.5",
      "sourceConditionOrdinal": 1,
      "tokenBounds": {
        "integerRequired": true,
        "maximum": null,
        "maximumInclusive": false,
        "minimum": "272000",
        "minimumInclusive": true,
        "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
      }
    }
  ],
  "calculationSupported": false,
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "declarationComplete": true,
  "declaredCurrency": null,
  "groupRatio": "5.5",
  "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": "6f1fe93cff5dac58bc0101ed86b1ba280f80acf0fa3d9fc33478ca3c48f7924e",
  "schema": "grandet.public-conditional-declaration/v1",
  "selection": {
    "selectedPattern": "gpt-5.4",
    "selection": "EXACT"
  },
  "sourceConfig": {
    "Conditions": [
      {
        "CompletionRatio": "6",
        "FixedPrice": "0",
        "InputRatio": "1.25",
        "MaxTokens": "271999",
        "MinTokens": "0"
      },
      {
        "CompletionRatio": "4.5",
        "FixedPrice": "0",
        "InputRatio": "2.5",
        "MaxTokens": "-1",
        "MinTokens": "272000"
      }
    ]
  },
  "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
  "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
1.25 · SOURCE_BASE_MODEL_RATIO
completion_ratio
8 · SOURCE_COMPLETION_RATIO
cache_ratio
0.25 · 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": "1718750.00000",
      "cacheWrite": null,
      "input": "6875000.000",
      "output": "55000000.000"
    }
  },
  "cashQualification": "NOT_EVALUATED",
  "components": [
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "model_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_BASE_MODEL_RATIO",
      "usageKind": "TEXT_INPUT",
      "value": "1.25"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "completion_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_COMPLETION_RATIO",
      "usageKind": "TEXT_OUTPUT",
      "value": "8"
    },
    {
      "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
      "sourceField": "cache_ratio",
      "status": "EXACT_NUMERIC_DECLARATION",
      "unit": "SOURCE_CACHE_READ_RATIO",
      "usageKind": "CACHE_READ",
      "value": "0.25"
    }
  ],
  "contentSha256": "67d8ead4033400c1dbfd1a74443e6470c482224ae2861e759733a1db8b6f656b",
  "currencyInferred": false,
  "declaredGroupRatio": "5.5",
  "effectiveQuote": false,
  "eligibleForPriceRanking": false,
  "quoteId": "055a051c85509f29e8462c78641ea97c708d7de70fe037a5bdf0528aac42cbf6",
  "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
  "schema": "grandet.partial-price-components/v1",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "0.625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "2.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "≤ 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "22.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "1.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "271999"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "> 271999",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "condition": {
      "left": {
        "name": "len",
        "type": "variable"
      },
      "operator": "<=",
      "right": {
        "type": "number",
        "value": "271999"
      },
      "type": "binary"
    },
    "type": "conditional",
    "whenFalse": {
      "arguments": [
        {
          "type": "string",
          "value": "> 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "22.5"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "1.25"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    },
    "whenTrue": {
      "arguments": [
        {
          "type": "string",
          "value": "≤ 271999"
        },
        {
          "left": {
            "left": {
              "left": {
                "name": "p",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "2.5"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "c",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "15"
              },
              "type": "binary"
            },
            "type": "binary"
          },
          "operator": "+",
          "right": {
            "left": {
              "name": "cr",
              "type": "variable"
            },
            "operator": "*",
            "right": {
              "type": "number",
              "value": "0.625"
            },
            "type": "binary"
          },
          "type": "binary"
        }
      ],
      "function": "tier",
      "type": "call"
    }
  },
  "dependencies": {
    "requestContext": [],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "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": "5.5",
  "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": "173f66c4586762b94accc3b06480260c558878df0028afee7fc5550f4bbfa5e0",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "稳定模型",
  "declaredGroupRatio": "5.5",
  "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: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": "5.5",
    "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": [
    "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.4",
  "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": "1.25",
          "sourceConditionOrdinal": 0,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": "271999",
            "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": "2.5",
          "sourceConditionOrdinal": 1,
          "tokenBounds": {
            "integerRequired": true,
            "maximum": null,
            "maximumInclusive": false,
            "minimum": "272000",
            "minimumInclusive": true,
            "quantity": "UNESTABLISHED_SOURCE_TOKEN_QUANTITY"
          }
        }
      ],
      "calculationSupported": false,
      "cashQualification": "NOT_EVALUATED",
      "cashQualified": false,
      "competingExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
      "declarationComplete": true,
      "declaredCurrency": null,
      "groupRatio": "5.5",
      "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": "6f1fe93cff5dac58bc0101ed86b1ba280f80acf0fa3d9fc33478ca3c48f7924e",
      "schema": "grandet.public-conditional-declaration/v1",
      "selection": {
        "selectedPattern": "gpt-5.4",
        "selection": "EXACT"
      },
      "sourceConfig": {
        "Conditions": [
          {
            "CompletionRatio": "6",
            "FixedPrice": "0",
            "InputRatio": "1.25",
            "MaxTokens": "271999",
            "MinTokens": "0"
          },
          {
            "CompletionRatio": "4.5",
            "FixedPrice": "0",
            "InputRatio": "2.5",
            "MaxTokens": "-1",
            "MinTokens": "272000"
          }
        ]
      },
      "sourceConfigSha256": "0f119fa3a3be9dd115003b5402a1c05b09dd67eedaf6938e8c9f7f79ba0e593f",
      "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": "1718750.00000",
        "cacheWrite": null,
        "input": "6875000.000",
        "output": "55000000.000"
      }
    },
    "cashQualification": "NOT_EVALUATED",
    "components": [
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "model_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_BASE_MODEL_RATIO",
        "usageKind": "TEXT_INPUT",
        "value": "1.25"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "completion_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_COMPLETION_RATIO",
        "usageKind": "TEXT_OUTPUT",
        "value": "8"
      },
      {
        "role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
        "sourceField": "cache_ratio",
        "status": "EXACT_NUMERIC_DECLARATION",
        "unit": "SOURCE_CACHE_READ_RATIO",
        "usageKind": "CACHE_READ",
        "value": "0.25"
      }
    ],
    "contentSha256": "67d8ead4033400c1dbfd1a74443e6470c482224ae2861e759733a1db8b6f656b",
    "currencyInferred": false,
    "declaredGroupRatio": "5.5",
    "effectiveQuote": false,
    "eligibleForPriceRanking": false,
    "quoteId": "055a051c85509f29e8462c78641ea97c708d7de70fe037a5bdf0528aac42cbf6",
    "rawDeclaredFieldsSha256": "1fd43192d02af71e072479e055068718935979265b361097e666358b958eb7aa",
    "schema": "grandet.partial-price-components/v1",
    "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
    "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:稳定模型",
  "pricePairSourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "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": "15",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "0.625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "2.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "≤ 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "22.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "1.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "271999"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "> 271999",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "condition": {
        "left": {
          "name": "len",
          "type": "variable"
        },
        "operator": "<=",
        "right": {
          "type": "number",
          "value": "271999"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "arguments": [
          {
            "type": "string",
            "value": "> 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "22.5"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "1.25"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      },
      "whenTrue": {
        "arguments": [
          {
            "type": "string",
            "value": "≤ 271999"
          },
          {
            "left": {
              "left": {
                "left": {
                  "name": "p",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "2.5"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "c",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "15"
                },
                "type": "binary"
              },
              "type": "binary"
            },
            "operator": "+",
            "right": {
              "left": {
                "name": "cr",
                "type": "variable"
              },
              "operator": "*",
              "right": {
                "type": "number",
                "value": "0.625"
              },
              "type": "binary"
            },
            "type": "binary"
          }
        ],
        "function": "tier",
        "type": "call"
      }
    },
    "dependencies": {
      "requestContext": [],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "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": "5.5",
    "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": "173f66c4586762b94accc3b06480260c558878df0028afee7fc5550f4bbfa5e0",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "37e47d557da1d6ed9d6f4e07ec684efd4e3a3dc99879206b563233632aed1651",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "055a051c85509f29e8462c78641ea97c708d7de70fe037a5bdf0528aac42cbf6",
  "quoteOrdinal": 1523,
  "snapshotId": "67e2a9d8a84b5fbbcdb098090654239cd1ed110eca3c8ddc520b11d0b95648ae",
  "sourceDomain": "api.xi-ai.cn",
  "sourceId": "api.xi-ai.cn",
  "sourceRowId": "bc6dcf5417d5f0e72ee5bd0ba9059aca8ff965f9f90026fd9f3d2effecdfd4a4",
  "transactionId": "81703bad1cfff87ec863d8fd3a226f0ab030e30940e5219c0059c8082d8e0d5a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}
Complete public data downloads

gpt-5.4

Name attribution evidence
{
  "id": "2a7b79b0151aa44a0abe",
  "matches": [
    {
      "declaredName": "gpt-5.4",
      "evidence": {
        "canonicalId": "openai/gpt-5.4",
        "claimId": "2a7b79b0151aa44a0abe",
        "confidence": "DOCUMENTED_IDENTIFIER",
        "declaredName": "gpt-5.4",
        "evidenceIds": [
          "openai-gpt-5.4"
        ],
        "evidenceUrl": "https://developers.openai.com/api/docs/models/gpt-5.4",
        "qualifiers": [],
        "qualityVerification": "NOT_MEASURED",
        "relationship": "EXACT_OFFICIAL_IDENTIFIER",
        "status": "OFFICIAL_ID",
        "upstreamVerification": "NOT_TESTED",
        "validity": {
          "appliesTo": "NAME_DECLARATION_ONLY",
          "checkedAt": "2026-10-02",
          "configurationSupport": "NOT_VERIFIED",
          "historicalBackendConfirmed": false
        }
      }
    }
  ],
  "name": "gpt-5.4",
  "officialId": null
}