完整计费规则(含所有情况、单位和条件)
{
"branches": [
{
"components": [],
"costExpression": {
"divisor": "1000000",
"evaluation": "SYMBOLIC_ONLY",
"expressionAST": {
"left": {
"left": {
"type": "number",
"value": "0.045"
},
"operator": "*",
"right": {
"type": "number",
"value": "1000000"
},
"type": "binary"
},
"operator": "*",
"right": {
"name": "image_count",
"type": "variable"
},
"type": "binary"
},
"numericSemantics": "SOURCE_FLOAT64_FORMULA_RETAINED_NOT_EXECUTED",
"resultUnit": "DECLARED_USD_TOTAL"
},
"pathConditions": [],
"perRequestPrice": null,
"tierName": null,
"unit": "DECLARED_USD_TOTAL"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"left": {
"arguments": [
{
"type": "string",
"value": "image"
},
{
"arguments": [
{
"type": "number",
"value": "0.045"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
},
"operator": "*",
"right": {
"name": "image_count",
"type": "variable"
},
"type": "binary"
},
"dependencies": {
"quantities": [
{
"integerRequired": true,
"maximum": "128",
"minimum": "1",
"requestParamNIsNotSettlementCount": true,
"unit": "count",
"upstreamMissingContextDefault": "1",
"usageKind": "IMAGE_GENERATION_COUNT",
"variable": "image_count"
}
],
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"image_count"
]
},
"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": "STRUCTURED_COST_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",
"STRUCTURED_FORMULA_IS_NOT_A_CONSTANT_TEXT_TOKEN_PRICE",
"SOURCE_FLOAT64_ROUNDING_AND_FINAL_QUOTA_INTEGER_ROUNDING_NOT_REPRODUCED",
"IMAGE_COUNT_REQUIRES_ACTUAL_GENERATED_OR_BILLABLE_COUNT"
],
"normalization": {
"contextLength": "len is full input context, before subclass exclusion",
"fixedAmountScale": "fixed(amount) contributes amount*1000000 before the common divisor",
"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.2.0",
"ruleContentSha256": "43610d11167cb22da3344e5a01c5cfb9827e6273e08135f40aa31a9e6a0b2621",
"schema": "grandet.public-pricing-rule/v2",
"sourceExpressionSha256": "25dba164d0e7f1b373a962b66e177dc3873539f4d836462584519e44e3497e58",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_TOTAL"
]
}这条价格的完整原始记录
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "631a47004ebfefd4c729d5572dd503adaa77229b5a565c375a2dcc407bccdd5e",
"cacheReadPrice": null,
"cacheWritePrice": null,
"captureParserVersion": "grandet.new-api-public-pricing/1.7.0",
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"classification": "SPECIAL_OR_UNKNOWN_PRICING",
"conditions": {
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"image-generation",
"openai"
],
"declaredGroupDescription": "按次收费",
"declaredGroupRatio": 1,
"eligibility": {
"declaredGroup": "生图专用",
"status": "UNKNOWN"
},
"membership": {
"status": "UNKNOWN"
},
"minimumTopup": {
"status": "UNKNOWN"
},
"mixedWallet": {
"status": "UNKNOWN"
},
"nightDiscount": {
"status": "UNKNOWN"
},
"rateWindows": {
"status": "UNKNOWN"
},
"requiredFees": {
"status": "UNKNOWN"
},
"sharedAllowance": {
"status": "UNKNOWN"
},
"sourceEffectiveAt": {
"status": "UNKNOWN"
},
"tieredRates": {
"status": "UNKNOWN"
},
"topupBonus": {
"status": "UNKNOWN"
}
},
"declaredGroup": "生图专用",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [
"NONSTANDARD_GLOBAL_FIELDS",
"NONSTANDARD_PRICING_FIELDS"
],
"freshUntil": "2026-10-26T11:32:51Z",
"groupOfferingFlags": [],
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "gpt-image-2.5-sunburst",
"multimodalPricing": null,
"observedAt": "2026-10-16T11:32:51.836Z",
"offerKey": "2c1ffee34df524c1cd71c77cdcd5a2e365057e46528c669f8b8305b304e821aa",
"outputPrice": null,
"parseRevisionId": null,
"parsedPricingDeclarations": null,
"parserFamily": "NEW_API_PUBLIC_PRICING",
"parserVersion": "grandet.new-api-public-pricing/1.7.0",
"partialPriceComponents": {
"baseFormulaArithmetic": null,
"cashQualification": "NOT_EVALUATED",
"components": [
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "model_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_BASE_MODEL_RATIO",
"usageKind": "TEXT_INPUT",
"value": "0"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "0"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "model_price",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "NOMINAL_DISPLAY_UNITS_PER_REQUEST",
"usageKind": "REQUEST",
"value": "0.045"
}
],
"contentSha256": "aa140213f6e30b42cf85a265c398247cb97adb44e2931ce02f32de0ce22d9721",
"currencyInferred": false,
"declaredGroupRatio": "1",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "c1a146d243a0da0f009ba206ef1323ccffb797fcea35760373aa89b4a253200c",
"rawDeclaredFieldsSha256": "7b9e59cf9b823f5f378dfb137cc2c9ebb85c054e04dbd8cc036cb7ca5714f6a2",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "7c6039dcddc9cce63b399f47d36836914398d9d60899734374a9f6b4fdb1a252",
"status": "PARTIAL_EXTRACTION_FINAL_TARIFF_UNRESOLVED",
"unresolvedTariffReasons": [
"NONSTANDARD_GLOBAL_FIELDS",
"NONSTANDARD_PRICING_FIELDS"
]
},
"perRequestPrice": null,
"planId": "declared-group:生图专用",
"pricePairSourceRowId": "7c6039dcddc9cce63b399f47d36836914398d9d60899734374a9f6b4fdb1a252",
"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": [],
"costExpression": {
"divisor": "1000000",
"evaluation": "SYMBOLIC_ONLY",
"expressionAST": {
"left": {
"left": {
"type": "number",
"value": "0.045"
},
"operator": "*",
"right": {
"type": "number",
"value": "1000000"
},
"type": "binary"
},
"operator": "*",
"right": {
"name": "image_count",
"type": "variable"
},
"type": "binary"
},
"numericSemantics": "SOURCE_FLOAT64_FORMULA_RETAINED_NOT_EXECUTED",
"resultUnit": "DECLARED_USD_TOTAL"
},
"pathConditions": [],
"perRequestPrice": null,
"tierName": null,
"unit": "DECLARED_USD_TOTAL"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"left": {
"arguments": [
{
"type": "string",
"value": "image"
},
{
"arguments": [
{
"type": "number",
"value": "0.045"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
},
"operator": "*",
"right": {
"name": "image_count",
"type": "variable"
},
"type": "binary"
},
"dependencies": {
"quantities": [
{
"integerRequired": true,
"maximum": "128",
"minimum": "1",
"requestParamNIsNotSettlementCount": true,
"unit": "count",
"upstreamMissingContextDefault": "1",
"usageKind": "IMAGE_GENERATION_COUNT",
"variable": "image_count"
}
],
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"image_count"
]
},
"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": "STRUCTURED_COST_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",
"STRUCTURED_FORMULA_IS_NOT_A_CONSTANT_TEXT_TOKEN_PRICE",
"SOURCE_FLOAT64_ROUNDING_AND_FINAL_QUOTA_INTEGER_ROUNDING_NOT_REPRODUCED",
"IMAGE_COUNT_REQUIRES_ACTUAL_GENERATED_OR_BILLABLE_COUNT"
],
"normalization": {
"contextLength": "len is full input context, before subclass exclusion",
"fixedAmountScale": "fixed(amount) contributes amount*1000000 before the common divisor",
"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.2.0",
"ruleContentSha256": "43610d11167cb22da3344e5a01c5cfb9827e6273e08135f40aa31a9e6a0b2621",
"schema": "grandet.public-pricing-rule/v2",
"sourceExpressionSha256": "25dba164d0e7f1b373a962b66e177dc3873539f4d836462584519e44e3497e58",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_TOTAL"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "c1a146d243a0da0f009ba206ef1323ccffb797fcea35760373aa89b4a253200c",
"quoteOrdinal": 189,
"semanticFlags": [],
"snapshotId": "c85dcb81c6e6ebc237e46f9f245ef533e6182ea2d3a6167f73944dbeb1c49323",
"sourceDomain": "aitreez.com",
"sourceId": "aitreez.com",
"sourceRowId": "7c6039dcddc9cce63b399f47d36836914398d9d60899734374a9f6b4fdb1a252",
"transactionId": "c83e3fe4765aee81d71d6fc8729f04f2babaa3ad5e582a51bf20f4a9c05dcb66",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}