Skip to content

Commit 4efc52c

Browse files
add gpt-5.4 models to azure-ai general and pricing configs
Adds general capabilities and pricing for gpt-5.4, gpt-5.4-2026-03-05, gpt-5.4-mini, gpt-5.4-mini-2026-03-17, gpt-5.4-nano, gpt-5.4-nano-2026-03-17, and gpt-5.4-pro to the azure-ai provider. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4787ab4 commit 4efc52c

2 files changed

Lines changed: 317 additions & 4 deletions

File tree

general/azure-ai.json

Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2775,6 +2775,230 @@
27752775
],
27762776
"type": { "primary": "chat", "supported": ["tools", "image"] }
27772777
},
2778+
"gpt-5.4": {
2779+
"removeParams": ["max_tokens"],
2780+
"params": [
2781+
{ "key": "max_completion_tokens", "defaultValue": 20000, "minValue": 1, "maxValue": 272000 },
2782+
{
2783+
"key": "response_format",
2784+
"defaultValue": null,
2785+
"options": [
2786+
{ "value": null, "name": "Text" },
2787+
{
2788+
"value": "json_object",
2789+
"name": "JSON Object",
2790+
"schema": {
2791+
"type": "object",
2792+
"properties": { "type": { "type": "string", "value": "json_object" } }
2793+
}
2794+
},
2795+
{
2796+
"value": "json_schema",
2797+
"name": "JSON Schema",
2798+
"schema": {
2799+
"type": "object",
2800+
"properties": {
2801+
"type": { "type": "string", "value": "json_schema" },
2802+
"json_schema": { "type": "object" }
2803+
}
2804+
},
2805+
"params": { "key": "json_schema", "defaultValue": null, "type": "json", "skipValues": [null] }
2806+
}
2807+
],
2808+
"skipValues": [null],
2809+
"type": "string"
2810+
}
2811+
],
2812+
"type": { "primary": "chat", "supported": ["tools", "image"] }
2813+
},
2814+
"gpt-5.4-2026-03-05": {
2815+
"removeParams": ["max_tokens"],
2816+
"params": [
2817+
{ "key": "max_completion_tokens", "defaultValue": 20000, "minValue": 1, "maxValue": 272000 },
2818+
{
2819+
"key": "response_format",
2820+
"defaultValue": null,
2821+
"options": [
2822+
{ "value": null, "name": "Text" },
2823+
{
2824+
"value": "json_object",
2825+
"name": "JSON Object",
2826+
"schema": {
2827+
"type": "object",
2828+
"properties": { "type": { "type": "string", "value": "json_object" } }
2829+
}
2830+
},
2831+
{
2832+
"value": "json_schema",
2833+
"name": "JSON Schema",
2834+
"schema": {
2835+
"type": "object",
2836+
"properties": {
2837+
"type": { "type": "string", "value": "json_schema" },
2838+
"json_schema": { "type": "object" }
2839+
}
2840+
},
2841+
"params": { "key": "json_schema", "defaultValue": null, "type": "json", "skipValues": [null] }
2842+
}
2843+
],
2844+
"skipValues": [null],
2845+
"type": "string"
2846+
}
2847+
],
2848+
"type": { "primary": "chat", "supported": ["tools", "image"] }
2849+
},
2850+
"gpt-5.4-mini": {
2851+
"removeParams": ["temperature", "top_p", "n", "presence_penalty", "frequency_penalty", "logit_bias", "max_tokens"],
2852+
"params": [
2853+
{ "key": "max_completion_tokens", "defaultValue": 20000, "minValue": 1, "maxValue": 272000 },
2854+
{
2855+
"key": "response_format",
2856+
"defaultValue": null,
2857+
"options": [
2858+
{ "value": null, "name": "Text" },
2859+
{
2860+
"value": "json_object",
2861+
"name": "JSON Object",
2862+
"schema": {
2863+
"type": "object",
2864+
"properties": { "type": { "type": "string", "value": "json_object" } }
2865+
}
2866+
},
2867+
{
2868+
"value": "json_schema",
2869+
"name": "JSON Schema",
2870+
"schema": {
2871+
"type": "object",
2872+
"properties": {
2873+
"type": { "type": "string", "value": "json_schema" },
2874+
"json_schema": { "type": "object" }
2875+
}
2876+
},
2877+
"params": { "key": "json_schema", "defaultValue": null, "type": "json", "skipValues": [null] }
2878+
}
2879+
],
2880+
"skipValues": [null],
2881+
"type": "string"
2882+
}
2883+
],
2884+
"type": { "primary": "chat", "supported": ["tools", "image"] }
2885+
},
2886+
"gpt-5.4-mini-2026-03-17": {
2887+
"removeParams": ["temperature", "top_p", "n", "presence_penalty", "frequency_penalty", "logit_bias", "max_tokens"],
2888+
"params": [
2889+
{ "key": "max_completion_tokens", "defaultValue": 20000, "minValue": 1, "maxValue": 272000 },
2890+
{
2891+
"key": "response_format",
2892+
"defaultValue": null,
2893+
"options": [
2894+
{ "value": null, "name": "Text" },
2895+
{
2896+
"value": "json_object",
2897+
"name": "JSON Object",
2898+
"schema": {
2899+
"type": "object",
2900+
"properties": { "type": { "type": "string", "value": "json_object" } }
2901+
}
2902+
},
2903+
{
2904+
"value": "json_schema",
2905+
"name": "JSON Schema",
2906+
"schema": {
2907+
"type": "object",
2908+
"properties": {
2909+
"type": { "type": "string", "value": "json_schema" },
2910+
"json_schema": { "type": "object" }
2911+
}
2912+
},
2913+
"params": { "key": "json_schema", "defaultValue": null, "type": "json", "skipValues": [null] }
2914+
}
2915+
],
2916+
"skipValues": [null],
2917+
"type": "string"
2918+
}
2919+
],
2920+
"type": { "primary": "chat", "supported": ["tools", "image"] }
2921+
},
2922+
"gpt-5.4-nano": {
2923+
"removeParams": ["temperature", "top_p", "n", "presence_penalty", "frequency_penalty", "logit_bias", "max_tokens"],
2924+
"params": [
2925+
{ "key": "max_completion_tokens", "defaultValue": 20000, "minValue": 1, "maxValue": 272000 },
2926+
{
2927+
"key": "response_format",
2928+
"defaultValue": null,
2929+
"options": [
2930+
{ "value": null, "name": "Text" },
2931+
{
2932+
"value": "json_object",
2933+
"name": "JSON Object",
2934+
"schema": {
2935+
"type": "object",
2936+
"properties": { "type": { "type": "string", "value": "json_object" } }
2937+
}
2938+
},
2939+
{
2940+
"value": "json_schema",
2941+
"name": "JSON Schema",
2942+
"schema": {
2943+
"type": "object",
2944+
"properties": {
2945+
"type": { "type": "string", "value": "json_schema" },
2946+
"json_schema": { "type": "object" }
2947+
}
2948+
},
2949+
"params": { "key": "json_schema", "defaultValue": null, "type": "json", "skipValues": [null] }
2950+
}
2951+
],
2952+
"skipValues": [null],
2953+
"type": "string"
2954+
}
2955+
],
2956+
"type": { "primary": "chat", "supported": ["tools", "image"] }
2957+
},
2958+
"gpt-5.4-nano-2026-03-17": {
2959+
"removeParams": ["temperature", "top_p", "n", "presence_penalty", "frequency_penalty", "logit_bias", "max_tokens"],
2960+
"params": [
2961+
{ "key": "max_completion_tokens", "defaultValue": 20000, "minValue": 1, "maxValue": 272000 },
2962+
{
2963+
"key": "response_format",
2964+
"defaultValue": null,
2965+
"options": [
2966+
{ "value": null, "name": "Text" },
2967+
{
2968+
"value": "json_object",
2969+
"name": "JSON Object",
2970+
"schema": {
2971+
"type": "object",
2972+
"properties": { "type": { "type": "string", "value": "json_object" } }
2973+
}
2974+
},
2975+
{
2976+
"value": "json_schema",
2977+
"name": "JSON Schema",
2978+
"schema": {
2979+
"type": "object",
2980+
"properties": {
2981+
"type": { "type": "string", "value": "json_schema" },
2982+
"json_schema": { "type": "object" }
2983+
}
2984+
},
2985+
"params": { "key": "json_schema", "defaultValue": null, "type": "json", "skipValues": [null] }
2986+
}
2987+
],
2988+
"skipValues": [null],
2989+
"type": "string"
2990+
}
2991+
],
2992+
"type": { "primary": "chat", "supported": ["tools", "image"] }
2993+
},
2994+
"gpt-5.4-pro": {
2995+
"disablePlayground": true,
2996+
"type": {
2997+
"primary": "responses",
2998+
"supported": ["tools", "image"],
2999+
"unsupported": ["chat", "messages"]
3000+
}
3001+
},
27783002
"grok-3-mini-high": {
27793003
"type": { "primary": "chat", "supported": [] }
27803004
},

