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

903 sources · 3,308 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.

3,308 declarations in scope: 3,282 within observation window, 26 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 10 declarations match · 10 rows on this page

api.ccode.vip

10 declarations · 10 on this page

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

OpenAi Azure 满血· Public API

gpt-5.6-sol

Individual units in the complete rule · Observed:

Complete conditional rule · expand for every branch and condition

All prices, conditions and source evidence

gpt-5.6-sol

api.ccode.vip · Public API declaration

Plan / group: declared-group:OpenAi Azure 满血 · OpenAi Azure 满血

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

Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE

Input
Not provided / unresolved
Output
Not provided / unresolved
Per request
Not provided / unresolved
Cache read
Not provided / unresolved
Cache write
Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
  "branches": [
    {
      "components": [
        {
          "coefficient": "174",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "261",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "72.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "5.6",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "56",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "43.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "9.0625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "0.7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "65.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "left": {
      "left": {
        "condition": {
          "left": {
            "name": "len",
            "type": "variable"
          },
          "operator": "<=",
          "right": {
            "type": "number",
            "value": "272000"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "arguments": [
            {
              "type": "string",
              "value": "long_context"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "14"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "65.25"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "1.4"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "18.125"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        },
        "whenTrue": {
          "arguments": [
            {
              "type": "string",
              "value": "standard"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "7"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "43.5"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "0.7"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "9.0625"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        }
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "priority"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "operator": "*",
    "right": {
      "condition": {
        "left": {
          "arguments": [
            {
              "type": "string",
              "value": "service_tier"
            }
          ],
          "function": "param",
          "type": "call"
        },
        "operator": "==",
        "right": {
          "type": "string",
          "value": "fast"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "type": "number",
        "value": "1"
      },
      "whenTrue": {
        "type": "number",
        "value": "2"
      }
    },
    "type": "binary"
  },
  "dependencies": {
    "requestContext": [
      {
        "argument": "service_tier",
        "function": "param"
      }
    ],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cc",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "1.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",
    "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
  ],
  "normalization": {
    "contextLength": "len is full input context, before subclass exclusion",
    "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
    "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
    "profile": "NEW_API_BILLINGEXPR_V1",
    "referencedVariablesAreExpressionWide": true,
    "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
  },
  "parserVersion": "grandet.new-api-expression-projection/1.1.0",
  "ruleContentSha256": "7176be97d064b8098b4821b68d5d2a5de0a1fda6fd41439ef85a906402ced783",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "OpenAi Azure Full Blood - OpenAi Azure 满血",
  "declaredGroupRatio": "1.6",
  "eligibility": {
    "declaredGroup": "OpenAi Azure 满血",
    "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:41:42Z",
  "firstObservedAt": "2026-10-03T23:41:44.845Z",
  "maximumQuoteAgeDays": 7,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceId": "api.ccode.vip",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a"
}
Complete public declaration and source identity
{
  "accountEligibility": "UNVERIFIED",
  "analysisDoesNotRenewObservation": true,
  "attemptId": "7a47cdb5951b6c3fe4012fe3a92acba996f978e41aa167492cc9c57b720883f4",
  "cacheReadPrice": null,
  "cacheWritePrice": null,
  "captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "classification": "STRUCTURED_PRICING_RULE",
  "conditions": {
    "balanceExpiry": {
      "status": "UNKNOWN"
    },
    "bonusWallet": {
      "status": "UNKNOWN"
    },
    "declaredEndpointTypes": [
      "openai"
    ],
    "declaredGroupDescription": "OpenAi Azure Full Blood - OpenAi Azure 满血",
    "declaredGroupRatio": "1.6",
    "eligibility": {
      "declaredGroup": "OpenAi Azure 满血",
      "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": "OpenAi Azure 满血",
  "formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
  "formulaProjectionBlockers": [],
  "freshUntil": "2026-10-10T23:41:42Z",
  "humanExtractionReview": "NOT_PERFORMED",
  "inputPrice": null,
  "modelName": "gpt-5.6-sol",
  "multimodalPricing": null,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "outputPrice": null,
  "parseRevisionId": "d6062d88108924ce79523e62ab4f7cda3e5bbd6628251e5eb94e7635df028d31",
  "parsedPricingDeclarations": null,
  "parserFamily": "NEW_API_PUBLIC_PRICING",
  "parserVersion": "grandet.new-api-public-pricing/1.5.1",
  "partialPriceComponents": null,
  "perRequestPrice": null,
  "planId": "declared-group:OpenAi Azure 满血",
  "pricePairSourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "pricingAdapterEvidence": [
    {
      "kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
    },
    {
      "kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
    }
  ],
  "pricingResolution": "STRUCTURED_RULE",
  "pricingRule": {
    "branches": [
      {
        "components": [
          {
            "coefficient": "174",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "261",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "72.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "5.6",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "56",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "43.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "9.0625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "0.7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "65.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "left": {
        "left": {
          "condition": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "arguments": [
              {
                "type": "string",
                "value": "long_context"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "14"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "65.25"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "1.4"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "18.125"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          },
          "whenTrue": {
            "arguments": [
              {
                "type": "string",
                "value": "standard"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "7"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "43.5"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "0.7"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "9.0625"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          }
        },
        "operator": "*",
        "right": {
          "condition": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "type": "number",
            "value": "1"
          },
          "whenTrue": {
            "type": "number",
            "value": "2"
          }
        },
        "type": "binary"
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "fast"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "dependencies": {
      "requestContext": [
        {
          "argument": "service_tier",
          "function": "param"
        }
      ],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cc",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "1.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",
      "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
    ],
    "normalization": {
      "contextLength": "len is full input context, before subclass exclusion",
      "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
      "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
      "profile": "NEW_API_BILLINGEXPR_V1",
      "referencedVariablesAreExpressionWide": true,
      "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
    },
    "parserVersion": "grandet.new-api-expression-projection/1.1.0",
    "ruleContentSha256": "7176be97d064b8098b4821b68d5d2a5de0a1fda6fd41439ef85a906402ced783",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "9eb3167a7afcd010f02fc1e2f944ee6e4319db3079ab4b7ea40e78dde6747c1c",
  "quoteOrdinal": 109,
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceDomain": "api.ccode.vip",
  "sourceId": "api.ccode.vip",
  "sourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

OpenAi 官KEY· Public API

gpt-5.6-sol

Individual units in the complete rule · Observed:

Complete conditional rule · expand for every branch and condition

All prices, conditions and source evidence

gpt-5.6-sol

api.ccode.vip · Public API declaration

Plan / group: declared-group:OpenAi 官KEY · OpenAi 官KEY

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

Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE

Input
Not provided / unresolved
Output
Not provided / unresolved
Per request
Not provided / unresolved
Cache read
Not provided / unresolved
Cache write
Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
  "branches": [
    {
      "components": [
        {
          "coefficient": "174",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "261",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "72.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "5.6",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "56",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "43.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "9.0625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "0.7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "65.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "left": {
      "left": {
        "condition": {
          "left": {
            "name": "len",
            "type": "variable"
          },
          "operator": "<=",
          "right": {
            "type": "number",
            "value": "272000"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "arguments": [
            {
              "type": "string",
              "value": "long_context"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "14"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "65.25"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "1.4"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "18.125"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        },
        "whenTrue": {
          "arguments": [
            {
              "type": "string",
              "value": "standard"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "7"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "43.5"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "0.7"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "9.0625"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        }
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "priority"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "operator": "*",
    "right": {
      "condition": {
        "left": {
          "arguments": [
            {
              "type": "string",
              "value": "service_tier"
            }
          ],
          "function": "param",
          "type": "call"
        },
        "operator": "==",
        "right": {
          "type": "string",
          "value": "fast"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "type": "number",
        "value": "1"
      },
      "whenTrue": {
        "type": "number",
        "value": "2"
      }
    },
    "type": "binary"
  },
  "dependencies": {
    "requestContext": [
      {
        "argument": "service_tier",
        "function": "param"
      }
    ],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cc",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "3.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",
    "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
  ],
  "normalization": {
    "contextLength": "len is full input context, before subclass exclusion",
    "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
    "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
    "profile": "NEW_API_BILLINGEXPR_V1",
    "referencedVariablesAreExpressionWide": true,
    "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
  },
  "parserVersion": "grandet.new-api-expression-projection/1.1.0",
  "ruleContentSha256": "0b02d8f8651d292530928df2b5108274c8799fd6f8927c1c83b05f1ee12001a4",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "OpenAi 官KEY",
  "declaredGroupRatio": "3.5",
  "eligibility": {
    "declaredGroup": "OpenAi 官KEY",
    "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:41:42Z",
  "firstObservedAt": "2026-10-03T23:41:44.845Z",
  "maximumQuoteAgeDays": 7,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceId": "api.ccode.vip",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a"
}
Complete public declaration and source identity
{
  "accountEligibility": "UNVERIFIED",
  "analysisDoesNotRenewObservation": true,
  "attemptId": "7a47cdb5951b6c3fe4012fe3a92acba996f978e41aa167492cc9c57b720883f4",
  "cacheReadPrice": null,
  "cacheWritePrice": null,
  "captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "classification": "STRUCTURED_PRICING_RULE",
  "conditions": {
    "balanceExpiry": {
      "status": "UNKNOWN"
    },
    "bonusWallet": {
      "status": "UNKNOWN"
    },
    "declaredEndpointTypes": [
      "openai"
    ],
    "declaredGroupDescription": "OpenAi 官KEY",
    "declaredGroupRatio": "3.5",
    "eligibility": {
      "declaredGroup": "OpenAi 官KEY",
      "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": "OpenAi 官KEY",
  "formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
  "formulaProjectionBlockers": [],
  "freshUntil": "2026-10-10T23:41:42Z",
  "humanExtractionReview": "NOT_PERFORMED",
  "inputPrice": null,
  "modelName": "gpt-5.6-sol",
  "multimodalPricing": null,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "outputPrice": null,
  "parseRevisionId": "d6062d88108924ce79523e62ab4f7cda3e5bbd6628251e5eb94e7635df028d31",
  "parsedPricingDeclarations": null,
  "parserFamily": "NEW_API_PUBLIC_PRICING",
  "parserVersion": "grandet.new-api-public-pricing/1.5.1",
  "partialPriceComponents": null,
  "perRequestPrice": null,
  "planId": "declared-group:OpenAi 官KEY",
  "pricePairSourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "pricingAdapterEvidence": [
    {
      "kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
    },
    {
      "kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
    }
  ],
  "pricingResolution": "STRUCTURED_RULE",
  "pricingRule": {
    "branches": [
      {
        "components": [
          {
            "coefficient": "174",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "261",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "72.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "5.6",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "56",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "43.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "9.0625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "0.7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "65.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "left": {
        "left": {
          "condition": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "arguments": [
              {
                "type": "string",
                "value": "long_context"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "14"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "65.25"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "1.4"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "18.125"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          },
          "whenTrue": {
            "arguments": [
              {
                "type": "string",
                "value": "standard"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "7"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "43.5"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "0.7"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "9.0625"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          }
        },
        "operator": "*",
        "right": {
          "condition": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "type": "number",
            "value": "1"
          },
          "whenTrue": {
            "type": "number",
            "value": "2"
          }
        },
        "type": "binary"
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "fast"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "dependencies": {
      "requestContext": [
        {
          "argument": "service_tier",
          "function": "param"
        }
      ],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cc",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "3.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",
      "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
    ],
    "normalization": {
      "contextLength": "len is full input context, before subclass exclusion",
      "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
      "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
      "profile": "NEW_API_BILLINGEXPR_V1",
      "referencedVariablesAreExpressionWide": true,
      "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
    },
    "parserVersion": "grandet.new-api-expression-projection/1.1.0",
    "ruleContentSha256": "0b02d8f8651d292530928df2b5108274c8799fd6f8927c1c83b05f1ee12001a4",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "6b8550a5da082a1f2ccba8c17e1966d258a09092181c220b074476dbfa17481d",
  "quoteOrdinal": 110,
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceDomain": "api.ccode.vip",
  "sourceId": "api.ccode.vip",
  "sourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

CodeX Pro· Public API

gpt-5.6-sol

Individual units in the complete rule · Observed:

Complete conditional rule · expand for every branch and condition

All prices, conditions and source evidence

gpt-5.6-sol

api.ccode.vip · Public API declaration

Plan / group: declared-group:CodeX Pro · CodeX Pro

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

Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE

Input
Not provided / unresolved
Output
Not provided / unresolved
Per request
Not provided / unresolved
Cache read
Not provided / unresolved
Cache write
Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
  "branches": [
    {
      "components": [
        {
          "coefficient": "174",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "261",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "72.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "5.6",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "56",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "43.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "9.0625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "0.7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "65.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "left": {
      "left": {
        "condition": {
          "left": {
            "name": "len",
            "type": "variable"
          },
          "operator": "<=",
          "right": {
            "type": "number",
            "value": "272000"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "arguments": [
            {
              "type": "string",
              "value": "long_context"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "14"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "65.25"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "1.4"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "18.125"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        },
        "whenTrue": {
          "arguments": [
            {
              "type": "string",
              "value": "standard"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "7"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "43.5"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "0.7"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "9.0625"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        }
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "priority"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "operator": "*",
    "right": {
      "condition": {
        "left": {
          "arguments": [
            {
              "type": "string",
              "value": "service_tier"
            }
          ],
          "function": "param",
          "type": "call"
        },
        "operator": "==",
        "right": {
          "type": "string",
          "value": "fast"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "type": "number",
        "value": "1"
      },
      "whenTrue": {
        "type": "number",
        "value": "2"
      }
    },
    "type": "binary"
  },
  "dependencies": {
    "requestContext": [
      {
        "argument": "service_tier",
        "function": "param"
      }
    ],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cc",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "0.22",
  "groupRatioApplied": false,
  "humanExtractionReview": "NOT_PERFORMED",
  "kind": "CONDITIONAL_EXPRESSION",
  "limitations": [
    "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
    "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
    "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
    "GROUP_RATIO_NOT_APPLIED",
    "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
    "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
    "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
  ],
  "normalization": {
    "contextLength": "len is full input context, before subclass exclusion",
    "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
    "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
    "profile": "NEW_API_BILLINGEXPR_V1",
    "referencedVariablesAreExpressionWide": true,
    "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
  },
  "parserVersion": "grandet.new-api-expression-projection/1.1.0",
  "ruleContentSha256": "bf99b096b505b1cd334c1422776688379044f29725ade682de91a658c1f5036e",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "尽量扛降智,X20号池禁止破限禁止破限,有安全审查机制",
  "declaredGroupRatio": "0.22",
  "eligibility": {
    "declaredGroup": "CodeX Pro",
    "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:41:42Z",
  "firstObservedAt": "2026-10-03T23:41:44.845Z",
  "maximumQuoteAgeDays": 7,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceId": "api.ccode.vip",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a"
}
Complete public declaration and source identity
{
  "accountEligibility": "UNVERIFIED",
  "analysisDoesNotRenewObservation": true,
  "attemptId": "7a47cdb5951b6c3fe4012fe3a92acba996f978e41aa167492cc9c57b720883f4",
  "cacheReadPrice": null,
  "cacheWritePrice": null,
  "captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "classification": "STRUCTURED_PRICING_RULE",
  "conditions": {
    "balanceExpiry": {
      "status": "UNKNOWN"
    },
    "bonusWallet": {
      "status": "UNKNOWN"
    },
    "declaredEndpointTypes": [
      "openai"
    ],
    "declaredGroupDescription": "尽量扛降智,X20号池禁止破限禁止破限,有安全审查机制",
    "declaredGroupRatio": "0.22",
    "eligibility": {
      "declaredGroup": "CodeX Pro",
      "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": "CodeX Pro",
  "formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
  "formulaProjectionBlockers": [],
  "freshUntil": "2026-10-10T23:41:42Z",
  "humanExtractionReview": "NOT_PERFORMED",
  "inputPrice": null,
  "modelName": "gpt-5.6-sol",
  "multimodalPricing": null,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "outputPrice": null,
  "parseRevisionId": "d6062d88108924ce79523e62ab4f7cda3e5bbd6628251e5eb94e7635df028d31",
  "parsedPricingDeclarations": null,
  "parserFamily": "NEW_API_PUBLIC_PRICING",
  "parserVersion": "grandet.new-api-public-pricing/1.5.1",
  "partialPriceComponents": null,
  "perRequestPrice": null,
  "planId": "declared-group:CodeX Pro",
  "pricePairSourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "pricingAdapterEvidence": [
    {
      "kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
    },
    {
      "kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
    }
  ],
  "pricingResolution": "STRUCTURED_RULE",
  "pricingRule": {
    "branches": [
      {
        "components": [
          {
            "coefficient": "174",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "261",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "72.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "5.6",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "56",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "43.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "9.0625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "0.7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "65.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "left": {
        "left": {
          "condition": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "arguments": [
              {
                "type": "string",
                "value": "long_context"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "14"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "65.25"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "1.4"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "18.125"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          },
          "whenTrue": {
            "arguments": [
              {
                "type": "string",
                "value": "standard"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "7"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "43.5"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "0.7"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "9.0625"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          }
        },
        "operator": "*",
        "right": {
          "condition": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "type": "number",
            "value": "1"
          },
          "whenTrue": {
            "type": "number",
            "value": "2"
          }
        },
        "type": "binary"
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "fast"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "dependencies": {
      "requestContext": [
        {
          "argument": "service_tier",
          "function": "param"
        }
      ],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cc",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "0.22",
    "groupRatioApplied": false,
    "humanExtractionReview": "NOT_PERFORMED",
    "kind": "CONDITIONAL_EXPRESSION",
    "limitations": [
      "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
      "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
      "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
      "GROUP_RATIO_NOT_APPLIED",
      "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
      "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
      "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
    ],
    "normalization": {
      "contextLength": "len is full input context, before subclass exclusion",
      "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
      "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
      "profile": "NEW_API_BILLINGEXPR_V1",
      "referencedVariablesAreExpressionWide": true,
      "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
    },
    "parserVersion": "grandet.new-api-expression-projection/1.1.0",
    "ruleContentSha256": "bf99b096b505b1cd334c1422776688379044f29725ade682de91a658c1f5036e",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "32dcf29b1e6ff243536c63d0dd5874d3b4460649e9de1b0fb8f9ecd749332869",
  "quoteOrdinal": 111,
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceDomain": "api.ccode.vip",
  "sourceId": "api.ccode.vip",
  "sourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

CodeX Pro 对接· Public API

gpt-5.6-sol

Individual units in the complete rule · Observed:

Complete conditional rule · expand for every branch and condition

All prices, conditions and source evidence

gpt-5.6-sol

api.ccode.vip · Public API declaration

Plan / group: declared-group:CodeX Pro 对接 · CodeX Pro 对接

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

Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE

Input
Not provided / unresolved
Output
Not provided / unresolved
Per request
Not provided / unresolved
Cache read
Not provided / unresolved
Cache write
Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
  "branches": [
    {
      "components": [
        {
          "coefficient": "174",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "261",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "72.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "5.6",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "56",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "43.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "9.0625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "0.7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "65.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "left": {
      "left": {
        "condition": {
          "left": {
            "name": "len",
            "type": "variable"
          },
          "operator": "<=",
          "right": {
            "type": "number",
            "value": "272000"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "arguments": [
            {
              "type": "string",
              "value": "long_context"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "14"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "65.25"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "1.4"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "18.125"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        },
        "whenTrue": {
          "arguments": [
            {
              "type": "string",
              "value": "standard"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "7"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "43.5"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "0.7"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "9.0625"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        }
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "priority"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "operator": "*",
    "right": {
      "condition": {
        "left": {
          "arguments": [
            {
              "type": "string",
              "value": "service_tier"
            }
          ],
          "function": "param",
          "type": "call"
        },
        "operator": "==",
        "right": {
          "type": "string",
          "value": "fast"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "type": "number",
        "value": "1"
      },
      "whenTrue": {
        "type": "number",
        "value": "2"
      }
    },
    "type": "binary"
  },
  "dependencies": {
    "requestContext": [
      {
        "argument": "service_tier",
        "function": "param"
      }
    ],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cc",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "0.12",
  "groupRatioApplied": false,
  "humanExtractionReview": "NOT_PERFORMED",
  "kind": "CONDITIONAL_EXPRESSION",
  "limitations": [
    "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
    "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
    "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
    "GROUP_RATIO_NOT_APPLIED",
    "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
    "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
    "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
  ],
  "normalization": {
    "contextLength": "len is full input context, before subclass exclusion",
    "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
    "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
    "profile": "NEW_API_BILLINGEXPR_V1",
    "referencedVariablesAreExpressionWide": true,
    "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
  },
  "parserVersion": "grandet.new-api-expression-projection/1.1.0",
  "ruleContentSha256": "ccb23ee02301f45bd236c67ca158fcd3c4473a3b25a8a46768f85b0bdb52385e",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "CodeX Pro 对接分组",
  "declaredGroupRatio": "0.12",
  "eligibility": {
    "declaredGroup": "CodeX Pro 对接",
    "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:41:42Z",
  "firstObservedAt": "2026-10-03T23:41:44.845Z",
  "maximumQuoteAgeDays": 7,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceId": "api.ccode.vip",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a"
}
Complete public declaration and source identity
{
  "accountEligibility": "UNVERIFIED",
  "analysisDoesNotRenewObservation": true,
  "attemptId": "7a47cdb5951b6c3fe4012fe3a92acba996f978e41aa167492cc9c57b720883f4",
  "cacheReadPrice": null,
  "cacheWritePrice": null,
  "captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "classification": "STRUCTURED_PRICING_RULE",
  "conditions": {
    "balanceExpiry": {
      "status": "UNKNOWN"
    },
    "bonusWallet": {
      "status": "UNKNOWN"
    },
    "declaredEndpointTypes": [
      "openai"
    ],
    "declaredGroupDescription": "CodeX Pro 对接分组",
    "declaredGroupRatio": "0.12",
    "eligibility": {
      "declaredGroup": "CodeX Pro 对接",
      "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": "CodeX Pro 对接",
  "formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
  "formulaProjectionBlockers": [],
  "freshUntil": "2026-10-10T23:41:42Z",
  "humanExtractionReview": "NOT_PERFORMED",
  "inputPrice": null,
  "modelName": "gpt-5.6-sol",
  "multimodalPricing": null,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "outputPrice": null,
  "parseRevisionId": "d6062d88108924ce79523e62ab4f7cda3e5bbd6628251e5eb94e7635df028d31",
  "parsedPricingDeclarations": null,
  "parserFamily": "NEW_API_PUBLIC_PRICING",
  "parserVersion": "grandet.new-api-public-pricing/1.5.1",
  "partialPriceComponents": null,
  "perRequestPrice": null,
  "planId": "declared-group:CodeX Pro 对接",
  "pricePairSourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "pricingAdapterEvidence": [
    {
      "kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
    },
    {
      "kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
    }
  ],
  "pricingResolution": "STRUCTURED_RULE",
  "pricingRule": {
    "branches": [
      {
        "components": [
          {
            "coefficient": "174",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "261",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "72.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "5.6",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "56",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "43.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "9.0625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "0.7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "65.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "left": {
        "left": {
          "condition": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "arguments": [
              {
                "type": "string",
                "value": "long_context"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "14"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "65.25"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "1.4"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "18.125"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          },
          "whenTrue": {
            "arguments": [
              {
                "type": "string",
                "value": "standard"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "7"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "43.5"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "0.7"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "9.0625"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          }
        },
        "operator": "*",
        "right": {
          "condition": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "type": "number",
            "value": "1"
          },
          "whenTrue": {
            "type": "number",
            "value": "2"
          }
        },
        "type": "binary"
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "fast"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "dependencies": {
      "requestContext": [
        {
          "argument": "service_tier",
          "function": "param"
        }
      ],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cc",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "0.12",
    "groupRatioApplied": false,
    "humanExtractionReview": "NOT_PERFORMED",
    "kind": "CONDITIONAL_EXPRESSION",
    "limitations": [
      "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
      "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
      "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
      "GROUP_RATIO_NOT_APPLIED",
      "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
      "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
      "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
    ],
    "normalization": {
      "contextLength": "len is full input context, before subclass exclusion",
      "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
      "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
      "profile": "NEW_API_BILLINGEXPR_V1",
      "referencedVariablesAreExpressionWide": true,
      "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
    },
    "parserVersion": "grandet.new-api-expression-projection/1.1.0",
    "ruleContentSha256": "ccb23ee02301f45bd236c67ca158fcd3c4473a3b25a8a46768f85b0bdb52385e",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "09a7dc1f14d80782b278fb10058517d5725a4996d49843bbab4505e47c0fbea2",
  "quoteOrdinal": 112,
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceDomain": "api.ccode.vip",
  "sourceId": "api.ccode.vip",
  "sourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

CodeX 均衡· Public API

gpt-5.6-sol

Individual units in the complete rule · Observed:

Complete conditional rule · expand for every branch and condition

All prices, conditions and source evidence

gpt-5.6-sol

api.ccode.vip · Public API declaration

Plan / group: declared-group:CodeX 均衡 · CodeX 均衡

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

Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE

Input
Not provided / unresolved
Output
Not provided / unresolved
Per request
Not provided / unresolved
Cache read
Not provided / unresolved
Cache write
Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
  "branches": [
    {
      "components": [
        {
          "coefficient": "174",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "261",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "72.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "5.6",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "56",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "43.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "9.0625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "0.7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "65.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "left": {
      "left": {
        "condition": {
          "left": {
            "name": "len",
            "type": "variable"
          },
          "operator": "<=",
          "right": {
            "type": "number",
            "value": "272000"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "arguments": [
            {
              "type": "string",
              "value": "long_context"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "14"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "65.25"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "1.4"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "18.125"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        },
        "whenTrue": {
          "arguments": [
            {
              "type": "string",
              "value": "standard"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "7"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "43.5"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "0.7"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "9.0625"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        }
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "priority"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "operator": "*",
    "right": {
      "condition": {
        "left": {
          "arguments": [
            {
              "type": "string",
              "value": "service_tier"
            }
          ],
          "function": "param",
          "type": "call"
        },
        "operator": "==",
        "right": {
          "type": "string",
          "value": "fast"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "type": "number",
        "value": "1"
      },
      "whenTrue": {
        "type": "number",
        "value": "2"
      }
    },
    "type": "binary"
  },
  "dependencies": {
    "requestContext": [
      {
        "argument": "service_tier",
        "function": "param"
      }
    ],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cc",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "0.12",
  "groupRatioApplied": false,
  "humanExtractionReview": "NOT_PERFORMED",
  "kind": "CONDITIONAL_EXPRESSION",
  "limitations": [
    "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
    "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
    "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
    "GROUP_RATIO_NOT_APPLIED",
    "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
    "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
    "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
  ],
  "normalization": {
    "contextLength": "len is full input context, before subclass exclusion",
    "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
    "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
    "profile": "NEW_API_BILLINGEXPR_V1",
    "referencedVariablesAreExpressionWide": true,
    "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
  },
  "parserVersion": "grandet.new-api-expression-projection/1.1.0",
  "ruleContentSha256": "ccb23ee02301f45bd236c67ca158fcd3c4473a3b25a8a46768f85b0bdb52385e",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "速刷pro或bug pro号",
  "declaredGroupRatio": "0.12",
  "eligibility": {
    "declaredGroup": "CodeX 均衡",
    "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:41:42Z",
  "firstObservedAt": "2026-10-03T23:41:44.845Z",
  "maximumQuoteAgeDays": 7,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceId": "api.ccode.vip",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a"
}
Complete public declaration and source identity
{
  "accountEligibility": "UNVERIFIED",
  "analysisDoesNotRenewObservation": true,
  "attemptId": "7a47cdb5951b6c3fe4012fe3a92acba996f978e41aa167492cc9c57b720883f4",
  "cacheReadPrice": null,
  "cacheWritePrice": null,
  "captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "classification": "STRUCTURED_PRICING_RULE",
  "conditions": {
    "balanceExpiry": {
      "status": "UNKNOWN"
    },
    "bonusWallet": {
      "status": "UNKNOWN"
    },
    "declaredEndpointTypes": [
      "openai"
    ],
    "declaredGroupDescription": "速刷pro或bug pro号",
    "declaredGroupRatio": "0.12",
    "eligibility": {
      "declaredGroup": "CodeX 均衡",
      "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": "CodeX 均衡",
  "formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
  "formulaProjectionBlockers": [],
  "freshUntil": "2026-10-10T23:41:42Z",
  "humanExtractionReview": "NOT_PERFORMED",
  "inputPrice": null,
  "modelName": "gpt-5.6-sol",
  "multimodalPricing": null,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "outputPrice": null,
  "parseRevisionId": "d6062d88108924ce79523e62ab4f7cda3e5bbd6628251e5eb94e7635df028d31",
  "parsedPricingDeclarations": null,
  "parserFamily": "NEW_API_PUBLIC_PRICING",
  "parserVersion": "grandet.new-api-public-pricing/1.5.1",
  "partialPriceComponents": null,
  "perRequestPrice": null,
  "planId": "declared-group:CodeX 均衡",
  "pricePairSourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "pricingAdapterEvidence": [
    {
      "kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
    },
    {
      "kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
    }
  ],
  "pricingResolution": "STRUCTURED_RULE",
  "pricingRule": {
    "branches": [
      {
        "components": [
          {
            "coefficient": "174",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "261",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "72.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "5.6",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "56",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "43.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "9.0625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "0.7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "65.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "left": {
        "left": {
          "condition": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "arguments": [
              {
                "type": "string",
                "value": "long_context"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "14"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "65.25"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "1.4"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "18.125"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          },
          "whenTrue": {
            "arguments": [
              {
                "type": "string",
                "value": "standard"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "7"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "43.5"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "0.7"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "9.0625"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          }
        },
        "operator": "*",
        "right": {
          "condition": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "type": "number",
            "value": "1"
          },
          "whenTrue": {
            "type": "number",
            "value": "2"
          }
        },
        "type": "binary"
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "fast"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "dependencies": {
      "requestContext": [
        {
          "argument": "service_tier",
          "function": "param"
        }
      ],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cc",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "0.12",
    "groupRatioApplied": false,
    "humanExtractionReview": "NOT_PERFORMED",
    "kind": "CONDITIONAL_EXPRESSION",
    "limitations": [
      "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
      "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
      "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
      "GROUP_RATIO_NOT_APPLIED",
      "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
      "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
      "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
    ],
    "normalization": {
      "contextLength": "len is full input context, before subclass exclusion",
      "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
      "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
      "profile": "NEW_API_BILLINGEXPR_V1",
      "referencedVariablesAreExpressionWide": true,
      "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
    },
    "parserVersion": "grandet.new-api-expression-projection/1.1.0",
    "ruleContentSha256": "ccb23ee02301f45bd236c67ca158fcd3c4473a3b25a8a46768f85b0bdb52385e",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "0d271a3fe070fa5e14e2a5a6175bda51fde9140082cfd4f6e7b882a2907d7b46",
  "quoteOrdinal": 113,
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceDomain": "api.ccode.vip",
  "sourceId": "api.ccode.vip",
  "sourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

CodeX Auto· Public API

gpt-5.6-sol

Individual units in the complete rule · Observed:

Complete conditional rule · expand for every branch and condition

All prices, conditions and source evidence

gpt-5.6-sol

api.ccode.vip · Public API declaration

Plan / group: declared-group:CodeX Auto · CodeX Auto

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

Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE

Input
Not provided / unresolved
Output
Not provided / unresolved
Per request
Not provided / unresolved
Cache read
Not provided / unresolved
Cache write
Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
  "branches": [
    {
      "components": [
        {
          "coefficient": "174",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "261",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "72.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "5.6",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "56",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "43.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "9.0625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "0.7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "65.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "left": {
      "left": {
        "condition": {
          "left": {
            "name": "len",
            "type": "variable"
          },
          "operator": "<=",
          "right": {
            "type": "number",
            "value": "272000"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "arguments": [
            {
              "type": "string",
              "value": "long_context"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "14"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "65.25"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "1.4"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "18.125"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        },
        "whenTrue": {
          "arguments": [
            {
              "type": "string",
              "value": "standard"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "7"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "43.5"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "0.7"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "9.0625"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        }
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "priority"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "operator": "*",
    "right": {
      "condition": {
        "left": {
          "arguments": [
            {
              "type": "string",
              "value": "service_tier"
            }
          ],
          "function": "param",
          "type": "call"
        },
        "operator": "==",
        "right": {
          "type": "string",
          "value": "fast"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "type": "number",
        "value": "1"
      },
      "whenTrue": {
        "type": "number",
        "value": "2"
      }
    },
    "type": "binary"
  },
  "dependencies": {
    "requestContext": [
      {
        "argument": "service_tier",
        "function": "param"
      }
    ],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cc",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "0.21",
  "groupRatioApplied": false,
  "humanExtractionReview": "NOT_PERFORMED",
  "kind": "CONDITIONAL_EXPRESSION",
  "limitations": [
    "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
    "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
    "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
    "GROUP_RATIO_NOT_APPLIED",
    "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
    "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
    "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
  ],
  "normalization": {
    "contextLength": "len is full input context, before subclass exclusion",
    "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
    "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
    "profile": "NEW_API_BILLINGEXPR_V1",
    "referencedVariablesAreExpressionWide": true,
    "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
  },
  "parserVersion": "grandet.new-api-expression-projection/1.1.0",
  "ruleContentSha256": "8616f74c51538694b32367e1598df6aaf8015235ed7734de639eb9bffb34c8ee",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "0.12-0.25 站长自用快或智力高就路由可群里滴我不适合对接请个人使用",
  "declaredGroupRatio": "0.21",
  "eligibility": {
    "declaredGroup": "CodeX Auto",
    "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:41:42Z",
  "firstObservedAt": "2026-10-03T23:41:44.845Z",
  "maximumQuoteAgeDays": 7,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceId": "api.ccode.vip",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a"
}
Complete public declaration and source identity
{
  "accountEligibility": "UNVERIFIED",
  "analysisDoesNotRenewObservation": true,
  "attemptId": "7a47cdb5951b6c3fe4012fe3a92acba996f978e41aa167492cc9c57b720883f4",
  "cacheReadPrice": null,
  "cacheWritePrice": null,
  "captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "classification": "STRUCTURED_PRICING_RULE",
  "conditions": {
    "balanceExpiry": {
      "status": "UNKNOWN"
    },
    "bonusWallet": {
      "status": "UNKNOWN"
    },
    "declaredEndpointTypes": [
      "openai"
    ],
    "declaredGroupDescription": "0.12-0.25 站长自用快或智力高就路由可群里滴我不适合对接请个人使用",
    "declaredGroupRatio": "0.21",
    "eligibility": {
      "declaredGroup": "CodeX Auto",
      "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": "CodeX Auto",
  "formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
  "formulaProjectionBlockers": [],
  "freshUntil": "2026-10-10T23:41:42Z",
  "humanExtractionReview": "NOT_PERFORMED",
  "inputPrice": null,
  "modelName": "gpt-5.6-sol",
  "multimodalPricing": null,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "outputPrice": null,
  "parseRevisionId": "d6062d88108924ce79523e62ab4f7cda3e5bbd6628251e5eb94e7635df028d31",
  "parsedPricingDeclarations": null,
  "parserFamily": "NEW_API_PUBLIC_PRICING",
  "parserVersion": "grandet.new-api-public-pricing/1.5.1",
  "partialPriceComponents": null,
  "perRequestPrice": null,
  "planId": "declared-group:CodeX Auto",
  "pricePairSourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "pricingAdapterEvidence": [
    {
      "kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
    },
    {
      "kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
    }
  ],
  "pricingResolution": "STRUCTURED_RULE",
  "pricingRule": {
    "branches": [
      {
        "components": [
          {
            "coefficient": "174",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "261",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "72.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "5.6",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "56",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "43.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "9.0625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "0.7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "65.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "left": {
        "left": {
          "condition": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "arguments": [
              {
                "type": "string",
                "value": "long_context"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "14"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "65.25"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "1.4"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "18.125"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          },
          "whenTrue": {
            "arguments": [
              {
                "type": "string",
                "value": "standard"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "7"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "43.5"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "0.7"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "9.0625"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          }
        },
        "operator": "*",
        "right": {
          "condition": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "type": "number",
            "value": "1"
          },
          "whenTrue": {
            "type": "number",
            "value": "2"
          }
        },
        "type": "binary"
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "fast"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "dependencies": {
      "requestContext": [
        {
          "argument": "service_tier",
          "function": "param"
        }
      ],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cc",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "0.21",
    "groupRatioApplied": false,
    "humanExtractionReview": "NOT_PERFORMED",
    "kind": "CONDITIONAL_EXPRESSION",
    "limitations": [
      "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
      "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
      "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
      "GROUP_RATIO_NOT_APPLIED",
      "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
      "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
      "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
    ],
    "normalization": {
      "contextLength": "len is full input context, before subclass exclusion",
      "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
      "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
      "profile": "NEW_API_BILLINGEXPR_V1",
      "referencedVariablesAreExpressionWide": true,
      "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
    },
    "parserVersion": "grandet.new-api-expression-projection/1.1.0",
    "ruleContentSha256": "8616f74c51538694b32367e1598df6aaf8015235ed7734de639eb9bffb34c8ee",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "083d4dd4c3384d0018e54c83aadd420acc929e5808b8f4cf263c04570ffa735a",
  "quoteOrdinal": 114,
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceDomain": "api.ccode.vip",
  "sourceId": "api.ccode.vip",
  "sourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

CodeX KEY· Public API

gpt-5.6-sol

Individual units in the complete rule · Observed:

Complete conditional rule · expand for every branch and condition

All prices, conditions and source evidence

gpt-5.6-sol

api.ccode.vip · Public API declaration

Plan / group: declared-group:CodeX KEY · CodeX KEY

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

Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE

Input
Not provided / unresolved
Output
Not provided / unresolved
Per request
Not provided / unresolved
Cache read
Not provided / unresolved
Cache write
Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
  "branches": [
    {
      "components": [
        {
          "coefficient": "174",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "261",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "72.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "5.6",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "56",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "43.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "9.0625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "0.7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "65.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "left": {
      "left": {
        "condition": {
          "left": {
            "name": "len",
            "type": "variable"
          },
          "operator": "<=",
          "right": {
            "type": "number",
            "value": "272000"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "arguments": [
            {
              "type": "string",
              "value": "long_context"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "14"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "65.25"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "1.4"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "18.125"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        },
        "whenTrue": {
          "arguments": [
            {
              "type": "string",
              "value": "standard"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "7"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "43.5"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "0.7"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "9.0625"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        }
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "priority"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "operator": "*",
    "right": {
      "condition": {
        "left": {
          "arguments": [
            {
              "type": "string",
              "value": "service_tier"
            }
          ],
          "function": "param",
          "type": "call"
        },
        "operator": "==",
        "right": {
          "type": "string",
          "value": "fast"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "type": "number",
        "value": "1"
      },
      "whenTrue": {
        "type": "number",
        "value": "2"
      }
    },
    "type": "binary"
  },
  "dependencies": {
    "requestContext": [
      {
        "argument": "service_tier",
        "function": "param"
      }
    ],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cc",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "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",
    "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
  ],
  "normalization": {
    "contextLength": "len is full input context, before subclass exclusion",
    "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
    "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
    "profile": "NEW_API_BILLINGEXPR_V1",
    "referencedVariablesAreExpressionWide": true,
    "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
  },
  "parserVersion": "grandet.new-api-expression-projection/1.1.0",
  "ruleContentSha256": "1f3102f2bc10c4eaa069951aea126ea0137e0e02005ca04b94a7f84f86e51cc4",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "满血满智力,速度虽然高峰期偏慢但无需担心智力",
  "declaredGroupRatio": "0.3",
  "eligibility": {
    "declaredGroup": "CodeX KEY",
    "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:41:42Z",
  "firstObservedAt": "2026-10-03T23:41:44.845Z",
  "maximumQuoteAgeDays": 7,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceId": "api.ccode.vip",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a"
}
Complete public declaration and source identity
{
  "accountEligibility": "UNVERIFIED",
  "analysisDoesNotRenewObservation": true,
  "attemptId": "7a47cdb5951b6c3fe4012fe3a92acba996f978e41aa167492cc9c57b720883f4",
  "cacheReadPrice": null,
  "cacheWritePrice": null,
  "captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "classification": "STRUCTURED_PRICING_RULE",
  "conditions": {
    "balanceExpiry": {
      "status": "UNKNOWN"
    },
    "bonusWallet": {
      "status": "UNKNOWN"
    },
    "declaredEndpointTypes": [
      "openai"
    ],
    "declaredGroupDescription": "满血满智力,速度虽然高峰期偏慢但无需担心智力",
    "declaredGroupRatio": "0.3",
    "eligibility": {
      "declaredGroup": "CodeX KEY",
      "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": "CodeX KEY",
  "formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
  "formulaProjectionBlockers": [],
  "freshUntil": "2026-10-10T23:41:42Z",
  "humanExtractionReview": "NOT_PERFORMED",
  "inputPrice": null,
  "modelName": "gpt-5.6-sol",
  "multimodalPricing": null,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "outputPrice": null,
  "parseRevisionId": "d6062d88108924ce79523e62ab4f7cda3e5bbd6628251e5eb94e7635df028d31",
  "parsedPricingDeclarations": null,
  "parserFamily": "NEW_API_PUBLIC_PRICING",
  "parserVersion": "grandet.new-api-public-pricing/1.5.1",
  "partialPriceComponents": null,
  "perRequestPrice": null,
  "planId": "declared-group:CodeX KEY",
  "pricePairSourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "pricingAdapterEvidence": [
    {
      "kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
    },
    {
      "kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
    }
  ],
  "pricingResolution": "STRUCTURED_RULE",
  "pricingRule": {
    "branches": [
      {
        "components": [
          {
            "coefficient": "174",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "261",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "72.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "5.6",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "56",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "43.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "9.0625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "0.7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "65.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "left": {
        "left": {
          "condition": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "arguments": [
              {
                "type": "string",
                "value": "long_context"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "14"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "65.25"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "1.4"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "18.125"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          },
          "whenTrue": {
            "arguments": [
              {
                "type": "string",
                "value": "standard"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "7"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "43.5"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "0.7"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "9.0625"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          }
        },
        "operator": "*",
        "right": {
          "condition": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "type": "number",
            "value": "1"
          },
          "whenTrue": {
            "type": "number",
            "value": "2"
          }
        },
        "type": "binary"
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "fast"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "dependencies": {
      "requestContext": [
        {
          "argument": "service_tier",
          "function": "param"
        }
      ],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cc",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "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",
      "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
    ],
    "normalization": {
      "contextLength": "len is full input context, before subclass exclusion",
      "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
      "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
      "profile": "NEW_API_BILLINGEXPR_V1",
      "referencedVariablesAreExpressionWide": true,
      "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
    },
    "parserVersion": "grandet.new-api-expression-projection/1.1.0",
    "ruleContentSha256": "1f3102f2bc10c4eaa069951aea126ea0137e0e02005ca04b94a7f84f86e51cc4",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "8619a48fdbd4c94e2f9d5864242d49c565f4f016bda9ce48ad6687efbf6eb74d",
  "quoteOrdinal": 115,
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceDomain": "api.ccode.vip",
  "sourceId": "api.ccode.vip",
  "sourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

CodeX 专用· Public API

gpt-5.6-sol

Individual units in the complete rule · Observed:

Complete conditional rule · expand for every branch and condition

All prices, conditions and source evidence

gpt-5.6-sol

api.ccode.vip · Public API declaration

Plan / group: declared-group:CodeX 专用 · CodeX 专用

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

Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE

Input
Not provided / unresolved
Output
Not provided / unresolved
Per request
Not provided / unresolved
Cache read
Not provided / unresolved
Cache write
Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
  "branches": [
    {
      "components": [
        {
          "coefficient": "174",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "261",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "72.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "5.6",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "56",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "43.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "9.0625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "0.7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "65.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "left": {
      "left": {
        "condition": {
          "left": {
            "name": "len",
            "type": "variable"
          },
          "operator": "<=",
          "right": {
            "type": "number",
            "value": "272000"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "arguments": [
            {
              "type": "string",
              "value": "long_context"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "14"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "65.25"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "1.4"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "18.125"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        },
        "whenTrue": {
          "arguments": [
            {
              "type": "string",
              "value": "standard"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "7"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "43.5"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "0.7"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "9.0625"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        }
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "priority"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "operator": "*",
    "right": {
      "condition": {
        "left": {
          "arguments": [
            {
              "type": "string",
              "value": "service_tier"
            }
          ],
          "function": "param",
          "type": "call"
        },
        "operator": "==",
        "right": {
          "type": "string",
          "value": "fast"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "type": "number",
        "value": "1"
      },
      "whenTrue": {
        "type": "number",
        "value": "2"
      }
    },
    "type": "binary"
  },
  "dependencies": {
    "requestContext": [
      {
        "argument": "service_tier",
        "function": "param"
      }
    ],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cc",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "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",
    "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
  ],
  "normalization": {
    "contextLength": "len is full input context, before subclass exclusion",
    "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
    "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
    "profile": "NEW_API_BILLINGEXPR_V1",
    "referencedVariablesAreExpressionWide": true,
    "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
  },
  "parserVersion": "grandet.new-api-expression-projection/1.1.0",
  "ruleContentSha256": "1f3102f2bc10c4eaa069951aea126ea0137e0e02005ca04b94a7f84f86e51cc4",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "尽量扛降智,X20号池禁止破限禁止破限,有安全审查机制",
  "declaredGroupRatio": "0.3",
  "eligibility": {
    "declaredGroup": "CodeX 专用",
    "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:41:42Z",
  "firstObservedAt": "2026-10-03T23:41:44.845Z",
  "maximumQuoteAgeDays": 7,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceId": "api.ccode.vip",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a"
}
Complete public declaration and source identity
{
  "accountEligibility": "UNVERIFIED",
  "analysisDoesNotRenewObservation": true,
  "attemptId": "7a47cdb5951b6c3fe4012fe3a92acba996f978e41aa167492cc9c57b720883f4",
  "cacheReadPrice": null,
  "cacheWritePrice": null,
  "captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "classification": "STRUCTURED_PRICING_RULE",
  "conditions": {
    "balanceExpiry": {
      "status": "UNKNOWN"
    },
    "bonusWallet": {
      "status": "UNKNOWN"
    },
    "declaredEndpointTypes": [
      "openai"
    ],
    "declaredGroupDescription": "尽量扛降智,X20号池禁止破限禁止破限,有安全审查机制",
    "declaredGroupRatio": "0.3",
    "eligibility": {
      "declaredGroup": "CodeX 专用",
      "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": "CodeX 专用",
  "formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
  "formulaProjectionBlockers": [],
  "freshUntil": "2026-10-10T23:41:42Z",
  "humanExtractionReview": "NOT_PERFORMED",
  "inputPrice": null,
  "modelName": "gpt-5.6-sol",
  "multimodalPricing": null,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "outputPrice": null,
  "parseRevisionId": "d6062d88108924ce79523e62ab4f7cda3e5bbd6628251e5eb94e7635df028d31",
  "parsedPricingDeclarations": null,
  "parserFamily": "NEW_API_PUBLIC_PRICING",
  "parserVersion": "grandet.new-api-public-pricing/1.5.1",
  "partialPriceComponents": null,
  "perRequestPrice": null,
  "planId": "declared-group:CodeX 专用",
  "pricePairSourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "pricingAdapterEvidence": [
    {
      "kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
    },
    {
      "kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
    }
  ],
  "pricingResolution": "STRUCTURED_RULE",
  "pricingRule": {
    "branches": [
      {
        "components": [
          {
            "coefficient": "174",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "261",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "72.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "5.6",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "56",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "43.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "9.0625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "0.7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "65.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "left": {
        "left": {
          "condition": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "arguments": [
              {
                "type": "string",
                "value": "long_context"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "14"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "65.25"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "1.4"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "18.125"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          },
          "whenTrue": {
            "arguments": [
              {
                "type": "string",
                "value": "standard"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "7"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "43.5"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "0.7"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "9.0625"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          }
        },
        "operator": "*",
        "right": {
          "condition": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "type": "number",
            "value": "1"
          },
          "whenTrue": {
            "type": "number",
            "value": "2"
          }
        },
        "type": "binary"
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "fast"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "dependencies": {
      "requestContext": [
        {
          "argument": "service_tier",
          "function": "param"
        }
      ],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cc",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "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",
      "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
    ],
    "normalization": {
      "contextLength": "len is full input context, before subclass exclusion",
      "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
      "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
      "profile": "NEW_API_BILLINGEXPR_V1",
      "referencedVariablesAreExpressionWide": true,
      "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
    },
    "parserVersion": "grandet.new-api-expression-projection/1.1.0",
    "ruleContentSha256": "1f3102f2bc10c4eaa069951aea126ea0137e0e02005ca04b94a7f84f86e51cc4",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "8af5c0b8cc0ff33851bbac1d3b84664e0a0916d31507cbfa41e516faeeecc9af",
  "quoteOrdinal": 116,
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceDomain": "api.ccode.vip",
  "sourceId": "api.ccode.vip",
  "sourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

CodeX 平价· Public API

gpt-5.6-sol

Individual units in the complete rule · Observed:

Complete conditional rule · expand for every branch and condition

All prices, conditions and source evidence

gpt-5.6-sol

api.ccode.vip · Public API declaration

Plan / group: declared-group:CodeX 平价 · CodeX 平价

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

Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE

Input
Not provided / unresolved
Output
Not provided / unresolved
Per request
Not provided / unresolved
Cache read
Not provided / unresolved
Cache write
Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
  "branches": [
    {
      "components": [
        {
          "coefficient": "174",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "261",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "72.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "5.6",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "56",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "43.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "9.0625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "0.7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "65.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "left": {
      "left": {
        "condition": {
          "left": {
            "name": "len",
            "type": "variable"
          },
          "operator": "<=",
          "right": {
            "type": "number",
            "value": "272000"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "arguments": [
            {
              "type": "string",
              "value": "long_context"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "14"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "65.25"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "1.4"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "18.125"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        },
        "whenTrue": {
          "arguments": [
            {
              "type": "string",
              "value": "standard"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "7"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "43.5"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "0.7"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "9.0625"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        }
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "priority"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "operator": "*",
    "right": {
      "condition": {
        "left": {
          "arguments": [
            {
              "type": "string",
              "value": "service_tier"
            }
          ],
          "function": "param",
          "type": "call"
        },
        "operator": "==",
        "right": {
          "type": "string",
          "value": "fast"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "type": "number",
        "value": "1"
      },
      "whenTrue": {
        "type": "number",
        "value": "2"
      }
    },
    "type": "binary"
  },
  "dependencies": {
    "requestContext": [
      {
        "argument": "service_tier",
        "function": "param"
      }
    ],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cc",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "0.08",
  "groupRatioApplied": false,
  "humanExtractionReview": "NOT_PERFORMED",
  "kind": "CONDITIONAL_EXPRESSION",
  "limitations": [
    "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
    "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
    "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
    "GROUP_RATIO_NOT_APPLIED",
    "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
    "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
    "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
  ],
  "normalization": {
    "contextLength": "len is full input context, before subclass exclusion",
    "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
    "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
    "profile": "NEW_API_BILLINGEXPR_V1",
    "referencedVariablesAreExpressionWide": true,
    "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
  },
  "parserVersion": "grandet.new-api-expression-projection/1.1.0",
  "ruleContentSha256": "c8a345ee0bb88321b428b79fcb710441c978b2cf8a67c5a979893ac14488a7a6",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "速刷team或plus号",
  "declaredGroupRatio": "0.08",
  "eligibility": {
    "declaredGroup": "CodeX 平价",
    "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:41:42Z",
  "firstObservedAt": "2026-10-03T23:41:44.845Z",
  "maximumQuoteAgeDays": 7,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceId": "api.ccode.vip",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a"
}
Complete public declaration and source identity
{
  "accountEligibility": "UNVERIFIED",
  "analysisDoesNotRenewObservation": true,
  "attemptId": "7a47cdb5951b6c3fe4012fe3a92acba996f978e41aa167492cc9c57b720883f4",
  "cacheReadPrice": null,
  "cacheWritePrice": null,
  "captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "classification": "STRUCTURED_PRICING_RULE",
  "conditions": {
    "balanceExpiry": {
      "status": "UNKNOWN"
    },
    "bonusWallet": {
      "status": "UNKNOWN"
    },
    "declaredEndpointTypes": [
      "openai"
    ],
    "declaredGroupDescription": "速刷team或plus号",
    "declaredGroupRatio": "0.08",
    "eligibility": {
      "declaredGroup": "CodeX 平价",
      "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": "CodeX 平价",
  "formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
  "formulaProjectionBlockers": [],
  "freshUntil": "2026-10-10T23:41:42Z",
  "humanExtractionReview": "NOT_PERFORMED",
  "inputPrice": null,
  "modelName": "gpt-5.6-sol",
  "multimodalPricing": null,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "outputPrice": null,
  "parseRevisionId": "d6062d88108924ce79523e62ab4f7cda3e5bbd6628251e5eb94e7635df028d31",
  "parsedPricingDeclarations": null,
  "parserFamily": "NEW_API_PUBLIC_PRICING",
  "parserVersion": "grandet.new-api-public-pricing/1.5.1",
  "partialPriceComponents": null,
  "perRequestPrice": null,
  "planId": "declared-group:CodeX 平价",
  "pricePairSourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "pricingAdapterEvidence": [
    {
      "kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
    },
    {
      "kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
    }
  ],
  "pricingResolution": "STRUCTURED_RULE",
  "pricingRule": {
    "branches": [
      {
        "components": [
          {
            "coefficient": "174",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "261",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "72.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "5.6",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "56",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "43.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "9.0625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "0.7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "65.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "left": {
        "left": {
          "condition": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "arguments": [
              {
                "type": "string",
                "value": "long_context"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "14"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "65.25"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "1.4"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "18.125"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          },
          "whenTrue": {
            "arguments": [
              {
                "type": "string",
                "value": "standard"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "7"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "43.5"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "0.7"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "9.0625"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          }
        },
        "operator": "*",
        "right": {
          "condition": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "type": "number",
            "value": "1"
          },
          "whenTrue": {
            "type": "number",
            "value": "2"
          }
        },
        "type": "binary"
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "fast"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "dependencies": {
      "requestContext": [
        {
          "argument": "service_tier",
          "function": "param"
        }
      ],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cc",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "0.08",
    "groupRatioApplied": false,
    "humanExtractionReview": "NOT_PERFORMED",
    "kind": "CONDITIONAL_EXPRESSION",
    "limitations": [
      "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
      "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
      "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
      "GROUP_RATIO_NOT_APPLIED",
      "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
      "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
      "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
    ],
    "normalization": {
      "contextLength": "len is full input context, before subclass exclusion",
      "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
      "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
      "profile": "NEW_API_BILLINGEXPR_V1",
      "referencedVariablesAreExpressionWide": true,
      "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
    },
    "parserVersion": "grandet.new-api-expression-projection/1.1.0",
    "ruleContentSha256": "c8a345ee0bb88321b428b79fcb710441c978b2cf8a67c5a979893ac14488a7a6",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "878ee98c29ffb16ea0b4f80054cbb4b35d5cb2193a4cbbde283d562629030918",
  "quoteOrdinal": 117,
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceDomain": "api.ccode.vip",
  "sourceId": "api.ccode.vip",
  "sourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}

Codex 特惠满血· Public API

gpt-5.6-sol

Individual units in the complete rule · Observed:

Complete conditional rule · expand for every branch and condition

All prices, conditions and source evidence

gpt-5.6-sol

api.ccode.vip · Public API declaration

Plan / group: declared-group:Codex 特惠满血 · Codex 特惠满血

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

Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE

Input
Not provided / unresolved
Output
Not provided / unresolved
Per request
Not provided / unresolved
Cache read
Not provided / unresolved
Cache write
Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
  "branches": [
    {
      "components": [
        {
          "coefficient": "174",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "261",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "72.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "5.6",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "56",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": true
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "87",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "130.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "36.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "2.8",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "28",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "43.5",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "9.0625",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "0.7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "7",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": true
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "standard",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    },
    {
      "components": [
        {
          "coefficient": "65.25",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "OUTPUT_BASE",
          "usageVariable": "c"
        },
        {
          "coefficient": "18.125",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
          "usageVariable": "cc"
        },
        {
          "coefficient": "1.4",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "CACHE_READ",
          "usageVariable": "cr"
        },
        {
          "coefficient": "14",
          "unit": "DECLARED_USD_PER_MILLION_TOKENS",
          "usageKind": "INPUT_BASE",
          "usageVariable": "p"
        }
      ],
      "pathConditions": [
        {
          "conditionAST": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "matches": false
        },
        {
          "conditionAST": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "fast"
            },
            "type": "binary"
          },
          "matches": false
        }
      ],
      "perRequestPrice": null,
      "tierName": "long_context",
      "unit": "DECLARED_USD_PER_MILLION_TOKENS"
    }
  ],
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "conditionAST": {
    "left": {
      "left": {
        "condition": {
          "left": {
            "name": "len",
            "type": "variable"
          },
          "operator": "<=",
          "right": {
            "type": "number",
            "value": "272000"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "arguments": [
            {
              "type": "string",
              "value": "long_context"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "14"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "65.25"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "1.4"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "18.125"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        },
        "whenTrue": {
          "arguments": [
            {
              "type": "string",
              "value": "standard"
            },
            {
              "left": {
                "left": {
                  "left": {
                    "left": {
                      "name": "p",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "7"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "c",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "43.5"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cr",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "0.7"
                  },
                  "type": "binary"
                },
                "type": "binary"
              },
              "operator": "+",
              "right": {
                "left": {
                  "name": "cc",
                  "type": "variable"
                },
                "operator": "*",
                "right": {
                  "type": "number",
                  "value": "9.0625"
                },
                "type": "binary"
              },
              "type": "binary"
            }
          ],
          "function": "tier",
          "type": "call"
        }
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "priority"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "operator": "*",
    "right": {
      "condition": {
        "left": {
          "arguments": [
            {
              "type": "string",
              "value": "service_tier"
            }
          ],
          "function": "param",
          "type": "call"
        },
        "operator": "==",
        "right": {
          "type": "string",
          "value": "fast"
        },
        "type": "binary"
      },
      "type": "conditional",
      "whenFalse": {
        "type": "number",
        "value": "1"
      },
      "whenTrue": {
        "type": "number",
        "value": "2"
      }
    },
    "type": "binary"
  },
  "dependencies": {
    "requestContext": [
      {
        "argument": "service_tier",
        "function": "param"
      }
    ],
    "taskUsageSchema": null,
    "usageVariables": [
      "c",
      "cc",
      "cr",
      "len",
      "p"
    ]
  },
  "evidenceRefs": [
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
    "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
  ],
  "expressionVersion": "v1",
  "groupRatio": "0.135",
  "groupRatioApplied": false,
  "humanExtractionReview": "NOT_PERFORMED",
  "kind": "CONDITIONAL_EXPRESSION",
  "limitations": [
    "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
    "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
    "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
    "GROUP_RATIO_NOT_APPLIED",
    "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
    "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
    "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
  ],
  "normalization": {
    "contextLength": "len is full input context, before subclass exclusion",
    "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
    "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
    "profile": "NEW_API_BILLINGEXPR_V1",
    "referencedVariablesAreExpressionWide": true,
    "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
  },
  "parserVersion": "grandet.new-api-expression-projection/1.1.0",
  "ruleContentSha256": "4628f3d94063b90b30bc05bee7054fa10308797b202144addf443ea57cc940e6",
  "schema": "grandet.public-pricing-rule/v1",
  "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
  "status": "SUPPORTED_PUBLIC_DECLARATION",
  "units": [
    "DECLARED_USD_PER_MILLION_TOKENS"
  ]
}
Complete declared conditions
{
  "balanceExpiry": {
    "status": "UNKNOWN"
  },
  "bonusWallet": {
    "status": "UNKNOWN"
  },
  "declaredEndpointTypes": [
    "openai"
  ],
  "declaredGroupDescription": "特惠满血,跑完下线",
  "declaredGroupRatio": "0.135",
  "eligibility": {
    "declaredGroup": "Codex 特惠满血",
    "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:41:42Z",
  "firstObservedAt": "2026-10-03T23:41:44.845Z",
  "maximumQuoteAgeDays": 7,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceId": "api.ccode.vip",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a"
}
Complete public declaration and source identity
{
  "accountEligibility": "UNVERIFIED",
  "analysisDoesNotRenewObservation": true,
  "attemptId": "7a47cdb5951b6c3fe4012fe3a92acba996f978e41aa167492cc9c57b720883f4",
  "cacheReadPrice": null,
  "cacheWritePrice": null,
  "captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
  "cashQualification": "NOT_EVALUATED",
  "cashQualified": false,
  "classification": "STRUCTURED_PRICING_RULE",
  "conditions": {
    "balanceExpiry": {
      "status": "UNKNOWN"
    },
    "bonusWallet": {
      "status": "UNKNOWN"
    },
    "declaredEndpointTypes": [
      "openai"
    ],
    "declaredGroupDescription": "特惠满血,跑完下线",
    "declaredGroupRatio": "0.135",
    "eligibility": {
      "declaredGroup": "Codex 特惠满血",
      "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": "Codex 特惠满血",
  "formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
  "formulaProjectionBlockers": [],
  "freshUntil": "2026-10-10T23:41:42Z",
  "humanExtractionReview": "NOT_PERFORMED",
  "inputPrice": null,
  "modelName": "gpt-5.6-sol",
  "multimodalPricing": null,
  "observedAt": "2026-10-03T23:41:44.845Z",
  "outputPrice": null,
  "parseRevisionId": "d6062d88108924ce79523e62ab4f7cda3e5bbd6628251e5eb94e7635df028d31",
  "parsedPricingDeclarations": null,
  "parserFamily": "NEW_API_PUBLIC_PRICING",
  "parserVersion": "grandet.new-api-public-pricing/1.5.1",
  "partialPriceComponents": null,
  "perRequestPrice": null,
  "planId": "declared-group:Codex 特惠满血",
  "pricePairSourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "pricingAdapterEvidence": [
    {
      "kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
    },
    {
      "kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
      "url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
    }
  ],
  "pricingResolution": "STRUCTURED_RULE",
  "pricingRule": {
    "branches": [
      {
        "components": [
          {
            "coefficient": "174",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "261",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "72.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "5.6",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "56",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": true
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "87",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "130.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "36.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "2.8",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "28",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "43.5",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "9.0625",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "0.7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "7",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": true
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "standard",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      },
      {
        "components": [
          {
            "coefficient": "65.25",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "OUTPUT_BASE",
            "usageVariable": "c"
          },
          {
            "coefficient": "18.125",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_WRITE_5M_OR_GENERIC",
            "usageVariable": "cc"
          },
          {
            "coefficient": "1.4",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "CACHE_READ",
            "usageVariable": "cr"
          },
          {
            "coefficient": "14",
            "unit": "DECLARED_USD_PER_MILLION_TOKENS",
            "usageKind": "INPUT_BASE",
            "usageVariable": "p"
          }
        ],
        "pathConditions": [
          {
            "conditionAST": {
              "left": {
                "name": "len",
                "type": "variable"
              },
              "operator": "<=",
              "right": {
                "type": "number",
                "value": "272000"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "priority"
              },
              "type": "binary"
            },
            "matches": false
          },
          {
            "conditionAST": {
              "left": {
                "arguments": [
                  {
                    "type": "string",
                    "value": "service_tier"
                  }
                ],
                "function": "param",
                "type": "call"
              },
              "operator": "==",
              "right": {
                "type": "string",
                "value": "fast"
              },
              "type": "binary"
            },
            "matches": false
          }
        ],
        "perRequestPrice": null,
        "tierName": "long_context",
        "unit": "DECLARED_USD_PER_MILLION_TOKENS"
      }
    ],
    "cashQualification": "NOT_EVALUATED",
    "cashQualified": false,
    "conditionAST": {
      "left": {
        "left": {
          "condition": {
            "left": {
              "name": "len",
              "type": "variable"
            },
            "operator": "<=",
            "right": {
              "type": "number",
              "value": "272000"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "arguments": [
              {
                "type": "string",
                "value": "long_context"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "14"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "65.25"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "1.4"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "18.125"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          },
          "whenTrue": {
            "arguments": [
              {
                "type": "string",
                "value": "standard"
              },
              {
                "left": {
                  "left": {
                    "left": {
                      "left": {
                        "name": "p",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "7"
                      },
                      "type": "binary"
                    },
                    "operator": "+",
                    "right": {
                      "left": {
                        "name": "c",
                        "type": "variable"
                      },
                      "operator": "*",
                      "right": {
                        "type": "number",
                        "value": "43.5"
                      },
                      "type": "binary"
                    },
                    "type": "binary"
                  },
                  "operator": "+",
                  "right": {
                    "left": {
                      "name": "cr",
                      "type": "variable"
                    },
                    "operator": "*",
                    "right": {
                      "type": "number",
                      "value": "0.7"
                    },
                    "type": "binary"
                  },
                  "type": "binary"
                },
                "operator": "+",
                "right": {
                  "left": {
                    "name": "cc",
                    "type": "variable"
                  },
                  "operator": "*",
                  "right": {
                    "type": "number",
                    "value": "9.0625"
                  },
                  "type": "binary"
                },
                "type": "binary"
              }
            ],
            "function": "tier",
            "type": "call"
          }
        },
        "operator": "*",
        "right": {
          "condition": {
            "left": {
              "arguments": [
                {
                  "type": "string",
                  "value": "service_tier"
                }
              ],
              "function": "param",
              "type": "call"
            },
            "operator": "==",
            "right": {
              "type": "string",
              "value": "priority"
            },
            "type": "binary"
          },
          "type": "conditional",
          "whenFalse": {
            "type": "number",
            "value": "1"
          },
          "whenTrue": {
            "type": "number",
            "value": "2"
          }
        },
        "type": "binary"
      },
      "operator": "*",
      "right": {
        "condition": {
          "left": {
            "arguments": [
              {
                "type": "string",
                "value": "service_tier"
              }
            ],
            "function": "param",
            "type": "call"
          },
          "operator": "==",
          "right": {
            "type": "string",
            "value": "fast"
          },
          "type": "binary"
        },
        "type": "conditional",
        "whenFalse": {
          "type": "number",
          "value": "1"
        },
        "whenTrue": {
          "type": "number",
          "value": "2"
        }
      },
      "type": "binary"
    },
    "dependencies": {
      "requestContext": [
        {
          "argument": "service_tier",
          "function": "param"
        }
      ],
      "taskUsageSchema": null,
      "usageVariables": [
        "c",
        "cc",
        "cr",
        "len",
        "p"
      ]
    },
    "evidenceRefs": [
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
      "https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
    ],
    "expressionVersion": "v1",
    "groupRatio": "0.135",
    "groupRatioApplied": false,
    "humanExtractionReview": "NOT_PERFORMED",
    "kind": "CONDITIONAL_EXPRESSION",
    "limitations": [
      "DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
      "PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
      "TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
      "GROUP_RATIO_NOT_APPLIED",
      "TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
      "OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW",
      "CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
    ],
    "normalization": {
      "contextLength": "len is full input context, before subclass exclusion",
      "inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
      "outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
      "profile": "NEW_API_BILLINGEXPR_V1",
      "referencedVariablesAreExpressionWide": true,
      "upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
    },
    "parserVersion": "grandet.new-api-expression-projection/1.1.0",
    "ruleContentSha256": "4628f3d94063b90b30bc05bee7054fa10308797b202144addf443ea57cc940e6",
    "schema": "grandet.public-pricing-rule/v1",
    "sourceExpressionSha256": "398e1bfbf47d1ebbb118cb612502c7bc4d8069d78b3e806bbb07a352df8e56d2",
    "status": "SUPPORTED_PUBLIC_DECLARATION",
    "units": [
      "DECLARED_USD_PER_MILLION_TOKENS"
    ]
  },
  "publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
  "quoteId": "d1efcee121e51bb5471771bff9767c4fe83522130fafd89d783c4c6dfa6163df",
  "quoteOrdinal": 118,
  "snapshotId": "fa8048985357a35c6734b07b90e163ac087acc17c077edcaad28195f04eb3b47",
  "sourceDomain": "api.ccode.vip",
  "sourceId": "api.ccode.vip",
  "sourceRowId": "28debe886bc7fe4383453583fe3e2aede06ab7fa2349ad6a88d8195191e90bf0",
  "transactionId": "f56528afad5f1c8d2e3eb762da0a4ec14829b7b0ce769580496c5b10f87aee1a",
  "unit": "STRUCTURED_DECLARED_PRICING_RULE"
}
Complete public data downloads

gpt-5.6-sol

Name attribution evidence
{
  "id": "419255f2bb4c6801939e",
  "matches": [
    {
      "declaredName": "gpt-5.6-sol",
      "evidence": {
        "canonicalId": "openai/gpt-5.6-sol",
        "claimId": "419255f2bb4c6801939e",
        "confidence": "DOCUMENTED_IDENTIFIER",
        "declaredName": "gpt-5.6-sol",
        "evidenceIds": [
          "openai-pricing"
        ],
        "evidenceUrl": "https://developers.openai.com/api/docs/pricing",
        "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.6-sol",
  "officialId": null
}