VERCEL· Public API
Price depends on conditions · expand to see every case and condition
All prices, conditions and raw data
vercel/spacexai/grok-4.20-non-reasoning
ai.bytonsec.com · Price published through the provider’s API
Plan / group: declared-group:VERCEL · VERCEL
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": "10",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.8",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "10",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.8",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "10",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.8",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "10",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.8",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.2",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "2.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "2.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.2",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "1.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "1.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "2.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "1.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "2.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "1.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "standard"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "1.25"
},
"whenTrue": {
"type": "number",
"value": "2.5"
}
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "2.5"
},
"whenTrue": {
"type": "number",
"value": "5"
}
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "0.2"
},
"whenTrue": {
"type": "number",
"value": "0.4"
}
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "priority"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "2.5"
},
"whenTrue": {
"type": "number",
"value": "5"
}
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "5"
},
"whenTrue": {
"type": "number",
"value": "10"
}
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "0.4"
},
"whenTrue": {
"type": "number",
"value": "0.8"
}
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [
{
"argument": "service_tier",
"function": "param"
}
],
"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": "6",
"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": "65c425df783b96b575d5f6a6a95245657a0f06faff9dc38e07c68d5534d68d07",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "606d940b0aef6dccdb22a48da58495504a388616ad0c286f42ce01b1d755685c",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
}All conditions the provider states
{
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"openai"
],
"declaredGroupDescription": "",
"declaredGroupRatio": 6,
"eligibility": {
"declaredGroup": "VERCEL",
"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:13:29.470000Z",
"firstObservedAt": "2026-10-10T07:13:32.755Z",
"maximumQuoteAgeDays": 7,
"observedAt": "2026-10-10T07:13:32.755Z",
"snapshotId": "7b221fceee6bd1ed72cbcaeeddc0ee4753d7c17dea5c3801b750c0ba4610375d",
"sourceId": "ai.bytonsec.com",
"transactionId": "6444d203665df467eca92178063dcdd4dd8e43d7e716e27adc5e9e7ce0ba59ff"
}Full raw record for this price
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "31a89d29422f7f50f0784be3f0f6ce3b6c161fedbf6b6927cc372f3bda085d39",
"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": "",
"declaredGroupRatio": 6,
"eligibility": {
"declaredGroup": "VERCEL",
"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": "VERCEL",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [],
"freshUntil": "2026-10-17T07:13:29.470000Z",
"groupOfferingFlags": [],
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "vercel/spacexai/grok-4.20-non-reasoning",
"multimodalPricing": null,
"observedAt": "2026-10-10T07:13:32.755Z",
"offerKey": "4427e62118f2ef8a7335587f859ba554317f5b57a82a49cdb9aeff766ada0d9a",
"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:VERCEL",
"pricePairSourceRowId": "82e887e6eb1b084fe5e8ce98d54cf4180297986a5eaee2c83fbc4e92c3d3143f",
"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": [
{
"coefficient": "10",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.8",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "10",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.8",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "10",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.8",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "10",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.8",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "priority",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.2",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "2.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "2.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.2",
"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": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "1.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "1.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "2.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.4",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "1.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": true
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
},
{
"components": [
{
"coefficient": "2.5",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "OUTPUT_BASE",
"usageVariable": "c"
},
{
"coefficient": "0.2",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "CACHE_READ",
"usageVariable": "cr"
},
{
"coefficient": "1.25",
"unit": "DECLARED_USD_PER_MILLION_TOKENS",
"usageKind": "INPUT_BASE",
"usageVariable": "p"
}
],
"pathConditions": [
{
"conditionAST": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
},
{
"conditionAST": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"matches": false
}
],
"perRequestPrice": null,
"tierName": "standard",
"unit": "DECLARED_USD_PER_MILLION_TOKENS"
}
],
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"conditionAST": {
"condition": {
"left": {
"arguments": [
{
"type": "string",
"value": "service_tier"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "priority"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "standard"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "1.25"
},
"whenTrue": {
"type": "number",
"value": "2.5"
}
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "2.5"
},
"whenTrue": {
"type": "number",
"value": "5"
}
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "0.2"
},
"whenTrue": {
"type": "number",
"value": "0.4"
}
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "priority"
},
{
"left": {
"left": {
"left": {
"name": "p",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "2.5"
},
"whenTrue": {
"type": "number",
"value": "5"
}
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "c",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "5"
},
"whenTrue": {
"type": "number",
"value": "10"
}
},
"type": "binary"
},
"type": "binary"
},
"operator": "+",
"right": {
"left": {
"name": "cr",
"type": "variable"
},
"operator": "*",
"right": {
"condition": {
"left": {
"name": "len",
"type": "variable"
},
"operator": ">=",
"right": {
"type": "number",
"value": "200001"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"type": "number",
"value": "0.4"
},
"whenTrue": {
"type": "number",
"value": "0.8"
}
},
"type": "binary"
},
"type": "binary"
}
],
"function": "tier",
"type": "call"
}
},
"dependencies": {
"requestContext": [
{
"argument": "service_tier",
"function": "param"
}
],
"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": "6",
"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": "65c425df783b96b575d5f6a6a95245657a0f06faff9dc38e07c68d5534d68d07",
"schema": "grandet.public-pricing-rule/v1",
"sourceExpressionSha256": "606d940b0aef6dccdb22a48da58495504a388616ad0c286f42ce01b1d755685c",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_PER_MILLION_TOKENS"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "31b9a267c10fb183e980f3e6a9a3c03a543641df8946f3dacd2c7f981d7c8b2d",
"quoteOrdinal": 538,
"semanticFlags": [],
"snapshotId": "7b221fceee6bd1ed72cbcaeeddc0ee4753d7c17dea5c3801b750c0ba4610375d",
"sourceDomain": "ai.bytonsec.com",
"sourceId": "ai.bytonsec.com",
"sourceRowId": "82e887e6eb1b084fe5e8ce98d54cf4180297986a5eaee2c83fbc4e92c3d3143f",
"transactionId": "6444d203665df467eca92178063dcdd4dd8e43d7e716e27adc5e9e7ce0ba59ff",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}