国产模型· Public API
Price depends on conditions · expand to see every case and condition
All prices, conditions and raw data
deepseek-v4-flash
claudecn.top · Price published through the provider’s API
Plan / group: declared-group:国产模型 · 国产模型
Recently collected price · not real-time
Collected: · API data cached until: · Treated as current until (not including):
This is the price the provider publishes. Whether you can buy at this price, whose model is really behind it and how good the service is are not verified.
Pricing unit: Units for each item are in the full pricing rule
The price is calculated from the full rule and conditions below.
- Input
- Not stated or not read
- Output
- Not stated or not read
- Per request
- Not stated or not read
- Cache read
- Not stated or not read
- Cache write
- Not stated or not read
Full pricing rule (every case, unit and condition)
{
"branches": [
{
"components": [
{
"coefficient": "1.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.006",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "0.3",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "peak",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "0.6",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.003",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "0.15",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "off_peak",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "off_peak"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.15"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.003"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.6"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "peak"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.3"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.006"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.2"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [
{
"argument": "UTC",
"function": "hour"
},
{
"argument": "UTC",
"function": "weekday"
}
],
"taskUsageSchema": null,
"usageVariables": [
"c",
"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": "0.9",
"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",
"CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
],
"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": "e3c9f6d6075906ee60204c1ce2a66e522b4653feb3386e11e3ad743764079bcb",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "4f95f2455c60f1923b498f88ef8c17dfc50f83d6afe10c9b604733d9c3d2e793",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
}All conditions the provider states
{
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai"
],
"declaredGroupDescription": "国产模型99.9%SLA,超高可用性",
"declaredGroupRatio": "0.9",
"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"
}
}Data used to check whether it is out of date
{
"cacheFreshUntil": "2026-10-17T07:23:47.989000Z",
"firstObservedAt": "2026-10-10T07:23:49.372Z",
"maximumQuoteAgeDays": 7,
"observedAt": "2026-10-10T07:23:49.372Z",
"snapshotId": "987e28ee28214a60a91ab47e8d76b088b2a0c62ebdc3e6c232461cf31cc75f5b",
"sourceId": "claudecn.top",
"transactionId": "e984ca4333e96c3d005d6ddb922bfbad9e2684c726092341853a985212051769"
}Full raw record for this price
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "b931e59fe173a39bbd42e938e5c9c507352dca2284d0e1ee0f3a724d620dbf00",
"cacheReadPrice": null,
"cacheWritePrice": null,
"captureParserVersion": "grandet.new-api-public-pricing/1.7.0",
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"classification": "STRUCTURED_PRICING_RULE",
"conditions": {
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai"
],
"declaredGroupDescription": "国产模型99.9%SLA,超高可用性",
"declaredGroupRatio": "0.9",
"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": [],
"freshUntil": "2026-10-17T07:23:47.989000Z",
"groupOfferingFlags": [],
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "deepseek-v4-flash",
"multimodalPricing": null,
"observedAt": "2026-10-10T07:23:49.372Z",
"offerKey": "3c63cc056759d6a48411d302460c9b23e48127c99d72d693fda2aad5d25a20ca",
"outputPrice": null,
"parseRevisionId": null,
"parsedPricingDeclarations": null,
"parserFamily": "NEW_API_PUBLIC_PRICING",
"parserVersion": "grandet.new-api-public-pricing/1.7.0",
"partialPriceComponents": null,
"perRequestPrice": null,
"planId": "declared-group:国产模型",
"pricePairSourceRowId": "25959486075158e3f3eef8c0eeb880fe63f6e4b12c6c7dfa9e702d4a34fd1a84",
"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"
},
{
"adapterEvidence": {
"adapterId": "group-display",
"bindingId": "group-display/claudecn.top",
"cashQualification": "NOT_EVALUATED",
"declaredGroup": "国产模型",
"evidenceFile": "adapter-group-display.json",
"evidenceFileSha256": "bd9a1a92de1d8379249858af2d2fc4b38b4e625ae5f1465e15ff853a44f0d38f",
"exactPinMatched": false,
"humanExtractionReview": "NOT_PERFORMED",
"kind": "ADAPTER_EVIDENCE_REAPPLIED_BY_SEMANTIC_KEY",
"observedClientAssetKeySha256": "4811ca35fac977b707b700b8dfa84aecfe8f073b7eef8fe4086b7ec9602265ab",
"observedHomepageSha256": "8b2ac2541f7262d0a5ba81ad5c39e2d63e53b3b7548798600f000a4b5b134a03",
"renewsObservationTime": false,
"reviewedAt": "2026-10-04",
"schema": "grandet.adapter-evidence-decision/v1",
"semanticKey": {
"assetPaths": [
"/_next/static/chunks/4908dfddd2137d59.js",
"/_next/static/chunks/614c52151cd3171a.js"
],
"kind": "CLIENT_SCRIPT_ASSETS/v1",
"sha256": "ff8031d74f0bad9467073fb1dd708ca21eeaec3be03e015bb148717b0e026154"
},
"sourceId": "claudecn.top",
"structuralPredicates": [
"ANONYMOUS_PUBLIC_SCOPE",
"PUBLIC_GROUP_MAPS",
"GLOBAL_KEYS_SUBSET",
"GLOBAL_KEYS_PRESENT",
"GROUP_DISPLAY_FAMILY_SHAPE"
]
},
"adapterVersion": "grandet.source-group-display/1.5.2",
"additionalMultiplierAppliedByAdapter": false,
"cashQualification": "NOT_EVALUATED",
"clientEvidence": [
{
"sha256": "8628a78a2bf53535638213dced8f1eebad8c51aa0122dee0c945ce4c5087d717",
"url": "https://claudecn.top/_next/static/chunks/4908dfddd2137d59.js"
},
{
"sha256": "583fc15b0b44f63e5298dcdcd1a14482bbc2eb37fb062b67afce3e821ab8b0c8",
"url": "https://claudecn.top/_next/static/chunks/614c52151cd3171a.js"
}
],
"declaredBaseGroupRatio": "0.9",
"declaredEffectiveGroupRatio": "0.9",
"declaredGroup": "国产模型",
"declaredResponseUserGroup": null,
"effectiveRatioIsAlreadySelectedBySource": true,
"eligibilityVerified": false,
"kind": "SOURCE_BOUND_EFFECTIVE_GROUP_RATE_DISPLAY",
"membershipAlternatives": [],
"originalHtmlDocumentId": "ca33e43e68af93316791ad1bde7aacb4308871d1f18de5cdec93b0bbcab13f74",
"originalHtmlSha256": "edeb7536f26527c606b75c927dadc6192d85dd2d0deaf2974b7d6b825add5e4b",
"qualityScore": null,
"renewsObservationTime": false,
"researchSha256": "4a99ebcd033837453c00b22a2e574f4ec2fbd50ac5c6e27535604a87e3cdf8d9",
"retainedGlobalDeclarations": {
"base_group_ratio": {
"sourceValueRetainedIn": "configuration.declaredFields.base_group_ratio",
"sourceValueSha256": "406d6c0a641d649d329a566cd221f328ef6af0b8e05b7fbc111b2ebb77f1879a"
},
"group_promotions": {
"sourceValueRetainedIn": "configuration.declaredFields.group_promotions",
"sourceValueSha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"
},
"task_model_schemas": {
"sourceValueRetainedIn": "configuration.declaredFields.task_model_schemas",
"sourceValueSha256": "ec32875deffcae4e07191b61729e9f210f510c6a9daead93d1cf00f901ec09b1"
},
"task_usage_schemas": {
"sourceValueRetainedIn": "configuration.declaredFields.task_usage_schemas",
"sourceValueSha256": "5fdb39acffb01f789971a9c7908658c925e336ad8786a6737d642c2e5276c4bd"
}
},
"sourceGlobalProjectionSha256": "4a08e88ebf3f9cceda61ecafa31f8c3fb2847235be3e56ea933c05b33586fe99",
"sourceId": "claudecn.top",
"sourceObservationScope": "ORIGINAL_PUBLIC_ANONYMOUS_RESPONSE",
"sourceValueRetainedIn": "configuration.declaredFields",
"taskSchemaSelection": {
"endpointFamiliesReviewed": [
"openai"
],
"exactModelKeyPresent": false,
"rowTaskUsageSchemaPresent": false,
"taskSchemaGlobalBodiesRetained": true
},
"upstreamVerified": false
}
],
"pricingResolution": "STRUCTURED_RULE",
"pricingRule": {
"branches": [
{
"components": [
{
"coefficient": "1.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.006",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "0.3",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "peak",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "0.6",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.003",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "0.15",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "off_peak",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "weekday",
"type": "call"
},
"operator": "<=",
"right": {
"type": "number",
"value": "5"
},
"type": "binary"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "1"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "4"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": ">=",
"right": {
"type": "number",
"value": "6"
},
"type": "binary"
},
"operator": "&&",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "UTC"
}
],
"function": "hour",
"type": "call"
},
"operator": "<",
"right": {
"type": "number",
"value": "10"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "off_peak"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.15"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.003"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.6"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "peak"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.3"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "0.006"
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"type": "number",
"value": "1.2"
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [
{
"argument": "UTC",
"function": "hour"
},
{
"argument": "UTC",
"function": "weekday"
}
],
"taskUsageSchema": null,
"usageVariables": [
"c",
"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": "0.9",
"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",
"CONDITIONS_RETAINED_NOT_EVALUATED_WITH_REQUEST_OR_PROVIDER_CLOCK"
],
"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": "e3c9f6d6075906ee60204c1ce2a66e522b4653feb3386e11e3ad743764079bcb",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "4f95f2455c60f1923b498f88ef8c17dfc50f83d6afe10c9b604733d9c3d2e793",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "ec8e1c9a1179646d20e9afba257b91dbd64064f1f0c5e8543d5700aba4e65acc",
"quoteOrdinal": 318,
"semanticFlags": [],
"snapshotId": "987e28ee28214a60a91ab47e8d76b088b2a0c62ebdc3e6c232461cf31cc75f5b",
"sourceDomain": "claudecn.top",
"sourceId": "claudecn.top",
"sourceRowId": "25959486075158e3f3eef8c0eeb880fe63f6e4b12c6c7dfa9e702d4a34fd1a84",
"transactionId": "e984ca4333e96c3d005d6ddb922bfbad9e2684c726092341853a985212051769",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}