Skip to content

Commit 4787ab4

Browse files
authored
Merge pull request #779 from Portkey-AI/add/gemini-3-5-flash-models
add gemini-3.5-flash model
2 parents fd72466 + cc83564 commit 4787ab4

6 files changed

Lines changed: 235 additions & 0 deletions

File tree

general/google.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,62 @@
17021702
"supported": ["tools", "image"]
17031703
}
17041704
},
1705+
"gemini-3.5-flash": {
1706+
"params": [
1707+
{ "key": "max_tokens", "maxValue": 65536 },
1708+
{
1709+
"key": "response_format",
1710+
"defaultValue": null,
1711+
"options": [
1712+
{
1713+
"value": null,
1714+
"name": "Text"
1715+
},
1716+
{
1717+
"value": "json_object",
1718+
"name": "JSON Object",
1719+
"schema": {
1720+
"type": "object",
1721+
"properties": {
1722+
"type": { "type": "string", "value": "json_object" }
1723+
}
1724+
}
1725+
},
1726+
{
1727+
"value": "json_schema",
1728+
"name": "JSON Schema",
1729+
"schema": {
1730+
"type": "object",
1731+
"properties": {
1732+
"type": { "type": "string", "value": "json_schema" },
1733+
"json_schema": { "type": "object" }
1734+
}
1735+
},
1736+
"params": { "key": "json_schema", "defaultValue": null, "type": "json", "skipValues": [null] }
1737+
}
1738+
],
1739+
"skipValues": [null],
1740+
"type": "string"
1741+
},
1742+
{
1743+
"key": "thinking",
1744+
"properties": {
1745+
"type": {
1746+
"type": "string",
1747+
"enum": ["enabled"]
1748+
},
1749+
"budget_tokens": {
1750+
"type": "number",
1751+
"minValue": 128,
1752+
"maxValue": 32768
1753+
}
1754+
},
1755+
"defaultValue": null,
1756+
"skipValues": [null]
1757+
}
1758+
],
1759+
"type": { "primary": "chat", "supported": ["image", "pdf", "doc", "tools", "audio"] }
1760+
},
17051761
"gemini-3.1-flash-image-preview": {
17061762
"type": {
17071763
"primary": "image"

general/openrouter.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4894,6 +4894,18 @@
48944894
}
48954895
]
48964896
},
4897+
"google/gemini-3.5-flash": {
4898+
"type": {
4899+
"primary": "chat",
4900+
"supported": ["image", "tools", "audio"]
4901+
},
4902+
"params": [
4903+
{
4904+
"key": "max_tokens",
4905+
"maxValue": 65536
4906+
}
4907+
]
4908+
},
48974909
"upstage/solar-pro-3": {
48984910
"type": {
48994911
"primary": "chat",

general/vertex-ai.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,6 +1826,62 @@
18261826
],
18271827
"type": { "primary": "chat", "supported": ["image", "pdf", "doc", "tools"] }
18281828
},
1829+
"gemini-3.5-flash": {
1830+
"params": [
1831+
{ "key": "max_tokens", "maxValue": 65536 },
1832+
{
1833+
"key": "response_format",
1834+
"defaultValue": null,
1835+
"options": [
1836+
{
1837+
"value": null,
1838+
"name": "Text"
1839+
},
1840+
{
1841+
"value": "json_object",
1842+
"name": "JSON Object",
1843+
"schema": {
1844+
"type": "object",
1845+
"properties": {
1846+
"type": { "type": "string", "value": "json_object" }
1847+
}
1848+
}
1849+
},
1850+
{
1851+
"value": "json_schema",
1852+
"name": "JSON Schema",
1853+
"schema": {
1854+
"type": "object",
1855+
"properties": {
1856+
"type": { "type": "string", "value": "json_schema" },
1857+
"json_schema": { "type": "object" }
1858+
}
1859+
},
1860+
"params": { "key": "json_schema", "defaultValue": null, "type": "json", "skipValues": [null] }
1861+
}
1862+
],
1863+
"skipValues": [null],
1864+
"type": "string"
1865+
},
1866+
{
1867+
"key": "thinking",
1868+
"properties": {
1869+
"type": {
1870+
"type": "string",
1871+
"enum": ["enabled"]
1872+
},
1873+
"budget_tokens": {
1874+
"type": "number",
1875+
"minValue": 128,
1876+
"maxValue": 32768
1877+
}
1878+
},
1879+
"defaultValue": null,
1880+
"skipValues": [null]
1881+
}
1882+
],
1883+
"type": { "primary": "chat", "supported": ["image", "pdf", "doc", "tools", "audio"] }
1884+
},
18291885
"gemini-3.1-pro-preview-customtools": {
18301886
"params": [
18311887
{ "key": "max_tokens", "maxValue": 65536 },

pricing/google.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3348,5 +3348,67 @@
33483348
}
33493349
}
33503350
}
3351+
},
3352+
"gemini-3.5-flash-lte-128k": {
3353+
"pricing_config": {
3354+
"pay_as_you_go": {
3355+
"request_token": {
3356+
"price": 0.00015
3357+
},
3358+
"response_token": {
3359+
"price": 0.0009
3360+
},
3361+
"cache_read_input_token": {
3362+
"price": 0.000015
3363+
},
3364+
"additional_units": {
3365+
"web_search": {
3366+
"price": 1.4
3367+
},
3368+
"search": {
3369+
"price": 1.4
3370+
}
3371+
}
3372+
},
3373+
"batch_config": {
3374+
"request_token": {
3375+
"price": 0.000075
3376+
},
3377+
"response_token": {
3378+
"price": 0.00045
3379+
}
3380+
}
3381+
}
3382+
},
3383+
"gemini-3.5-flash-gt-128k": {
3384+
"pricing_config": {
3385+
"pay_as_you_go": {
3386+
"request_token": {
3387+
"price": 0.00015
3388+
},
3389+
"response_token": {
3390+
"price": 0.0009
3391+
},
3392+
"cache_read_input_token": {
3393+
"price": 0.000015
3394+
},
3395+
"additional_units": {
3396+
"web_search": {
3397+
"price": 1.4
3398+
},
3399+
"search": {
3400+
"price": 1.4
3401+
}
3402+
}
3403+
},
3404+
"batch_config": {
3405+
"request_token": {
3406+
"price": 0.000075
3407+
},
3408+
"response_token": {
3409+
"price": 0.00045
3410+
}
3411+
}
3412+
}
33513413
}
33523414
}

