Skip to content

Python scraper based on AI

feat(models): add OpenAI gpt-5.4 and gpt-5.5 family support

Marco Vinciguerrac2c436d25c2f
diff --git a/scrapegraphai/helpers/models_tokens.py b/scrapegraphai/helpers/models_tokens.py
index 805a1bee..d0df1bfd 100644
--- a/scrapegraphai/helpers/models_tokens.py
+++ b/scrapegraphai/helpers/models_tokens.py
@@ -39,7 +39,22 @@ models_tokens = {
"o4-mini": 200000,
"o3-deep-research": 200000,
"o4-mini-deep-research": 200000,
+ "gpt-5.5": 1050000,
+ "gpt-5.5-pro": 1050000,
+ "gpt-5.5-2026-04-23": 1050000,
+ "gpt-5.5-pro-2026-04-23": 1050000,
+ "gpt-5.4": 1050000,
+ "gpt-5.4-pro": 1050000,
+ "gpt-5.4-mini": 400000,
+ "gpt-5.4-nano": 400000,
+ "gpt-5.4-2026-03-05": 1050000,
+ "gpt-5.4-pro-2026-03-05": 1050000,
+ "gpt-5.4-mini-2026-03-17": 400000,
+ "gpt-5.4-nano-2026-03-17": 400000,
+ "gpt-5.3-codex": 400000,
+ "gpt-5.3-chat-latest": 128000,
"gpt-5": 200000,
+ "gpt-5-2025-08-07": 200000,
"gpt-5.1": 200000,
"gpt-5.2": 128000,
"gpt-5.2-pro": 128000,
@@ -86,7 +101,22 @@ models_tokens = {
"gpt-4.1": 1048576,
"gpt-4.1-mini": 1048576,
"gpt-4.1-nano": 1048576,
+ "gpt-5.5": 1050000,
+ "gpt-5.5-pro": 1050000,
+ "gpt-5.5-2026-04-23": 1050000,
+ "gpt-5.5-pro-2026-04-23": 1050000,
+ "gpt-5.4": 1050000,
+ "gpt-5.4-pro": 1050000,
+ "gpt-5.4-mini": 400000,
+ "gpt-5.4-nano": 400000,
+ "gpt-5.4-2026-03-05": 1050000,
+ "gpt-5.4-pro-2026-03-05": 1050000,
+ "gpt-5.4-mini-2026-03-17": 400000,
+ "gpt-5.4-nano-2026-03-17": 400000,
+ "gpt-5.3-codex": 400000,
+ "gpt-5.3-chat-latest": 128000,
"gpt-5": 200000,
+ "gpt-5-2025-08-07": 200000,
"gpt-5.1": 200000,
"gpt-5.2": 128000,
"gpt-5.2-pro": 128000,