高倍率禁止使用· Public API
Pricing unresolved · known amounts are not complete cost
No directly displayable scalar; the complete declaration is retained.
All prices, conditions and source evidence
gpt-5.6-sol
weclawapi.com · Public API declaration
Plan / group: declared-group:高倍率禁止使用 · 高倍率禁止使用
Within observation window · not a live quote
Observed as of: · Original cache limit: · Effective limit (exclusive):
Public declaration; cash qualification is not evaluated. Upstream identity, purchase eligibility and service quality are unverified.
Original pricing unit: See individual units in the complete rule · STRUCTURED_DECLARED_PRICING_RULE
Pricing unresolved; known parts do not establish complete cost. · UNRESOLVED
- Input
- Not provided / unresolved
- Output
- Not provided / unresolved
- Per request
- Not provided / unresolved
- Cache read
- Not provided / unresolved
- Cache write
- Not provided / unresolved
Extracted numeric fields
These source ratios or price fields do not yet establish the complete plan cost.
- model_ratio
- 37.5 · SOURCE_BASE_MODEL_RATIO
- completion_ratio
- 6 · SOURCE_COMPLETION_RATIO
Complete partial extraction
{
"baseFormulaArithmetic": {
"formula": "model_ratio * declared_group_ratio * 1000000; output/cache additionally multiply their declared ratios",
"meaning": "UNMODIFIED_BASE_ARITHMETIC_ONLY_NOT_THE_FINAL_TARIFF",
"overridesApplied": false,
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"values": {
"cacheRead": null,
"cacheWrite": null,
"input": "15000000.00",
"output": "90000000.00"
}
},
"cashQualification": "NOT_EVALUATED",
"components": [
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "model_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_BASE_MODEL_RATIO",
"usageKind": "TEXT_INPUT",
"value": "37.5"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "6"
}
],
"contentSha256": "9614c21c9c4564a298b5a6957dae140c2fb2f348f62c2e0904bb39fc7bc7a17f",
"currencyInferred": false,
"declaredGroupRatio": "0.4",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "78fcfbee55fe24ada50c49f07238847213770d275ecbbded4ad31bc135ee6ce2",
"rawDeclaredFieldsSha256": "5a81a727cfa9ea68152b04a44ae4ca005e9e1d45d6d76e2594624036ea26b9b9",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "97d41b0ce2f1ff524ab8897fb2dc0981f7397de3b3a9e5f861ea3de4e394d290",
"status": "PARTIAL_EXTRACTION_FINAL_TARIFF_UNRESOLVED",
"unresolvedTariffReasons": [
"NONSTANDARD_GLOBAL_FIELDS",
"NONSTANDARD_PRICING_FIELDS"
]
}Unresolved reasons
[ "NONSTANDARD_GLOBAL_FIELDS", "NONSTANDARD_PRICING_FIELDS" ]
Complete pricing rule · all branches, units and conditions
{
"branches": [
{
"components": [
{
"coefficient": "225",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "62.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_5M_OR_GENERIC",
"usageVariable": "cc"
},
{
"coefficient": "62.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_1H",
"usageVariable": "cc1h"
},
{
"coefficient": "25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "50",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "272000"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "long_context",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "300",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "62.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_5M_OR_GENERIC",
"usageVariable": "cc"
},
{
"coefficient": "62.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_1H",
"usageVariable": "cc1h"
},
{
"coefficient": "25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "50",
"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
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "150",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "31.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_5M_OR_GENERIC",
"usageVariable": "cc"
},
{
"coefficient": "31.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_1H",
"usageVariable": "cc1h"
},
{
"coefficient": "12.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "25",
"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
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "272000"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "standard"
},
{
"left": {
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "150"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "12.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "31.25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc1h",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "31.25"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "priority"
},
{
"left": {
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "50"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "300"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "62.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc1h",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "62.5"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "long_context"
},
{
"left": {
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "50"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "225"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "62.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc1h",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "62.5"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [
{
"argument": "service_tier",
"function": "param"
}
],
"taskUsageSchema": null,
"usageVariables": [
"c",
"cc",
"cc1h",
"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.4",
"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": "b1d8b3420692c834beccf335a9fe1e8319e314860c13259d998c6fd7a3f93351",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "190ccde409301429d8d24c2fece5bd46e1e3465991187522e36a40dbfd5bbfad",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
}Complete declared conditions
{
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai",
"openai-response",
"openai-response-compact",
"anthropic",
"gemini",
"openai-alpha-search"
],
"declaredGroupDescription": "测试",
"declaredGroupRatio": "0.4",
"eligibility": {
"declaredGroup": "高倍率禁止使用",
"status": "UNKNOWN"
},
"membership": {
"status": "UNKNOWN"
},
"minimumTopup": {
"status": "UNKNOWN"
},
"mixedWallet": {
"status": "UNKNOWN"
},
"nightDiscount": {
"status": "UNKNOWN"
},
"rateWindows": {
"status": "UNKNOWN"
},
"requiredFees": {
"status": "UNKNOWN"
},
"sharedAllowance": {
"status": "UNKNOWN"
},
"sourceEffectiveAt": {
"status": "UNKNOWN"
},
"tieredRates": {
"status": "UNKNOWN"
},
"topupBonus": {
"status": "UNKNOWN"
}
}Bound source freshness context
{
"cacheFreshUntil": "2026-10-10T23:56:54.768000Z",
"firstObservedAt": "2026-10-03T23:56:56.152Z",
"maximumQuoteAgeDays": 7,
"observedAt": "2026-10-03T23:56:56.152Z",
"snapshotId": "a14437ea2d2359a054686afe7becce23b5e6efdea08c270ffb5af61f54dd0bb0",
"sourceId": "weclawapi.com",
"transactionId": "fe2dd2cd52e32f0cf08dd9e9656462b4c983e022f77fc382a334f7974cf738b8"
}Complete public declaration and source identity
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "436cf323aa94c05067a84b2349f40048373f6ca77fcbf174d14343c6cedc1907",
"cacheReadPrice": null,
"cacheWritePrice": null,
"captureParserVersion": "grandet.new-api-public-pricing/1.4.0",
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"classification": "SPECIAL_OR_UNKNOWN_PRICING",
"conditions": {
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai",
"openai-response",
"openai-response-compact",
"anthropic",
"gemini",
"openai-alpha-search"
],
"declaredGroupDescription": "测试",
"declaredGroupRatio": "0.4",
"eligibility": {
"declaredGroup": "高倍率禁止使用",
"status": "UNKNOWN"
},
"membership": {
"status": "UNKNOWN"
},
"minimumTopup": {
"status": "UNKNOWN"
},
"mixedWallet": {
"status": "UNKNOWN"
},
"nightDiscount": {
"status": "UNKNOWN"
},
"rateWindows": {
"status": "UNKNOWN"
},
"requiredFees": {
"status": "UNKNOWN"
},
"sharedAllowance": {
"status": "UNKNOWN"
},
"sourceEffectiveAt": {
"status": "UNKNOWN"
},
"tieredRates": {
"status": "UNKNOWN"
},
"topupBonus": {
"status": "UNKNOWN"
}
},
"declaredGroup": "高倍率禁止使用",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [
"NONSTANDARD_GLOBAL_FIELDS",
"NONSTANDARD_PRICING_FIELDS"
],
"freshUntil": "2026-10-10T23:56:54.768000Z",
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "gpt-5.6-sol",
"multimodalPricing": null,
"observedAt": "2026-10-03T23:56:56.152Z",
"outputPrice": null,
"parseRevisionId": "9a9bb2063d3ec26431db09fca00052b20384fcd15da2477fe250d1b7d01fd546",
"parsedPricingDeclarations": null,
"parserFamily": "NEW_API_PUBLIC_PRICING",
"parserVersion": "grandet.new-api-public-pricing/1.5.1",
"partialPriceComponents": {
"baseFormulaArithmetic": {
"formula": "model_ratio * declared_group_ratio * 1000000; output/cache additionally multiply their declared ratios",
"meaning": "UNMODIFIED_BASE_ARITHMETIC_ONLY_NOT_THE_FINAL_TARIFF",
"overridesApplied": false,
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"values": {
"cacheRead": null,
"cacheWrite": null,
"input": "15000000.00",
"output": "90000000.00"
}
},
"cashQualification": "NOT_EVALUATED",
"components": [
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "model_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_BASE_MODEL_RATIO",
"usageKind": "TEXT_INPUT",
"value": "37.5"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "6"
}
],
"contentSha256": "9614c21c9c4564a298b5a6957dae140c2fb2f348f62c2e0904bb39fc7bc7a17f",
"currencyInferred": false,
"declaredGroupRatio": "0.4",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "78fcfbee55fe24ada50c49f07238847213770d275ecbbded4ad31bc135ee6ce2",
"rawDeclaredFieldsSha256": "5a81a727cfa9ea68152b04a44ae4ca005e9e1d45d6d76e2594624036ea26b9b9",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "97d41b0ce2f1ff524ab8897fb2dc0981f7397de3b3a9e5f861ea3de4e394d290",
"status": "PARTIAL_EXTRACTION_FINAL_TARIFF_UNRESOLVED",
"unresolvedTariffReasons": [
"NONSTANDARD_GLOBAL_FIELDS",
"NONSTANDARD_PRICING_FIELDS"
]
},
"perRequestPrice": null,
"planId": "declared-group:高倍率禁止使用",
"pricePairSourceRowId": "97d41b0ce2f1ff524ab8897fb2dc0981f7397de3b3a9e5f861ea3de4e394d290",
"pricingAdapterEvidence": [
{
"kind": "PUBLIC_PRIMARY_VENDOR_SCHEMA",
"url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/model/pricing.go"
},
{
"kind": "PUBLIC_PRIMARY_USABLE_GROUP_FILTER",
"url": "https://raw.githubusercontent.com/QuantumNous/new-api/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/controller/pricing.go"
}
],
"pricingResolution": "UNRESOLVED",
"pricingRule": {
"branches": [
{
"components": [
{
"coefficient": "225",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "62.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_5M_OR_GENERIC",
"usageVariable": "cc"
},
{
"coefficient": "62.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_1H",
"usageVariable": "cc1h"
},
{
"coefficient": "25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "50",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "272000"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "long_context",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "300",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "62.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_5M_OR_GENERIC",
"usageVariable": "cc"
},
{
"coefficient": "62.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_1H",
"usageVariable": "cc1h"
},
{
"coefficient": "25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "50",
"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
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "150",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "31.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_5M_OR_GENERIC",
"usageVariable": "cc"
},
{
"coefficient": "31.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_WRITE_1H",
"usageVariable": "cc1h"
},
{
"coefficient": "12.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "25",
"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
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">",
"right": {
"type": "number",
"value": "272000"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "standard"
},
{
"left": {
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "150"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "12.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "31.25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc1h",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "31.25"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "priority"
},
{
"left": {
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "50"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "300"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "62.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc1h",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "62.5"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "long_context"
},
{
"left": {
"left": {
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "50"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "225"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "62.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc1h",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "62.5"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [
{
"argument": "service_tier",
"function": "param"
}
],
"taskUsageSchema": null,
"usageVariables": [
"c",
"cc",
"cc1h",
"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.4",
"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": "b1d8b3420692c834beccf335a9fe1e8319e314860c13259d998c6fd7a3f93351",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "190ccde409301429d8d24c2fece5bd46e1e3465991187522e36a40dbfd5bbfad",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "78fcfbee55fe24ada50c49f07238847213770d275ecbbded4ad31bc135ee6ce2",
"quoteOrdinal": 69,
"snapshotId": "a14437ea2d2359a054686afe7becce23b5e6efdea08c270ffb5af61f54dd0bb0",
"sourceDomain": "weclawapi.com",
"sourceId": "weclawapi.com",
"sourceRowId": "97d41b0ce2f1ff524ab8897fb2dc0981f7397de3b3a9e5f861ea3de4e394d290",
"transactionId": "fe2dd2cd52e32f0cf08dd9e9656462b4c983e022f77fc382a334f7974cf738b8",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}