Skip to content

Commit 4c4f7dd

Browse files
authored
Add GPT-5.5 pricing (#149)
1 parent f95ac87 commit 4c4f7dd

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/models.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,28 @@ fn populate_defaults(
563563
false
564564
);
565565

566+
add_model!(
567+
"gpt-5.5",
568+
PricingStructure::Flat {
569+
input_per_1m: 5.0,
570+
output_per_1m: 30.0
571+
},
572+
CachingSupport::OpenAI {
573+
cached_input_per_1m: 0.50
574+
},
575+
false
576+
);
577+
578+
add_model!(
579+
"gpt-5.5-pro",
580+
PricingStructure::Flat {
581+
input_per_1m: 30.0,
582+
output_per_1m: 180.0
583+
},
584+
CachingSupport::None,
585+
false
586+
);
587+
566588
add_model!(
567589
"gpt-5.4-mini",
568590
PricingStructure::Flat {
@@ -1262,6 +1284,12 @@ fn populate_defaults(
12621284
add_alias!("gpt-5.2-codex", "gpt-5.2-codex");
12631285
add_alias!("gpt-5.3-codex", "gpt-5.3-codex");
12641286
add_alias!("gpt-5-pro", "gpt-5-pro");
1287+
add_alias!("gpt-5.4", "gpt-5.4");
1288+
add_alias!("gpt-5.4-pro", "gpt-5.4-pro");
1289+
add_alias!("gpt-5.4-mini", "gpt-5.4-mini");
1290+
add_alias!("gpt-5.4-nano", "gpt-5.4-nano");
1291+
add_alias!("gpt-5.5", "gpt-5.5");
1292+
add_alias!("gpt-5.5-pro", "gpt-5.5-pro");
12651293

12661294
// Anthropic aliases
12671295
add_alias!("claude-opus-4.7", "claude-opus-4-7");

0 commit comments

Comments
 (0)