完整计费规则 · 含所有分支、单位与条件
{
"branches": [
{
"components": [
{
"coefficient": "12",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "120",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "IMAGE_OUTPUT",
"usageVariable": "img_o"
},
{
"coefficient": "2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"arguments": [
{
"type": "string",
"value": "standard"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "2"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "12"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "img_o",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "120"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"c",
"img_o",
"p"
]
},
"evidenceRefs": [
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
],
"expressionVersion": "v1",
"groupRatio": "2.5",
"groupRatioApplied": false,
"humanExtractionReview": "NOT_PERFORMED",
"kind": "TOKEN_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": "3cbff5457cd98f464384f2bcab1501a34dd37d22f1f1422c387615507649c2b5",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "bae090d894c1db5fef0e33b7c03b1abeba0cc9802fe340323667fc5e0a9a4508",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
}完整公开声明与来源定位
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "9052b8f25713720f7400b6e5e545386110a0d93ec4e7e3576ccb778d770e526d",
"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": [
"gemini",
"openai"
],
"declaredGroupDescription": "AI Studio/Vertex混合",
"declaredGroupRatio": "2.5",
"eligibility": {
"declaredGroup": "gemini",
"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": "gemini",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [
"NONSTANDARD_PRICING_FIELDS"
],
"freshUntil": "2026-10-10T23:37:29Z",
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "gemini-3-pro-image",
"multimodalPricing": null,
"observedAt": "2026-10-03T23:37:30.068Z",
"outputPrice": null,
"parseRevisionId": "2c0f242ee47237f07c4e934f239056981fd4b8866826997d18d54f8c41270cbe",
"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": "2500000.0",
"output": "15000000.0"
}
},
"cashQualification": "NOT_EVALUATED",
"components": [
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "model_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_BASE_MODEL_RATIO",
"usageKind": "TEXT_INPUT",
"value": "1"
},
{
"role": "BASE_DECLARATION_NOT_EFFECTIVE_TARIFF",
"sourceField": "completion_ratio",
"status": "EXACT_NUMERIC_DECLARATION",
"unit": "SOURCE_COMPLETION_RATIO",
"usageKind": "TEXT_OUTPUT",
"value": "6"
}
],
"contentSha256": "e84c635504f0d1450ef5659146737fbe0433e3b35e6fc39b0a439ccd5b1f848d",
"currencyInferred": false,
"declaredGroupRatio": "2.5",
"effectiveQuote": false,
"eligibleForPriceRanking": false,
"quoteId": "69700a5881ce10215bb56c008ea7282405c46675803792efbe8f155747f3a017",
"rawDeclaredFieldsSha256": "055f8973b51117ce590c96a8deb1c5646b31e4547c958849f59bab669d74510c",
"schema": "grandet.partial-price-components/v1",
"sourceRowId": "bfd0b4e736b6136eb5a3aa123cf8cbf719d0f4c5b62ae9a9c61e37e4591448bb",
"status": "PARTIAL_EXTRACTION_FINAL_TARIFF_UNRESOLVED",
"unresolvedTariffReasons": [
"NONSTANDARD_PRICING_FIELDS"
]
},
"perRequestPrice": null,
"planId": "declared-group:gemini",
"pricePairSourceRowId": "bfd0b4e736b6136eb5a3aa123cf8cbf719d0f4c5b62ae9a9c61e37e4591448bb",
"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": "12",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "120",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "IMAGE_OUTPUT",
"usageVariable": "img_o"
},
{
"coefficient": "2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"arguments": [
{
"type": "string",
"value": "standard"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "2"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "12"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "img_o",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "120"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"c",
"img_o",
"p"
]
},
"evidenceRefs": [
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/expr.md",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/settle.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/run.go",
"https://github.com/QuantumNous/new-api/blob/1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5/pkg/billingexpr/fixed.go"
],
"expressionVersion": "v1",
"groupRatio": "2.5",
"groupRatioApplied": false,
"humanExtractionReview": "NOT_PERFORMED",
"kind": "TOKEN_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": "3cbff5457cd98f464384f2bcab1501a34dd37d22f1f1422c387615507649c2b5",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "bae090d894c1db5fef0e33b7c03b1abeba0cc9802fe340323667fc5e0a9a4508",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "69700a5881ce10215bb56c008ea7282405c46675803792efbe8f155747f3a017",
"quoteOrdinal": 350,
"snapshotId": "e5f8044585dda682af06b047087aec7746ce6a11a369bd5b0d9de0af37e269eb",
"sourceDomain": "9527.codes",
"sourceId": "9527.codes",
"sourceRowId": "bfd0b4e736b6136eb5a3aa123cf8cbf719d0f4c5b62ae9a9c61e37e4591448bb",
"transactionId": "e90306f7aad3f0d17060747e0802005d309d867b6730fab431a4564d6adb7c44",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}