claude-code· Public API
Complete conditional rule · expand for every branch and condition
All prices, conditions and source evidence
claude-opus-4-6
api.nekoapi.com · Public API declaration
Plan / group: declared-group:claude-code · claude-code
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
- 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": [],
"costExpression": {
"divisor": "1000000",
"evaluation": "SYMBOLIC_ONLY",
"expressionAST": {
"left": {
"left": {
"left": {
"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": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "6.25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc1h",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"type": "binary"
},
"operator": "*",
"right": {
"condition": {
"arguments": [
{
"arguments": [
{
"type": "string",
"value": "anthropic-beta"
}
],
"function": "header",
"type": "call"
},
{
"type": "string",
"value": "fast-mode-2026-02-01"
}
],
"function": "has",
"type": "call"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "1"
},
"whenTrue": {
"type": "number",
"value": "6"
}
},
"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": "base"
},
{
"left": {
"left": {
"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": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "6.25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc1h",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"operator": "*",
"right": {
"condition": {
"arguments": [
{
"arguments": [
{
"type": "string",
"value": "anthropic-beta"
}
],
"function": "header",
"type": "call"
},
{
"type": "string",
"value": "fast-mode-2026-02-01"
}
],
"function": "has",
"type": "call"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "1"
},
"whenTrue": {
"type": "number",
"value": "6"
}
},
"type": "binary"
},
"dependencies": {
"quantities": [],
"requestContext": [
{
"argument": "anthropic-beta",
"function": "header"
}
],
"taskUsageSchema": null,
"usageVariables": [
"c",
"cc",
"cc1h",
"cr",
"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": "1.3",
"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",
"CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
],
"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": "58bad3e57b35285cb7bd05d83cfed45d1fc0e89f1d16fcf79f002b1f3f0bd933",
"schema": "grandet.public-pricing-rule/v2",
"sourceExpressionSha256": "0ccc5cb8b97bbcdab1902c489fecc9ba3676633281dc0dda359f082fb7e7b0a7",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_TOTAL"
]
}Complete declared conditions
{
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"anthropic",
"openai"
],
"declaredGroupDescription": "Claude Code专用 | Claude Code Only",
"declaredGroupRatio": "1.3",
"eligibility": {
"declaredGroup": "claude-code",
"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:44:09.731000Z",
"firstObservedAt": "2026-10-03T23:44:13.993Z",
"maximumQuoteAgeDays": 7,
"observedAt": "2026-10-03T23:44:13.993Z",
"snapshotId": "709d2bdc03e1ddafd7486618f00f35c7ed720e47fa46b05bab43f15120fee0c3",
"sourceId": "api.nekoapi.com",
"transactionId": "d10c299ab58d231e9bf036300fa6c7ef15e7bc0ab7efdb8a7dad39a226ad08b4"
}Complete public declaration and source identity
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "65fb8b14740bb9717866bddb1cb64b163bdf3332a70b90d5af3effeda7f8af6c",
"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": [
"anthropic",
"openai"
],
"declaredGroupDescription": "Claude Code专用 | Claude Code Only",
"declaredGroupRatio": "1.3",
"eligibility": {
"declaredGroup": "claude-code",
"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": "claude-code",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [],
"freshUntil": "2026-10-10T23:44:09.731000Z",
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "claude-opus-4-6",
"multimodalPricing": null,
"observedAt": "2026-10-03T23:44:13.993Z",
"outputPrice": null,
"parseRevisionId": "ae9fbdf0e433ca5a18d193854774543f7626ae8364876c9d51d56b2c1636e529",
"parsedPricingDeclarations": null,
"parserFamily": "NEW_API_PUBLIC_PRICING",
"parserVersion": "grandet.new-api-public-pricing/1.5.1",
"partialPriceComponents": null,
"perRequestPrice": null,
"planId": "declared-group:claude-code",
"pricePairSourceRowId": "b759d0bad12ebacac63b086caaca779cc1e9941c00a042a51f2f1e9bc3610407",
"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": [],
"costExpression": {
"divisor": "1000000",
"evaluation": "SYMBOLIC_ONLY",
"expressionAST": {
"left": {
"left": {
"left": {
"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": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "6.25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc1h",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"type": "binary"
},
"operator": "*",
"right": {
"condition": {
"arguments": [
{
"arguments": [
{
"type": "string",
"value": "anthropic-beta"
}
],
"function": "header",
"type": "call"
},
{
"type": "string",
"value": "fast-mode-2026-02-01"
}
],
"function": "has",
"type": "call"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "1"
},
"whenTrue": {
"type": "number",
"value": "6"
}
},
"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": "base"
},
{
"left": {
"left": {
"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": "25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "6.25"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cc1h",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"operator": "*",
"right": {
"condition": {
"arguments": [
{
"arguments": [
{
"type": "string",
"value": "anthropic-beta"
}
],
"function": "header",
"type": "call"
},
{
"type": "string",
"value": "fast-mode-2026-02-01"
}
],
"function": "has",
"type": "call"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "1"
},
"whenTrue": {
"type": "number",
"value": "6"
}
},
"type": "binary"
},
"dependencies": {
"quantities": [],
"requestContext": [
{
"argument": "anthropic-beta",
"function": "header"
}
],
"taskUsageSchema": null,
"usageVariables": [
"c",
"cc",
"cc1h",
"cr",
"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": "1.3",
"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",
"CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
],
"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": "58bad3e57b35285cb7bd05d83cfed45d1fc0e89f1d16fcf79f002b1f3f0bd933",
"schema": "grandet.public-pricing-rule/v2",
"sourceExpressionSha256": "0ccc5cb8b97bbcdab1902c489fecc9ba3676633281dc0dda359f082fb7e7b0a7",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_TOTAL"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "218e6c0e3d90ebfcae8e28a7f4d9c81e6648395548b9fc1b6dee84d518cca341",
"quoteOrdinal": 18,
"snapshotId": "709d2bdc03e1ddafd7486618f00f35c7ed720e47fa46b05bab43f15120fee0c3",
"sourceDomain": "api.nekoapi.com",
"sourceId": "api.nekoapi.com",
"sourceRowId": "b759d0bad12ebacac63b086caaca779cc1e9941c00a042a51f2f1e9bc3610407",
"transactionId": "d10c299ab58d231e9bf036300fa6c7ef15e7bc0ab7efdb8a7dad39a226ad08b4",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}