Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

[Partner Nodes] feat(Gemini-LLM): Add Gemini 3.7 Flash to the Gemini text node (#15688)

Alexander Piskunc67885b14556
diff --git a/comfy_api_nodes/nodes_gemini.py b/comfy_api_nodes/nodes_gemini.py
index 8343633e0..ebad67950 100644
--- a/comfy_api_nodes/nodes_gemini.py
+++ b/comfy_api_nodes/nodes_gemini.py
@@ -592,6 +592,7 @@ class GeminiNode(IO.ComfyNode):
GEMINI_V2_MODELS: dict[str, str] = {
+ "Gemini 3.7 Flash": "gemini-3.7-flash",
"Gemini 3.1 Pro": "gemini-3.1-pro-preview",
"Gemini 3.5 Flash": "gemini-3.5-flash",
"Gemini 3.1 Flash-Lite": "gemini-3.1-flash-lite-preview",
@@ -694,6 +695,10 @@ class GeminiNodeV2(IO.ComfyNode):
IO.DynamicCombo.Input(
"model",
options=[
+ IO.DynamicCombo.Option(
+ "Gemini 3.7 Flash",
+ _gemini_text_model_inputs("MEDIUM", ["LOW", "MEDIUM", "HIGH"]),
+ ),
IO.DynamicCombo.Option(
"Gemini 3.5 Flash",
_gemini_text_model_inputs("MEDIUM", ["MINIMAL", "LOW", "MEDIUM", "HIGH"]),
@@ -739,6 +744,11 @@ class GeminiNodeV2(IO.ComfyNode):
"usd": [0.00025, 0.0015],
"format": { "approximate": true, "separator": "-", "suffix": " per 1K tokens" }
}
+ : $contains($m, "3.7 flash") ? {
+ "type": "list_usd",
+ "usd": [0.00215, 0.01073],
+ "format": { "approximate": true, "separator": "-", "suffix": " per 1K tokens" }
+ }
: $contains($m, "3.5 flash") ? {
"type": "list_usd",
"usd": [0.0015, 0.009],