Codex-Pro· 公开 API
完整条件规则 · 展开查看全部分支与计价条件
全部价格、条件与来源证据
codex-auto-review
fanrenapi.com · 公开 API 声明
套餐 / 分组:declared-group:Codex-Pro · Codex-Pro
观察有效期内 · 非实时报价
截至观察: · 原缓存截止: · 最终评估截止(不含):
公开声明;现金资格尚未评估,上游身份、购买资格与服务质量未核验。
原计价单位:各项原单位见完整规则 · STRUCTURED_DECLARED_PRICING_RULE
按完整规则计费;不可用单一最低价代表。 · STRUCTURED_RULE
计费方式与缓存条件
按下方完整公式计费;基础倍率和缓存对照值不额外叠加。
来源所列“官方价格”仅作该站声明的参考,不替代本套餐价格。
完整条件与来源依据
{
"activePricing": {
"mode": "BILLING_EXPRESSION",
"ruleContentSha256": "63712044a894ea577b116ccf0b3f0229ef5a8025ae7d65b8b7b84b99302a6478",
"ruleSchema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "f829ee65ef599880aa38abf97023dba0614c079ad6f328ab4477d82ec97e4760"
},
"baseRatioComponents": {
"appliesToActiveTariff": false,
"components": [
{
"groupRatioApplied": true,
"selectedSourceField": "model_ratio",
"sourceRatio": "1.25",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "400000",
"usageKind": "TEXT_INPUT"
},
{
"groupRatioApplied": true,
"selectedSourceField": "completion_ratio",
"sourceRatio": "6",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "2400000",
"usageKind": "TEXT_OUTPUT"
},
{
"groupRatioApplied": true,
"selectedSourceField": "cache_ratio",
"sourceDisplayConfigured": true,
"sourceRatio": "0.12",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "48000",
"usageKind": "CACHE_READ"
},
{
"groupRatioApplied": true,
"selectedSourceField": "create_cache_ratio",
"sourceDisplayConfigured": true,
"sourceRatio": "1.2",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "480000",
"usageKind": "CACHE_WRITE_5M"
},
{
"groupRatioApplied": true,
"selectedSourceField": "cache_write_1h_ratio_effective",
"sourceDisplayConfigured": true,
"sourceRatio": "1.92",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "768000",
"usageKind": "CACHE_WRITE_1H"
}
],
"role": "INACTIVE_SOURCE_BASE_DISPLAY_NOT_EXPRESSION_PRICE"
},
"billingUnit": "per_token",
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"consumerRequirements": [
"HONOR_ACTIVE_PRICING_MODE_AND_KEEP_COMPLETE_EXPRESSION_BRANCHES",
"DO_NOT_ADD_INACTIVE_BASE_RATIO_COMPONENTS_TO_EXPRESSION_PRICES",
"DISPLAY_CACHE_WRITE_5M_AND_1H_AS_DISTINCT_COMPONENTS",
"DISPLAY_SOURCE_DEFAULT_VS_CONFIGURED_CACHE_RATIO_PROVENANCE",
"KEEP_IMAGE_SECOND_AND_TOKEN_UNITS_SEPARATE",
"DISPLAY_DURATION_DEFAULT_AND_MAX_WITHOUT_MULTIPLYING_UNIT_PRICE",
"OFFICIAL_REFERENCE_IS_NOT_THE_PROVIDER_TARIFF_OR_INDEPENDENT_VERIFICATION",
"PRESERVE_ORIGINAL_GROUP_CONDITIONS_AND_OBSERVATION_TIME",
"NO_CASH_ELIGIBILITY_QUALITY_OR_UPSTREAM_STATUS_UPGRADE"
],
"contentSha256": "8866269fbbbe6fadffa04f197e01a56279ad53b38d0fd698c5130fc97ecf8984",
"declaredGroup": "Codex-Pro",
"eligibilityVerified": false,
"evidenceRefs": [
{
"documentId": "38baec2e6d9bfd0eb44f4c2be11ee8bb297b84368aa078f8d217137df489c40b",
"observedAt": "2026-10-03T23:50:07.193Z",
"sha256": "d38d162f1a8ba64f9c34f1afd52270d13cfaa0e4395e423e5924d7a578392c3c",
"url": "https://fanrenapi.com/"
},
{
"sha256": "3ff228737e5aeb7f864bca4ec1a274e44cd024614d348c9fb766b4049d226a40",
"url": "https://fanrenapi.com/static/js/index.c1e5afa94a.js"
},
{
"basePriceCharacterRange": [
52800,
60000
],
"groupPriceCharacterRange": [
60900,
67900
],
"semanticModules": [
24425,
36832
],
"sha256": "cae7d605ad51af46709b09a4d33d85f26cc7e97ede5d8224e27dae98bc22dac2",
"url": "https://fanrenapi.com/static/js/async/9630.b1841463c6.js"
}
],
"groupRatio": "0.32",
"kind": "SOURCE_BOUND_BILLING_UNIT_AND_CACHE_CONTEXT",
"modelName": "codex-auto-review",
"officialReference": {
"grantsCashQualification": false,
"independentlyVerified": false,
"role": "SOURCE_DECLARED_REFERENCE_NOT_PROVIDER_EFFECTIVE_PRICE",
"usedForProviderPrice": false,
"value": null
},
"parserVersion": "grandet.source-fanren-pricing/1.5.3",
"qualityScore": null,
"renewsObservationTime": false,
"schema": "grandet.source-fanren-billing-context/v1",
"selectedCacheRatios": [
{
"selectedRatio": "0.12",
"selectedSourceField": "cache_ratio",
"sourceConfigured": true,
"sourceDisplayConfigured": true,
"sourceValues": {
"cache_ratio": "0.12",
"cache_ratio_configured": true,
"cache_ratio_effective": "0.12"
},
"usageKind": "CACHE_READ"
},
{
"selectedRatio": "1.2",
"selectedSourceField": "create_cache_ratio",
"sourceConfigured": true,
"sourceDisplayConfigured": true,
"sourceValues": {
"create_cache_ratio": "1.2",
"create_cache_ratio_configured": true,
"create_cache_ratio_effective": "1.2"
},
"usageKind": "CACHE_WRITE_5M"
},
{
"fallback5mSelection": {
"selectedRatio": "1.2",
"selectedSourceField": "create_cache_ratio",
"sourceConfigured": true,
"sourceDisplayConfigured": true,
"sourceValues": {
"create_cache_ratio": "1.2",
"create_cache_ratio_configured": true,
"create_cache_ratio_effective": "1.2"
},
"usageKind": "CACHE_WRITE_5M"
},
"selectedRatio": "1.92",
"selectedSourceField": "cache_write_1h_ratio_effective",
"sourceConfigured": true,
"sourceDisplayConfigured": true,
"sourceValues": {
"cache_write_1h_ratio_effective": "1.92"
},
"usageKind": "CACHE_WRITE_1H"
}
],
"sourceBinding": {
"declaredGroup": "Codex-Pro",
"declaredGroupRatio": "0.32",
"observedAt": "2026-10-03T23:49:47.997Z",
"originalBodySha256": "4025d3ddc1a30f23d0e618d7b2ca616c4c530ca70b2572cb8daf77253bbc5235",
"rawDeclaredFieldsSha256": "d120f764c985717f497043d028b2580c565d7414eb34a1bff71eebb29ba913a3",
"rowIndex": 25,
"rowJsonPointer": "/data/25",
"snapshotId": "1ff28207812a42bd21b56702fc371199b2da9cb50dd4fbf07622986d8bf6fef8",
"sourceDocumentProjectionSha256": "35638b65d91d15a2234e3ac49cff4f3115a03224f345bbc0f0439e758268fac0",
"sourceGlobalProjectionSha256": "3dae277bb5a9f89db7b02fc1ddcf12297967afda21a4f4c04c7a1dc9c7bc7e76",
"sourceId": "fanrenapi.com",
"transactionId": "fa284e1759a2a10cf5796d647ec87d9d51dc2f3d9c7c729018be5bc2a17a7c08"
},
"sourceId": "fanrenapi.com",
"sourcePricingFields": {
"billing_expr": "len <= 272000 ? tier(\"standard\", p * 2.5 + c * 15 + cr * 0.25) : tier(\"long_context\", p * 5 + c * 22.5 + cr * 0.5)",
"billing_mode": "tiered_expr",
"billing_unit": "per_token",
"cache_ratio": "0.12",
"cache_ratio_configured": true,
"cache_ratio_effective": "0.12",
"cache_write_1h_ratio_effective": "1.92",
"completion_ratio": 6,
"create_cache_ratio": "1.2",
"create_cache_ratio_configured": true,
"create_cache_ratio_effective": "1.2",
"model_name": "codex-auto-review",
"model_price": 0,
"model_ratio": "1.25",
"quota_type": 0
},
"upstreamVerified": false,
"usageConstraints": null
}- 输入
- 未提供 / 待解析
- 输出
- 未提供 / 待解析
- 按次
- 未提供 / 待解析
- 缓存读取
- 未提供 / 待解析
- 缓存写入
- 未提供 / 待解析
完整计费规则 · 含所有分支、单位与条件
{
"branches": [
{
"components": [
{
"coefficient": "15",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "2.5",
"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": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "22.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "5",
"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
}
],
"perRequestPrice": null,
"tierName": "long_context",
"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": {
"arguments": [
{
"type": "string",
"value": "long_context"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "22.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.5"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "standard"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "2.5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "15"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.25"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"c",
"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.32",
"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": "63712044a894ea577b116ccf0b3f0229ef5a8025ae7d65b8b7b84b99302a6478",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "f829ee65ef599880aa38abf97023dba0614c079ad6f328ab4477d82ec97e4760",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
}完整声明条件
{
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai"
],
"declaredGroupDescription": "Codex 上品灵脉,更稳、限额更高;禁止破限,违者封号;享境界折扣",
"declaredGroupRatio": "0.32",
"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"
}
}绑定的来源时效依据
{
"cacheFreshUntil": "2026-10-10T23:49:46.273000Z",
"firstObservedAt": "2026-10-03T23:49:47.997Z",
"maximumQuoteAgeDays": 7,
"observedAt": "2026-10-03T23:49:47.997Z",
"snapshotId": "1ff28207812a42bd21b56702fc371199b2da9cb50dd4fbf07622986d8bf6fef8",
"sourceId": "fanrenapi.com",
"transactionId": "fa284e1759a2a10cf5796d647ec87d9d51dc2f3d9c7c729018be5bc2a17a7c08"
}完整公开声明与来源定位
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "5c0635aa7d5cefc7f084ffe4b5ad7e0b9b350984db31873b2190114d3a112a3c",
"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 上品灵脉,更稳、限额更高;禁止破限,违者封号;享境界折扣",
"declaredGroupRatio": "0.32",
"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:49:46.273000Z",
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "codex-auto-review",
"multimodalPricing": null,
"observedAt": "2026-10-03T23:49:47.997Z",
"outputPrice": null,
"parseRevisionId": "d9800b86fb13e1730564ff69cb4503f2c3d457c593ef39fa3071bc4985183807",
"parsedPricingDeclarations": [
{
"activePricing": {
"mode": "BILLING_EXPRESSION",
"ruleContentSha256": "63712044a894ea577b116ccf0b3f0229ef5a8025ae7d65b8b7b84b99302a6478",
"ruleSchema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "f829ee65ef599880aa38abf97023dba0614c079ad6f328ab4477d82ec97e4760"
},
"baseRatioComponents": {
"appliesToActiveTariff": false,
"components": [
{
"groupRatioApplied": true,
"selectedSourceField": "model_ratio",
"sourceRatio": "1.25",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "400000",
"usageKind": "TEXT_INPUT"
},
{
"groupRatioApplied": true,
"selectedSourceField": "completion_ratio",
"sourceRatio": "6",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "2400000",
"usageKind": "TEXT_OUTPUT"
},
{
"groupRatioApplied": true,
"selectedSourceField": "cache_ratio",
"sourceDisplayConfigured": true,
"sourceRatio": "0.12",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "48000",
"usageKind": "CACHE_READ"
},
{
"groupRatioApplied": true,
"selectedSourceField": "create_cache_ratio",
"sourceDisplayConfigured": true,
"sourceRatio": "1.2",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "480000",
"usageKind": "CACHE_WRITE_5M"
},
{
"groupRatioApplied": true,
"selectedSourceField": "cache_write_1h_ratio_effective",
"sourceDisplayConfigured": true,
"sourceRatio": "1.92",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "768000",
"usageKind": "CACHE_WRITE_1H"
}
],
"role": "INACTIVE_SOURCE_BASE_DISPLAY_NOT_EXPRESSION_PRICE"
},
"billingUnit": "per_token",
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"consumerRequirements": [
"HONOR_ACTIVE_PRICING_MODE_AND_KEEP_COMPLETE_EXPRESSION_BRANCHES",
"DO_NOT_ADD_INACTIVE_BASE_RATIO_COMPONENTS_TO_EXPRESSION_PRICES",
"DISPLAY_CACHE_WRITE_5M_AND_1H_AS_DISTINCT_COMPONENTS",
"DISPLAY_SOURCE_DEFAULT_VS_CONFIGURED_CACHE_RATIO_PROVENANCE",
"KEEP_IMAGE_SECOND_AND_TOKEN_UNITS_SEPARATE",
"DISPLAY_DURATION_DEFAULT_AND_MAX_WITHOUT_MULTIPLYING_UNIT_PRICE",
"OFFICIAL_REFERENCE_IS_NOT_THE_PROVIDER_TARIFF_OR_INDEPENDENT_VERIFICATION",
"PRESERVE_ORIGINAL_GROUP_CONDITIONS_AND_OBSERVATION_TIME",
"NO_CASH_ELIGIBILITY_QUALITY_OR_UPSTREAM_STATUS_UPGRADE"
],
"contentSha256": "8866269fbbbe6fadffa04f197e01a56279ad53b38d0fd698c5130fc97ecf8984",
"declaredGroup": "Codex-Pro",
"eligibilityVerified": false,
"evidenceRefs": [
{
"documentId": "38baec2e6d9bfd0eb44f4c2be11ee8bb297b84368aa078f8d217137df489c40b",
"observedAt": "2026-10-03T23:50:07.193Z",
"sha256": "d38d162f1a8ba64f9c34f1afd52270d13cfaa0e4395e423e5924d7a578392c3c",
"url": "https://fanrenapi.com/"
},
{
"sha256": "3ff228737e5aeb7f864bca4ec1a274e44cd024614d348c9fb766b4049d226a40",
"url": "https://fanrenapi.com/static/js/index.c1e5afa94a.js"
},
{
"basePriceCharacterRange": [
52800,
60000
],
"groupPriceCharacterRange": [
60900,
67900
],
"semanticModules": [
24425,
36832
],
"sha256": "cae7d605ad51af46709b09a4d33d85f26cc7e97ede5d8224e27dae98bc22dac2",
"url": "https://fanrenapi.com/static/js/async/9630.b1841463c6.js"
}
],
"groupRatio": "0.32",
"kind": "SOURCE_BOUND_BILLING_UNIT_AND_CACHE_CONTEXT",
"modelName": "codex-auto-review",
"officialReference": {
"grantsCashQualification": false,
"independentlyVerified": false,
"role": "SOURCE_DECLARED_REFERENCE_NOT_PROVIDER_EFFECTIVE_PRICE",
"usedForProviderPrice": false,
"value": null
},
"parserVersion": "grandet.source-fanren-pricing/1.5.3",
"qualityScore": null,
"renewsObservationTime": false,
"schema": "grandet.source-fanren-billing-context/v1",
"selectedCacheRatios": [
{
"selectedRatio": "0.12",
"selectedSourceField": "cache_ratio",
"sourceConfigured": true,
"sourceDisplayConfigured": true,
"sourceValues": {
"cache_ratio": "0.12",
"cache_ratio_configured": true,
"cache_ratio_effective": "0.12"
},
"usageKind": "CACHE_READ"
},
{
"selectedRatio": "1.2",
"selectedSourceField": "create_cache_ratio",
"sourceConfigured": true,
"sourceDisplayConfigured": true,
"sourceValues": {
"create_cache_ratio": "1.2",
"create_cache_ratio_configured": true,
"create_cache_ratio_effective": "1.2"
},
"usageKind": "CACHE_WRITE_5M"
},
{
"fallback5mSelection": {
"selectedRatio": "1.2",
"selectedSourceField": "create_cache_ratio",
"sourceConfigured": true,
"sourceDisplayConfigured": true,
"sourceValues": {
"create_cache_ratio": "1.2",
"create_cache_ratio_configured": true,
"create_cache_ratio_effective": "1.2"
},
"usageKind": "CACHE_WRITE_5M"
},
"selectedRatio": "1.92",
"selectedSourceField": "cache_write_1h_ratio_effective",
"sourceConfigured": true,
"sourceDisplayConfigured": true,
"sourceValues": {
"cache_write_1h_ratio_effective": "1.92"
},
"usageKind": "CACHE_WRITE_1H"
}
],
"sourceBinding": {
"declaredGroup": "Codex-Pro",
"declaredGroupRatio": "0.32",
"observedAt": "2026-10-03T23:49:47.997Z",
"originalBodySha256": "4025d3ddc1a30f23d0e618d7b2ca616c4c530ca70b2572cb8daf77253bbc5235",
"rawDeclaredFieldsSha256": "d120f764c985717f497043d028b2580c565d7414eb34a1bff71eebb29ba913a3",
"rowIndex": 25,
"rowJsonPointer": "/data/25",
"snapshotId": "1ff28207812a42bd21b56702fc371199b2da9cb50dd4fbf07622986d8bf6fef8",
"sourceDocumentProjectionSha256": "35638b65d91d15a2234e3ac49cff4f3115a03224f345bbc0f0439e758268fac0",
"sourceGlobalProjectionSha256": "3dae277bb5a9f89db7b02fc1ddcf12297967afda21a4f4c04c7a1dc9c7bc7e76",
"sourceId": "fanrenapi.com",
"transactionId": "fa284e1759a2a10cf5796d647ec87d9d51dc2f3d9c7c729018be5bc2a17a7c08"
},
"sourceId": "fanrenapi.com",
"sourcePricingFields": {
"billing_expr": "len <= 272000 ? tier(\"standard\", p * 2.5 + c * 15 + cr * 0.25) : tier(\"long_context\", p * 5 + c * 22.5 + cr * 0.5)",
"billing_mode": "tiered_expr",
"billing_unit": "per_token",
"cache_ratio": "0.12",
"cache_ratio_configured": true,
"cache_ratio_effective": "0.12",
"cache_write_1h_ratio_effective": "1.92",
"completion_ratio": 6,
"create_cache_ratio": "1.2",
"create_cache_ratio_configured": true,
"create_cache_ratio_effective": "1.2",
"model_name": "codex-auto-review",
"model_price": 0,
"model_ratio": "1.25",
"quota_type": 0
},
"upstreamVerified": false,
"usageConstraints": null
}
],
"parserFamily": "NEW_API_PUBLIC_PRICING",
"parserVersion": "grandet.new-api-public-pricing/1.5.3",
"partialPriceComponents": null,
"perRequestPrice": null,
"planId": "declared-group:Codex-Pro",
"pricePairSourceRowId": "cf4fc4e97d195f0fc59ceb4747f66fa3b02185dd2ae1b208d0de8cf4a9477ca0",
"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"
},
{
"adapterVersion": "grandet.source-fanren-pricing/1.5.3",
"cashQualification": "NOT_EVALUATED",
"clientEvidence": [
{
"documentId": "38baec2e6d9bfd0eb44f4c2be11ee8bb297b84368aa078f8d217137df489c40b",
"observedAt": "2026-10-03T23:50:07.193Z",
"sha256": "d38d162f1a8ba64f9c34f1afd52270d13cfaa0e4395e423e5924d7a578392c3c",
"url": "https://fanrenapi.com/"
},
{
"sha256": "3ff228737e5aeb7f864bca4ec1a274e44cd024614d348c9fb766b4049d226a40",
"url": "https://fanrenapi.com/static/js/index.c1e5afa94a.js"
},
{
"basePriceCharacterRange": [
52800,
60000
],
"groupPriceCharacterRange": [
60900,
67900
],
"semanticModules": [
24425,
36832
],
"sha256": "cae7d605ad51af46709b09a4d33d85f26cc7e97ede5d8224e27dae98bc22dac2",
"url": "https://fanrenapi.com/static/js/async/9630.b1841463c6.js"
}
],
"contextContentSha256": "8866269fbbbe6fadffa04f197e01a56279ad53b38d0fd698c5130fc97ecf8984",
"kind": "SOURCE_BOUND_FANREN_UNIT_CACHE_CONTEXT",
"sourceBinding": {
"declaredGroup": "Codex-Pro",
"declaredGroupRatio": "0.32",
"observedAt": "2026-10-03T23:49:47.997Z",
"originalBodySha256": "4025d3ddc1a30f23d0e618d7b2ca616c4c530ca70b2572cb8daf77253bbc5235",
"rawDeclaredFieldsSha256": "d120f764c985717f497043d028b2580c565d7414eb34a1bff71eebb29ba913a3",
"rowIndex": 25,
"rowJsonPointer": "/data/25",
"snapshotId": "1ff28207812a42bd21b56702fc371199b2da9cb50dd4fbf07622986d8bf6fef8",
"sourceDocumentProjectionSha256": "35638b65d91d15a2234e3ac49cff4f3115a03224f345bbc0f0439e758268fac0",
"sourceGlobalProjectionSha256": "3dae277bb5a9f89db7b02fc1ddcf12297967afda21a4f4c04c7a1dc9c7bc7e76",
"sourceId": "fanrenapi.com",
"transactionId": "fa284e1759a2a10cf5796d647ec87d9d51dc2f3d9c7c729018be5bc2a17a7c08"
}
}
],
"pricingResolution": "STRUCTURED_RULE",
"pricingRule": {
"branches": [
{
"components": [
{
"coefficient": "15",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "2.5",
"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": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "22.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "5",
"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
}
],
"perRequestPrice": null,
"tierName": "long_context",
"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": {
"arguments": [
{
"type": "string",
"value": "long_context"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "22.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.5"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "standard"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "2.5"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "15"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.25"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [],
"taskUsageSchema": null,
"usageVariables": [
"c",
"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.32",
"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": "63712044a894ea577b116ccf0b3f0229ef5a8025ae7d65b8b7b84b99302a6478",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "f829ee65ef599880aa38abf97023dba0614c079ad6f328ab4477d82ec97e4760",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "eb768d9ba2f2089971cf4e36824eac9c52b3c9ab8982d612e4cc9ef35e2b3f5d",
"quoteOrdinal": 93,
"snapshotId": "1ff28207812a42bd21b56702fc371199b2da9cb50dd4fbf07622986d8bf6fef8",
"sourceDomain": "fanrenapi.com",
"sourceId": "fanrenapi.com",
"sourceRowId": "cf4fc4e97d195f0fc59ceb4747f66fa3b02185dd2ae1b208d0de8cf4a9477ca0",
"transactionId": "fa284e1759a2a10cf5796d647ec87d9d51dc2f3d9c7c729018be5bc2a17a7c08",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}