pricing/openrouter.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5160,6 +5160,18 @@
51605160
}
51615161
}
51625162
},
5163+
"google/gemini-3.5-flash": {
5164+
"pricing_config": {
5165+
"pay_as_you_go": {
5166+
"request_token": {
5167+
"price": 0.00015
5168+
},
5169+
"response_token": {
5170+
"price": 0.0009
5171+
}
5172+
}
5173+
}
5174+
},
51635175
"upstage/solar-pro-3": {
51645176
"pricing_config": {
51655177
"pay_as_you_go": {

pricing/vertex-ai.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2945,6 +2945,43 @@
29452945
}
29462946
}
29472947
},
2948+
"gemini-3.5-flash": {
2949+
"pricing_config": {
2950+
"pay_as_you_go": {
2951+
"request_token": {
2952+
"price": 0.00015
2953+
},
2954+
"response_token": {
2955+
"price": 0.0009
2956+
},
2957+
"cache_write_input_token": {
2958+
"price": 0.00015
2959+
},
2960+
"cache_read_input_token": {
2961+
"price": 0.000015
2962+
},
2963+
"additional_units": {
2964+
"web_search": {
2965+
"price": 1.4
2966+
},
2967+
"search": {
2968+
"price": 1.4
2969+
},
2970+
"enterprise_web_search": {
2971+
"price": 1.4
2972+
}
2973+
}
2974+
},
2975+
"batch_config": {
2976+
"request_token": {
2977+
"price": 0.000075
2978+
},
2979+
"response_token": {
2980+
"price": 0.00045
2981+
}
2982+
}
2983+
}
2984+
},
29482985
"gemini-3.1-flash-image-preview": {
29492986
"pricing_config": {
29502987
"pay_as_you_go": {

0 commit comments

Comments
 (0)