完整计费规则(含所有情况、单位和条件)
{
"branches": [
{
"components": [],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "256000"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": "0.015",
"tierName": "base",
"unit": "DECLARED_USD_PER_REQUEST"
},
{
"components": [],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "256000"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": "0.025",
"tierName": "base",
"unit": "DECLARED_USD_PER_REQUEST"
},
{
"components": [],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "256000"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": "0.01",
"tierName": "base",
"unit": "DECLARED_USD_PER_REQUEST"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "256000"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "base"
},
{
"arguments": [
{
"type": "number",
"value": "0.01"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "base"
},
{
"arguments": [
{
"type": "number",
"value": "0.025"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
}
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "base"
},
{
"arguments": [
{
"type": "number",
"value": "0.015"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"len"
]
},
"evidenceRefs": [
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
],
"expressionVersion": "v1",
"groupRatio": "1",
"groupRatioApplied": false,
"humanExtractionReview": "NOT_PERFORMED",
"kind": "CONDITIONAL_EXPRESSION",
"limitations": [
"DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
"PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
"TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
"GROUP_RATIO_NOT_APPLIED",
"TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
"OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW"
],
"normalization": {
"contextLength": "len is full input context, before subclass exclusion",
"inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
"outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
"profile": "NEW_API_BILLINGEXPR_V1",
"referencedVariablesAreExpressionWide": true,
"upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
},
"parserVersion": "grandet.new-api-expression-projection/1.1.0",
"ruleContentSha256": "57231e36daee291de039a911c586d0166e9b622b415c15e66d5e2b9b6733d4bb",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "5b45fbe547f541710427b97016922ff6e279e932d5575d0b6e784f9f4cc4a7bf",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_REQUEST"
]
}这条价格的完整原始记录
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "7ed2cfd221fe4f4b48eabd747c43b2a153c47dfb318c0d97aae397f43c0c80b7",
"cacheReadPrice": null,
"cacheWritePrice": null,
"captureParserVersion": "grandet.new-api-public-pricing/1.7.0",
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"classification": "STRUCTURED_PRICING_RULE",
"conditions": {
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai"
],
"declaredGroupDescription": "不要选这个 选auto",
"declaredGroupRatio": 1,
"eligibility": {
"declaredGroup": "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": "Auto",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [],
"freshUntil": "2026-10-17T07:28:21.832000Z",
"groupOfferingFlags": [
"DISPLAY_ONLY_OR_DO_NOT_SELECT"
],
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "[次]deepseek-v4-flash",
"multimodalPricing": null,
"observedAt": "2026-10-10T07:28:22.833Z",
"offerKey": "079c1e3e708e52629d023d8d6cc08f6f4a77f48a1334e52c86035625328adaa8",
"outputPrice": null,
"parseRevisionId": null,
"parsedPricingDeclarations": null,
"parserFamily": "NEW_API_PUBLIC_PRICING",
"parserVersion": "grandet.new-api-public-pricing/1.7.0",
"partialPriceComponents": null,
"perRequestPrice": null,
"planId": "declared-group:Auto",
"pricePairSourceRowId": "b582f3dc37ec4710ce1dbac884abf525d92a6fd09fc443f4d5aee558650826cd",
"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": [],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "256000"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": "0.015",
"tierName": "base",
"unit": "DECLARED_USD_PER_REQUEST"
},
{
"components": [],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "256000"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": "0.025",
"tierName": "base",
"unit": "DECLARED_USD_PER_REQUEST"
},
{
"components": [],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "256000"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": "0.01",
"tierName": "base",
"unit": "DECLARED_USD_PER_REQUEST"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "256000"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "512000"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "base"
},
{
"arguments": [
{
"type": "number",
"value": "0.01"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "base"
},
{
"arguments": [
{
"type": "number",
"value": "0.025"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
}
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "base"
},
{
"arguments": [
{
"type": "number",
"value": "0.015"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"len"
]
},
"evidenceRefs": [
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
],
"expressionVersion": "v1",
"groupRatio": "1",
"groupRatioApplied": false,
"humanExtractionReview": "NOT_PERFORMED",
"kind": "CONDITIONAL_EXPRESSION",
"limitations": [
"DECLARED_USD_COEFFICIENTS_NOT_RECHARGE_CASH_PROOF",
"PROVIDER_DEPLOYMENT_SEMANTICS_UNVERIFIED",
"TOKEN_USAGE_NORMALIZATION_REQUIRES_UPSTREAM_USAGE_SHAPE",
"GROUP_RATIO_NOT_APPLIED",
"TOOL_SURCHARGES_AND_EXTERNAL_REQUEST_MULTIPLIERS_NOT_ESTABLISHED",
"OTHER_PRICING_FIELDS_REQUIRE_SEPARATE_REVIEW"
],
"normalization": {
"contextLength": "len is full input context, before subclass exclusion",
"inputBase": "p excludes separately referenced input subclasses; omitted subclasses follow its base rate",
"outputBase": "c excludes separately referenced output subclasses; omitted subclasses follow its base rate",
"profile": "NEW_API_BILLINGEXPR_V1",
"referencedVariablesAreExpressionWide": true,
"upstreamUsageConvention": "Normalization depends on OpenAI or Claude usage shape; img_cr requires valid modality details"
},
"parserVersion": "grandet.new-api-expression-projection/1.1.0",
"ruleContentSha256": "57231e36daee291de039a911c586d0166e9b622b415c15e66d5e2b9b6733d4bb",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "5b45fbe547f541710427b97016922ff6e279e932d5575d0b6e784f9f4cc4a7bf",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_REQUEST"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "7be94d95ce8e0ca0383a6c07d2d97b254f9bcf6b9c629b790b060182307fcbae",
"quoteOrdinal": 177,
"semanticFlags": [
"GROUP_FLAGGED"
],
"snapshotId": "9cc3327ddf7994b2e2b45f512901e6e4336dc56d5669d0f637f140d99bca8b41",
"sourceDomain": "once.novai.su",
"sourceId": "once.novai.su",
"sourceRowId": "b582f3dc37ec4710ce1dbac884abf525d92a6fd09fc443f4d5aee558650826cd",
"transactionId": "ceb904f217b13894d8dce33ccd89d787d9027ab40f3b09865cc7646ac7609f3e",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}