pricing/azure-ai.json

Lines changed: 93 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2822,7 +2822,7 @@
28222822
"price": 0
28232823
},
28242824
"cache_read_input_token": {
2825-
"price": 0.0000005
2825+
"price": 5e-7
28262826
},
28272827
"additional_units": {
28282828
"web_search": {
@@ -2848,7 +2848,7 @@
28482848
"price": 0
28492849
},
28502850
"cache_read_input_token": {
2851-
"price": 0.0000005
2851+
"price": 5e-7
28522852
},
28532853
"additional_units": {
28542854
"web_search": {
@@ -2962,7 +2962,7 @@
29622962
"price": 0
29632963
},
29642964
"cache_read_input_token": {
2965-
"price": 0.0000005
2965+
"price": 5e-7
29662966
},
29672967
"additional_units": {
29682968
"web_search": {
@@ -2988,7 +2988,7 @@
29882988
"price": 0
29892989
},
29902990
"cache_read_input_token": {
2991-
"price": 0.0000005
2991+
"price": 5e-7
29922992
},
29932993
"additional_units": {
29942994
"web_search": {
@@ -4083,5 +4083,94 @@
40834083
}
40844084
}
40854085
}
4086+
},
4087+
"gpt-5.4": {
4088+
"pricing_config": {
4089+
"pay_as_you_go": {
4090+
"request_token": {
4091+
"price": 0.00025
4092+
},
4093+
"response_token": {
4094+
"price": 0.0015
4095+
},
4096+
"cache_read_input_token": {
4097+
"price": 0.000025
4098+
},
4099+
"additional_units": {
4100+
"web_search": {
4101+
"price": 1
4102+
},
4103+
"file_search": {
4104+
"price": 0.25
4105+
}
4106+
}
4107+
}
4108+
}
4109+
},
4110+
"gpt-5.4-pro": {
4111+
"pricing_config": {
4112+
"pay_as_you_go": {
4113+
"request_token": {
4114+
"price": 0.003
4115+
},
4116+
"response_token": {
4117+
"price": 0.018
4118+
},
4119+
"additional_units": {
4120+
"web_search": {
4121+
"price": 1
4122+
},
4123+
"file_search": {
4124+
"price": 0.25
4125+
}
4126+
}
4127+
}
4128+
}
4129+
},
4130+
"gpt-5.4-mini": {
4131+
"pricing_config": {
4132+
"pay_as_you_go": {
4133+
"request_token": {
4134+
"price": 0.000075
4135+
},
4136+
"response_token": {
4137+
"price": 0.00045
4138+
},
4139+
"cache_read_input_token": {
4140+
"price": 0.000008
4141+
},
4142+
"additional_units": {
4143+
"web_search": {
4144+
"price": 1
4145+
},
4146+
"file_search": {
4147+
"price": 0.25
4148+
}
4149+
}
4150+
}
4151+
}
4152+
},
4153+
"gpt-5.4-nano": {
4154+
"pricing_config": {
4155+
"pay_as_you_go": {
4156+
"request_token": {
4157+
"price": 0.00002
4158+
},
4159+
"response_token": {
4160+
"price": 0.000125
4161+
},
4162+
"cache_read_input_token": {
4163+
"price": 0.000002
4164+
},
4165+
"additional_units": {
4166+
"web_search": {
4167+
"price": 1
4168+
},
4169+
"file_search": {
4170+
"price": 0.25
4171+
}
4172+
}
4173+
}
4174+
}
40864175
}
40874176
}

0 commit comments

Comments
 (0)