banana· Public API
Price depends on conditions · expand to see every case and condition
All prices, conditions and raw data
gpt-image-2.5-1k
teynex.com · Price published through the provider’s API
Plan / group: declared-group:banana · banana
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": [],
"costExpression": {
"divisor": "1000000",
"evaluation": "SYMBOLIC_ONLY",
"expressionAST": {
"left": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1024x1024"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1280x720"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "720x1280"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1248x832"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "832x1248"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1152x864"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "864x1152"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1120x896"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "896x1120"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1456x624"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "624x1456"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2048x2048"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2560x1440"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1440x2560"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2496x1664"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1664x2496"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2304x1728"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1728x2304"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2240x1792"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1792x2240"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3024x1296"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1296x3024"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2880x2880"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3840x2160"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2160x3840"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3504x2336"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2336x3504"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3264x2448"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2448x3264"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3200x2560"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2560x3200"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3696x1584"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1584x3696"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"left": {
"type": "number",
"value": "0.05"
},
"operator": "*",
"right": {
"type": "number",
"value": "1000000"
},
"type": "binary"
},
"whenTrue": {
"left": {
"type": "number",
"value": "0.19"
},
"operator": "*",
"right": {
"type": "number",
"value": "1000000"
},
"type": "binary"
}
},
"whenTrue": {
"left": {
"type": "number",
"value": "0.15"
},
"operator": "*",
"right": {
"type": "number",
"value": "1000000"
},
"type": "binary"
}
},
"whenTrue": {
"left": {
"type": "number",
"value": "0.05"
},
"operator": "*",
"right": {
"type": "number",
"value": "1000000"
},
"type": "binary"
}
},
"operator": "*",
"right": {
"name": "image_count",
"type": "variable"
},
"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": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1024x1024"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1280x720"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "720x1280"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1248x832"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "832x1248"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1152x864"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "864x1152"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1120x896"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "896x1120"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1456x624"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "624x1456"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2048x2048"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2560x1440"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1440x2560"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2496x1664"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1664x2496"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2304x1728"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1728x2304"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2240x1792"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1792x2240"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3024x1296"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1296x3024"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2880x2880"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3840x2160"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2160x3840"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3504x2336"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2336x3504"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3264x2448"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2448x3264"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3200x2560"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2560x3200"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3696x1584"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1584x3696"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "one_k"
},
{
"arguments": [
{
"type": "number",
"value": "0.05"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "four_k"
},
{
"arguments": [
{
"type": "number",
"value": "0.19"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
}
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "two_k"
},
{
"arguments": [
{
"type": "number",
"value": "0.15"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
}
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "one_k"
},
{
"arguments": [
{
"type": "number",
"value": "0.05"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
}
},
"operator": "*",
"right": {
"name": "image_count",
"type": "variable"
},
"type": "binary"
},
"dependencies": {
"quantities": [
{
"integerRequired": true,
"maximum": "128",
"minimum": "1",
"requestParamNIsNotSettlementCount": true,
"unit": "count",
"upstreamMissingContextDefault": "1",
"usageKind": "IMAGE_GENERATION_COUNT",
"variable": "image_count"
}
],
"requestContext": [
{
"argument": "size",
"function": "param"
}
],
"taskUsageSchema": null,
"usageVariables": [
"image_count"
]
},
"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",
"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",
"IMAGE_COUNT_REQUIRES_ACTUAL_GENERATED_OR_BILLABLE_COUNT"
],
"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": "5993c8414ffb83661406475f861384ed7a5abb04ffcf20953d73710883f4acb8",
"schema": "grandet.public-pricing-rule/v2",
"sourceExpressionSha256": "7daeac2cce2b96a6db49f6148c157a7ecfe6059e45746ddfe1fc6db9e51c0872",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_TOTAL"
]
}All conditions the provider states
{
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"image-generation"
],
"declaredGroupDescription": "banana/gpt image 2/视频汇总分组",
"declaredGroupRatio": 1,
"eligibility": {
"declaredGroup": "banana",
"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-11-24T05:42:19Z",
"firstObservedAt": "2026-11-14T05:42:20.577Z",
"maximumQuoteAgeDays": 10,
"observedAt": "2026-11-14T05:42:20.577Z",
"snapshotId": "c0c6a721c08b32fc9f07829c8e53582658ec94794db79fec52483c9aefb101be",
"sourceId": "teynex.com",
"transactionId": "e38ef1d89444ee7ff015608b21a8fa8f21c584f529f6ed993680529f2bdd6945"
}Full raw record for this price
{
"accountEligibility": "UNVERIFIED",
"analysisDoesNotRenewObservation": true,
"attemptId": "02a3a0b0d89aca7474ccb664306881afa1e3f1a8215d79c37e27867aaac308be",
"cacheReadPrice": null,
"cacheWritePrice": null,
"captureParserVersion": "grandet.new-api-public-pricing/1.8.0",
"cashQualification": "NOT_EVALUATED",
"cashQualified": false,
"classification": "STRUCTURED_PRICING_RULE",
"conditions": {
"balanceExpiry": {
"status": "UNKNOWN"
},
"bonusWallet": {
"status": "UNKNOWN"
},
"declaredEndpointTypes": [
"image-generation"
],
"declaredGroupDescription": "banana/gpt image 2/视频汇总分组",
"declaredGroupRatio": 1,
"eligibility": {
"declaredGroup": "banana",
"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": "banana",
"formulaAssurance": "DECLARED_BILLING_EXPRESSION_IMPLEMENTATION_UNVERIFIED",
"formulaProjectionBlockers": [],
"freshUntil": "2026-11-24T05:42:19Z",
"groupOfferingFlags": [],
"humanExtractionReview": "NOT_PERFORMED",
"inputPrice": null,
"modelName": "gpt-image-2.5-1k",
"multimodalPricing": null,
"observedAt": "2026-11-14T05:42:20.577Z",
"offerKey": "1b3104ba39755b3dd52c1dd250a50ffab9864f8b9273341670ba623c78e1f4f7",
"outputPrice": null,
"parseRevisionId": null,
"parsedPricingDeclarations": null,
"parserFamily": "NEW_API_PUBLIC_PRICING",
"parserVersion": "grandet.new-api-public-pricing/1.8.0",
"partialPriceComponents": null,
"perRequestPrice": null,
"planId": "declared-group:banana",
"pricePairSourceRowId": "4dbf9ef43e2a282e6f6fbd9d5f67c24367a891df39d048f0d7594244b0e5bbcb",
"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": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1024x1024"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1280x720"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "720x1280"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1248x832"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "832x1248"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1152x864"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "864x1152"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1120x896"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "896x1120"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1456x624"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "624x1456"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2048x2048"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2560x1440"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1440x2560"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2496x1664"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1664x2496"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2304x1728"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1728x2304"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2240x1792"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1792x2240"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3024x1296"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1296x3024"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2880x2880"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3840x2160"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2160x3840"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3504x2336"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2336x3504"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3264x2448"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2448x3264"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3200x2560"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2560x3200"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3696x1584"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1584x3696"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"left": {
"type": "number",
"value": "0.05"
},
"operator": "*",
"right": {
"type": "number",
"value": "1000000"
},
"type": "binary"
},
"whenTrue": {
"left": {
"type": "number",
"value": "0.19"
},
"operator": "*",
"right": {
"type": "number",
"value": "1000000"
},
"type": "binary"
}
},
"whenTrue": {
"left": {
"type": "number",
"value": "0.15"
},
"operator": "*",
"right": {
"type": "number",
"value": "1000000"
},
"type": "binary"
}
},
"whenTrue": {
"left": {
"type": "number",
"value": "0.05"
},
"operator": "*",
"right": {
"type": "number",
"value": "1000000"
},
"type": "binary"
}
},
"operator": "*",
"right": {
"name": "image_count",
"type": "variable"
},
"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": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1024x1024"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1280x720"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "720x1280"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1248x832"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "832x1248"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1152x864"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "864x1152"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1120x896"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "896x1120"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1456x624"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "624x1456"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2048x2048"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2560x1440"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1440x2560"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2496x1664"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1664x2496"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2304x1728"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1728x2304"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2240x1792"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1792x2240"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3024x1296"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1296x3024"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"condition": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2880x2880"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3840x2160"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2160x3840"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3504x2336"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2336x3504"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3264x2448"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2448x3264"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3200x2560"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "2560x3200"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "3696x1584"
},
"type": "binary"
},
"type": "binary"
},
"operator": "||",
"right": {
"left": {
"arguments": [
{
"type": "string",
"value": "size"
}
],
"function": "param",
"type": "call"
},
"operator": "==",
"right": {
"type": "string",
"value": "1584x3696"
},
"type": "binary"
},
"type": "binary"
},
"type": "conditional",
"whenFalse": {
"arguments": [
{
"type": "string",
"value": "one_k"
},
{
"arguments": [
{
"type": "number",
"value": "0.05"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "four_k"
},
{
"arguments": [
{
"type": "number",
"value": "0.19"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
}
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "two_k"
},
{
"arguments": [
{
"type": "number",
"value": "0.15"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
}
},
"whenTrue": {
"arguments": [
{
"type": "string",
"value": "one_k"
},
{
"arguments": [
{
"type": "number",
"value": "0.05"
}
],
"function": "fixed",
"type": "call"
}
],
"function": "tier",
"type": "call"
}
},
"operator": "*",
"right": {
"name": "image_count",
"type": "variable"
},
"type": "binary"
},
"dependencies": {
"quantities": [
{
"integerRequired": true,
"maximum": "128",
"minimum": "1",
"requestParamNIsNotSettlementCount": true,
"unit": "count",
"upstreamMissingContextDefault": "1",
"usageKind": "IMAGE_GENERATION_COUNT",
"variable": "image_count"
}
],
"requestContext": [
{
"argument": "size",
"function": "param"
}
],
"taskUsageSchema": null,
"usageVariables": [
"image_count"
]
},
"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",
"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",
"IMAGE_COUNT_REQUIRES_ACTUAL_GENERATED_OR_BILLABLE_COUNT"
],
"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": "5993c8414ffb83661406475f861384ed7a5abb04ffcf20953d73710883f4acb8",
"schema": "grandet.public-pricing-rule/v2",
"sourceExpressionSha256": "7daeac2cce2b96a6db49f6148c157a7ecfe6059e45746ddfe1fc6db9e51c0872",
"status": "SUPPORTED_PUBLIC_DECLARATION",
"units": [
"DECLARED_USD_TOTAL"
]
},
"publicOfferingStatus": "DECLARED_IN_PUBLIC_GROUP",
"quoteId": "1ff7b2d913982ade85cb08763934245af8423ebcdee2367a180e1fbf6c0193d0",
"quoteOrdinal": 58,
"semanticFlags": [],
"snapshotId": "c0c6a721c08b32fc9f07829c8e53582658ec94794db79fec52483c9aefb101be",
"sourceDomain": "teynex.com",
"sourceId": "teynex.com",
"sourceRowId": "4dbf9ef43e2a282e6f6fbd9d5f67c24367a891df39d048f0d7594244b0e5bbcb",
"transactionId": "e38ef1d89444ee7ff015608b21a8fa8f21c584f529f6ed993680529f2bdd6945",
"unit": "STRUCTURED_DECLARED_PRICING_RULE"
}