Grok· Public API
Complete conditional rule · expand for every branch and condition
All prices, conditions and source evidence
grok-4.7
fanrenapi.com · Public API declaration
Plan / group: declared-group:Grok · Grok
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
Complete pricing rule; no single minimum represents this declaration. · STRUCTURED_RULE
Billing and cache terms
The complete formula below determines the tariff; base ratios and cache reference values are not added again.
The source’s “official price” is a provider-declared reference, not this plan’s tariff.
Complete terms and source evidence
{
"activePricing": {
"mode": "BILLING_EXPRESSION",
"ruleContentSha256": "75226583fe5e69e0c0dbd0e2a94b98d7af6d73647a499d86c93ac9c63f336d5f",
"ruleSchema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "f3a40b682707792b595a758ca8bc0b20017750ca23dd26c2c8cbeb778613c295"
},
"baseRatioComponents": {
"appliesToActiveTariff": false,
"components": [
{
"groupRatioApplied": true,
"selectedSourceField": "model_ratio",
"sourceRatio": "37.5",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "3750000",
"usageKind": "TEXT_INPUT"
},
{
"groupRatioApplied": true,
"selectedSourceField": "completion_ratio",
"sourceRatio": "1",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "3750000",
"usageKind": "TEXT_OUTPUT"
},
{
"groupRatioApplied": true,
"selectedSourceField": "cache_ratio_effective",
"sourceDisplayConfigured": false,
"sourceRatio": "1",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "3750000",
"usageKind": "CACHE_READ"
},
{
"groupRatioApplied": true,
"selectedSourceField": "create_cache_ratio_effective",
"sourceDisplayConfigured": false,
"sourceRatio": "1.25",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "4687500",
"usageKind": "CACHE_WRITE_5M"
},
{
"groupRatioApplied": true,
"selectedSourceField": "cache_write_1h_ratio_effective",
"sourceDisplayConfigured": false,
"sourceRatio": "2",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "7500000",
"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": "7c87546cca80811dd462dae90d741055e065980909972e069615312b8ef016c9",
"declaredGroup": "Grok",
"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.1",
"kind": "SOURCE_BOUND_BILLING_UNIT_AND_CACHE_CONTEXT",
"modelName": "grok-4.7",
"officialReference": {
"grantsCashQualification": false,
"independentlyVerified": false,
"role": "SOURCE_DECLARED_REFERENCE_NOT_PROVIDER_EFFECTIVE_PRICE",
"usedForProviderPrice": false,
"value": {
"currency": "USD",
"mode": "matrix",
"retrieved_at": "2026-09-22T05:21:28Z",
"source_url": "https://docs.x.ai/developers/models",
"status": "confirmed",
"tiers": [
{
"cache_read": "0.5",
"context_label": "short",
"input": 2,
"max_context_tokens": 200000,
"output": 6,
"service_tier": "standard"
},
{
"cache_read": 1,
"context_label": "long",
"input": 4,
"max_context_tokens": 500000,
"output": 12,
"service_tier": "standard"
},
{
"cache_read": "0.55",
"context_label": "short",
"input": "2.2",
"max_context_tokens": 200000,
"output": "6.6",
"service_tier": "standard"
},
{
"cache_read": "1.1",
"context_label": "long",
"input": "4.4",
"max_context_tokens": 500000,
"output": "13.2",
"service_tier": "standard"
}
],
"unit": "per_million_tokens"
}
},
"parserVersion": "grandet.source-fanren-pricing/1.5.3",
"qualityScore": null,
"renewsObservationTime": false,
"schema": "grandet.source-fanren-billing-context/v1",
"selectedCacheRatios": [
{
"selectedRatio": "1",
"selectedSourceField": "cache_ratio_effective",
"sourceConfigured": false,
"sourceDisplayConfigured": false,
"sourceValues": {
"cache_ratio_configured": false,
"cache_ratio_effective": 1
},
"usageKind": "CACHE_READ"
},
{
"selectedRatio": "1.25",
"selectedSourceField": "create_cache_ratio_effective",
"sourceConfigured": false,
"sourceDisplayConfigured": false,
"sourceValues": {
"create_cache_ratio_configured": false,
"create_cache_ratio_effective": "1.25"
},
"usageKind": "CACHE_WRITE_5M"
},
{
"fallback5mSelection": {
"selectedRatio": "1.25",
"selectedSourceField": "create_cache_ratio_effective",
"sourceConfigured": false,
"sourceDisplayConfigured": false,
"sourceValues": {
"create_cache_ratio_configured": false,
"create_cache_ratio_effective": "1.25"
},
"usageKind": "CACHE_WRITE_5M"
},
"selectedRatio": "2",
"selectedSourceField": "cache_write_1h_ratio_effective",
"sourceConfigured": false,
"sourceDisplayConfigured": false,
"sourceValues": {
"cache_write_1h_ratio_effective": 2
},
"usageKind": "CACHE_WRITE_1H"
}
],
"sourceBinding": {
"declaredGroup": "Grok",
"declaredGroupRatio": "0.1",
"observedAt": "2026-10-03T23:49:47.997Z",
"originalBodySha256": "4025d3ddc1a30f23d0e618d7b2ca616c4c530ca70b2572cb8daf77253bbc5235",
"rawDeclaredFieldsSha256": "73e9a423596f80bc8629d3dc208bdf5e6ee8a3638da023dc171f194eac885998",
"rowIndex": 26,
"rowJsonPointer": "/data/26",
"snapshotId": "1ff28207812a42bd21b56702fc371199b2da9cb50dd4fbf07622986d8bf6fef8",
"sourceDocumentProjectionSha256": "35638b65d91d15a2234e3ac49cff4f3115a03224f345bbc0f0439e758268fac0",
"sourceGlobalProjectionSha256": "3dae277bb5a9f89db7b02fc1ddcf12297967afda21a4f4c04c7a1dc9c7bc7e76",
"sourceId": "fanrenapi.com",
"transactionId": "fa284e1759a2a10cf5796d647ec87d9d51dc2f3d9c7c729018be5bc2a17a7c08"
},
"sourceId": "fanrenapi.com",
"sourcePricingFields": {
"billing_expr": "len <= 200000 ? tier(\"standard_short\", p * 2.2 + c * 6.6 + cr * 0.55) : tier(\"standard_long\", p * 4.4 + c * 13.2 + cr * 1.1)",
"billing_mode": "tiered_expr",
"billing_unit": "per_token",
"cache_ratio_configured": false,
"cache_ratio_effective": 1,
"cache_write_1h_ratio_effective": 2,
"completion_ratio": 1,
"create_cache_ratio_configured": false,
"create_cache_ratio_effective": "1.25",
"model_name": "grok-4.7",
"model_price": 0,
"model_ratio": "37.5",
"official_pricing": {
"currency": "USD",
"mode": "matrix",
"retrieved_at": "2026-09-22T05:21:28Z",
"source_url": "https://docs.x.ai/developers/models",
"status": "confirmed",
"tiers": [
{
"cache_read": "0.5",
"context_label": "short",
"input": 2,
"max_context_tokens": 200000,
"output": 6,
"service_tier": "standard"
},
{
"cache_read": 1,
"context_label": "long",
"input": 4,
"max_context_tokens": 500000,
"output": 12,
"service_tier": "standard"
},
{
"cache_read": "0.55",
"context_label": "short",
"input": "2.2",
"max_context_tokens": 200000,
"output": "6.6",
"service_tier": "standard"
},
{
"cache_read": "1.1",
"context_label": "long",
"input": "4.4",
"max_context_tokens": 500000,
"output": "13.2",
"service_tier": "standard"
}
],
"unit": "per_million_tokens"
},
"quota_type": 0
},
"upstreamVerified": false,
"usageConstraints": null
}- Input
- Not provided / unresolved
- Output
- Not provided / unresolved
- Per request
- Not provided / unresolved
- Cache read
- Not provided / unresolved
- Cache write
- Not provided / unresolved
Complete pricing rule · all branches, units and conditions
{
"branches": [
{
"components": [
{
"coefficient": "6.6",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.55",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "2.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "200000"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "standard_short",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "13.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "1.1",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "4.4",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "200000"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "standard_long",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "200000"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "standard_long"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "4.4"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "13.2"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.1"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "standard_short"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "2.2"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "6.6"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.55"
},
"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.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": "75226583fe5e69e0c0dbd0e2a94b98d7af6d73647a499d86c93ac9c63f336d5f",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "f3a40b682707792b595a758ca8bc0b20017750ca23dd26c2c8cbeb778613c295",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
}Complete declared conditions
{
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai",
"openai-response"
],
"declaredGroupDescription": "Grok 全系列",
"declaredGroupRatio": "0.1",
"eligibility": {
"declaredGroup": "Grok",
"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: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"
}Complete public declaration and source identity
{
"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",
"openai-response"
],
"declaredGroupDescription": "Grok 全系列",
"declaredGroupRatio": "0.1",
"eligibility": {
"declaredGroup": "Grok",
"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": "Grok",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [],
"freshUntil": "2026-10-10T23:49:46.273000Z",
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "grok-4.7",
"multimodalPricing": null,
"observedAt": "2026-10-03T23:49:47.997Z",
"outputPrice": null,
"parseRevisionId": "d9800b86fb13e1730564ff69cb4503f2c3d457c593ef39fa3071bc4985183807",
"parsedPricingDeclarations": [
{
"activePricing": {
"mode": "BILLING_EXPRESSION",
"ruleContentSha256": "75226583fe5e69e0c0dbd0e2a94b98d7af6d73647a499d86c93ac9c63f336d5f",
"ruleSchema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "f3a40b682707792b595a758ca8bc0b20017750ca23dd26c2c8cbeb778613c295"
},
"baseRatioComponents": {
"appliesToActiveTariff": false,
"components": [
{
"groupRatioApplied": true,
"selectedSourceField": "model_ratio",
"sourceRatio": "37.5",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "3750000",
"usageKind": "TEXT_INPUT"
},
{
"groupRatioApplied": true,
"selectedSourceField": "completion_ratio",
"sourceRatio": "1",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "3750000",
"usageKind": "TEXT_OUTPUT"
},
{
"groupRatioApplied": true,
"selectedSourceField": "cache_ratio_effective",
"sourceDisplayConfigured": false,
"sourceRatio": "1",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "3750000",
"usageKind": "CACHE_READ"
},
{
"groupRatioApplied": true,
"selectedSourceField": "create_cache_ratio_effective",
"sourceDisplayConfigured": false,
"sourceRatio": "1.25",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "4687500",
"usageKind": "CACHE_WRITE_5M"
},
{
"groupRatioApplied": true,
"selectedSourceField": "cache_write_1h_ratio_effective",
"sourceDisplayConfigured": false,
"sourceRatio": "2",
"unit": "PLATFORM_QUOTA_POINTS_PER_MILLION_TOKENS",
"unitPrice": "7500000",
"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": "7c87546cca80811dd462dae90d741055e065980909972e069615312b8ef016c9",
"declaredGroup": "Grok",
"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.1",
"kind": "SOURCE_BOUND_BILLING_UNIT_AND_CACHE_CONTEXT",
"modelName": "grok-4.7",
"officialReference": {
"grantsCashQualification": false,
"independentlyVerified": false,
"role": "SOURCE_DECLARED_REFERENCE_NOT_PROVIDER_EFFECTIVE_PRICE",
"usedForProviderPrice": false,
"value": {
"currency": "USD",
"mode": "matrix",
"retrieved_at": "2026-09-22T05:21:28Z",
"source_url": "https://docs.x.ai/developers/models",
"status": "confirmed",
"tiers": [
{
"cache_read": "0.5",
"context_label": "short",
"input": 2,
"max_context_tokens": 200000,
"output": 6,
"service_tier": "standard"
},
{
"cache_read": 1,
"context_label": "long",
"input": 4,
"max_context_tokens": 500000,
"output": 12,
"service_tier": "standard"
},
{
"cache_read": "0.55",
"context_label": "short",
"input": "2.2",
"max_context_tokens": 200000,
"output": "6.6",
"service_tier": "standard"
},
{
"cache_read": "1.1",
"context_label": "long",
"input": "4.4",
"max_context_tokens": 500000,
"output": "13.2",
"service_tier": "standard"
}
],
"unit": "per_million_tokens"
}
},
"parserVersion": "grandet.source-fanren-pricing/1.5.3",
"qualityScore": null,
"renewsObservationTime": false,
"schema": "grandet.source-fanren-billing-context/v1",
"selectedCacheRatios": [
{
"selectedRatio": "1",
"selectedSourceField": "cache_ratio_effective",
"sourceConfigured": false,
"sourceDisplayConfigured": false,
"sourceValues": {
"cache_ratio_configured": false,
"cache_ratio_effective": 1
},
"usageKind": "CACHE_READ"
},
{
"selectedRatio": "1.25",
"selectedSourceField": "create_cache_ratio_effective",
"sourceConfigured": false,
"sourceDisplayConfigured": false,
"sourceValues": {
"create_cache_ratio_configured": false,
"create_cache_ratio_effective": "1.25"
},
"usageKind": "CACHE_WRITE_5M"
},
{
"fallback5mSelection": {
"selectedRatio": "1.25",
"selectedSourceField": "create_cache_ratio_effective",
"sourceConfigured": false,
"sourceDisplayConfigured": false,
"sourceValues": {
"create_cache_ratio_configured": false,
"create_cache_ratio_effective": "1.25"
},
"usageKind": "CACHE_WRITE_5M"
},
"selectedRatio": "2",
"selectedSourceField": "cache_write_1h_ratio_effective",
"sourceConfigured": false,
"sourceDisplayConfigured": false,
"sourceValues": {
"cache_write_1h_ratio_effective": 2
},
"usageKind": "CACHE_WRITE_1H"
}
],
"sourceBinding": {
"declaredGroup": "Grok",
"declaredGroupRatio": "0.1",
"observedAt": "2026-10-03T23:49:47.997Z",
"originalBodySha256": "4025d3ddc1a30f23d0e618d7b2ca616c4c530ca70b2572cb8daf77253bbc5235",
"rawDeclaredFieldsSha256": "73e9a423596f80bc8629d3dc208bdf5e6ee8a3638da023dc171f194eac885998",
"rowIndex": 26,
"rowJsonPointer": "/data/26",
"snapshotId": "1ff28207812a42bd21b56702fc371199b2da9cb50dd4fbf07622986d8bf6fef8",
"sourceDocumentProjectionSha256": "35638b65d91d15a2234e3ac49cff4f3115a03224f345bbc0f0439e758268fac0",
"sourceGlobalProjectionSha256": "3dae277bb5a9f89db7b02fc1ddcf12297967afda21a4f4c04c7a1dc9c7bc7e76",
"sourceId": "fanrenapi.com",
"transactionId": "fa284e1759a2a10cf5796d647ec87d9d51dc2f3d9c7c729018be5bc2a17a7c08"
},
"sourceId": "fanrenapi.com",
"sourcePricingFields": {
"billing_expr": "len <= 200000 ? tier(\"standard_short\", p * 2.2 + c * 6.6 + cr * 0.55) : tier(\"standard_long\", p * 4.4 + c * 13.2 + cr * 1.1)",
"billing_mode": "tiered_expr",
"billing_unit": "per_token",
"cache_ratio_configured": false,
"cache_ratio_effective": 1,
"cache_write_1h_ratio_effective": 2,
"completion_ratio": 1,
"create_cache_ratio_configured": false,
"create_cache_ratio_effective": "1.25",
"model_name": "grok-4.7",
"model_price": 0,
"model_ratio": "37.5",
"official_pricing": {
"currency": "USD",
"mode": "matrix",
"retrieved_at": "2026-09-22T05:21:28Z",
"source_url": "https://docs.x.ai/developers/models",
"status": "confirmed",
"tiers": [
{
"cache_read": "0.5",
"context_label": "short",
"input": 2,
"max_context_tokens": 200000,
"output": 6,
"service_tier": "standard"
},
{
"cache_read": 1,
"context_label": "long",
"input": 4,
"max_context_tokens": 500000,
"output": 12,
"service_tier": "standard"
},
{
"cache_read": "0.55",
"context_label": "short",
"input": "2.2",
"max_context_tokens": 200000,
"output": "6.6",
"service_tier": "standard"
},
{
"cache_read": "1.1",
"context_label": "long",
"input": "4.4",
"max_context_tokens": 500000,
"output": "13.2",
"service_tier": "standard"
}
],
"unit": "per_million_tokens"
},
"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:Grok",
"pricePairSourceRowId": "db5e826c2ee5096afbbb0a56368a4c8398fb9a42bca94deb367e996ead545e19",
"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": "7c87546cca80811dd462dae90d741055e065980909972e069615312b8ef016c9",
"kind": "SOURCE_BOUND_FANREN_UNIT_CACHE_CONTEXT",
"sourceBinding": {
"declaredGroup": "Grok",
"declaredGroupRatio": "0.1",
"observedAt": "2026-10-03T23:49:47.997Z",
"originalBodySha256": "4025d3ddc1a30f23d0e618d7b2ca616c4c530ca70b2572cb8daf77253bbc5235",
"rawDeclaredFieldsSha256": "73e9a423596f80bc8629d3dc208bdf5e6ee8a3638da023dc171f194eac885998",
"rowIndex": 26,
"rowJsonPointer": "/data/26",
"snapshotId": "1ff28207812a42bd21b56702fc371199b2da9cb50dd4fbf07622986d8bf6fef8",
"sourceDocumentProjectionSha256": "35638b65d91d15a2234e3ac49cff4f3115a03224f345bbc0f0439e758268fac0",
"sourceGlobalProjectionSha256": "3dae277bb5a9f89db7b02fc1ddcf12297967afda21a4f4c04c7a1dc9c7bc7e76",
"sourceId": "fanrenapi.com",
"transactionId": "fa284e1759a2a10cf5796d647ec87d9d51dc2f3d9c7c729018be5bc2a17a7c08"
}
}
],
"pricingResolution": "STRUCTURED_RULE",
"pricingRule": {
"branches": [
{
"components": [
{
"coefficient": "6.6",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.55",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "2.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "200000"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "standard_short",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "13.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "1.1",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "4.4",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "200000"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "standard_long",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": "<=",
"right": {
"type": "number",
"value": "200000"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "standard_long"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "4.4"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "13.2"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.1"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "standard_short"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "2.2"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "6.6"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.55"
},
"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.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": "75226583fe5e69e0c0dbd0e2a94b98d7af6d73647a499d86c93ac9c63f336d5f",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "f3a40b682707792b595a758ca8bc0b20017750ca23dd26c2c8cbeb778613c295",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "dc1f29037f91efe970eabd4d1db6fcd169129f5f7637b3ef40249fc4082d79fa",
"quoteOrdinal": 98,
"snapshotId": "1ff28207812a42bd21b56702fc371199b2da9cb50dd4fbf07622986d8bf6fef8",
"sourceDomain": "fanrenapi.com",
"sourceId": "fanrenapi.com",
"sourceRowId": "db5e826c2ee5096afbbb0a56368a4c8398fb9a42bca94deb367e996ead545e19",
"transactionId": "fa284e1759a2a10cf5796d647ec87d9d51dc2f3d9c7c729018be5bc2a17a7c08",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}