Skip to content

Commit 001be62

Browse files
authored
feat: add pricing for Gemini 3 Flash and GPT-5.3-Codex (#115)
- Gemini 3 Flash (gemini-3-flash-preview): $0.50/$3.00 per 1M input/output tokens, $0.05 cached input (Google official pricing) - GPT-5.3-Codex (gpt-5.3-codex): $1.75/$14.00 per 1M input/output tokens, $0.175 cached input (estimated, API not yet published) - Added aliases: gemini-3-flash, gemini-3-flash-preview-12-2025
1 parent f2bd2fc commit 001be62

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

src/models.rs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,17 @@ static MODEL_INDEX: phf::Map<&'static str, ModelInfo> = phf_map! {
325325
},
326326
is_estimated: false,
327327
},
328+
// GPT-5.3 Codex (estimated pricing - API not yet published)
329+
"gpt-5.3-codex" => ModelInfo {
330+
pricing: PricingStructure::Flat {
331+
input_per_1m: 1.75,
332+
output_per_1m: 14.0,
333+
},
334+
caching: CachingSupport::OpenAI {
335+
cached_input_per_1m: 0.175,
336+
},
337+
is_estimated: true,
338+
},
328339
"gpt-5-pro" => ModelInfo {
329340
pricing: PricingStructure::Flat {
330341
input_per_1m: 15.0,
@@ -469,6 +480,21 @@ static MODEL_INDEX: phf::Map<&'static str, ModelInfo> = phf_map! {
469480
},
470481

471482
// Google Models
483+
"gemini-3-flash-preview" => ModelInfo {
484+
pricing: PricingStructure::Flat {
485+
input_per_1m: 0.5,
486+
output_per_1m: 3.0,
487+
},
488+
caching: CachingSupport::Google {
489+
tiers: &[
490+
CachingTier {
491+
max_tokens: None,
492+
cached_input_per_1m: 0.05,
493+
},
494+
],
495+
},
496+
is_estimated: false,
497+
},
472498
"gemini-3-pro-preview-11-2025" => ModelInfo {
473499
pricing: PricingStructure::Tiered {
474500
tiers: &[
@@ -794,6 +820,7 @@ static MODEL_ALIASES: phf::Map<&'static str, &'static str> = phf_map! {
794820
"gpt-5.2" => "gpt-5.2",
795821
"gpt-5.2-pro" => "gpt-5.2-pro",
796822
"gpt-5.2-codex" => "gpt-5.2-codex",
823+
"gpt-5.3-codex" => "gpt-5.3-codex",
797824
"gpt-5-pro" => "gpt-5-pro",
798825

799826
// Anthropic aliases
@@ -831,6 +858,9 @@ static MODEL_ALIASES: phf::Map<&'static str, &'static str> = phf_map! {
831858
"claude-3-haiku-20240307" => "claude-3-haiku",
832859

833860
// Google aliases
861+
"gemini-3-flash-preview" => "gemini-3-flash-preview",
862+
"gemini-3-flash-preview-12-2025" => "gemini-3-flash-preview",
863+
"gemini-3-flash" => "gemini-3-flash-preview",
834864
"gemini-3-pro-preview-11-2025" => "gemini-3-pro-preview-11-2025",
835865
"gemini-3-pro-preview" => "gemini-3-pro-preview-11-2025",
836866
"gemini-3-pro" => "gemini-3-pro-preview-11-2025",

0 commit comments

Comments
 (0)