ComfyUI/comfy_api_nodes
Marwan Ahmed e9f8aa9346 feat(api-nodes): add dedicated OpenAI GPT-Image-2 node
- Add `OpenAIGPTImage2` node (`node_id: OpenAIGPTImage2`) with settings
  specific to gpt-image-2: quality auto/low/medium/high, background
  auto/opaque (transparent not supported), all 8 popular size presets,
  and custom width/height inputs (step=16, max=3840) that override the
  size preset when both are non-zero
- Add `_resolve_gpt_image_2_size` helper that enforces API constraints:
  max edge ≤ 3840px, multiples of 16, ratio ≤ 3:1, total pixels
  655,360–8,294,400
- Add `calculate_tokens_price_image_2` using correct gpt-image-2 rates
  ($8/1M input, $30/1M output); price badge shows range per quality
  tier with approximate flag for auto quality
- Rename `OpenAIGPTImage1` display name to "OpenAI GPT Image 1 & 1.5",
  remove gpt-image-2 from its model dropdown, and update its price badge
  to be model-aware with correct per-model ranges
- Add unit tests covering price formulas, size resolution logic, and
  schema correctness for both nodes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 05:23:17 +02:00
..
apis feat(api-nodes): add automatic downscaling of videos for ByteDance 2 nodes (#13465) 2026-04-21 10:45:10 -07:00
util feat(api-nodes): add automatic downscaling of videos for ByteDance 2 nodes (#13465) 2026-04-21 10:45:10 -07:00
__init__.py [API nodes] Add backbone for supporting api nodes in ComfyUI (#7745) 2025-04-23 02:18:08 -04:00
nodes_bfl.py feat: mark 429 widgets as advanced for collapsible UI (#12197) 2026-02-19 19:20:02 -08:00
nodes_bria.py feat(api-nodes): add Bria RMBG nodes (#12465) 2026-02-15 17:22:30 -08:00
nodes_bytedance.py feat(api-nodes): add automatic downscaling of videos for ByteDance 2 nodes (#13465) 2026-04-21 10:45:10 -07:00
nodes_elevenlabs.py [API Nodes] add ElevenLabs nodes (#12207) 2026-02-19 22:12:28 -08:00
nodes_gemini.py fix(api-nodes-nanobana): raise error when not output image is present (#13167) 2026-03-27 12:11:41 -07:00
nodes_grok.py fix(api-nodes): fix GrokVideoReferenceNode price badge (#13354) 2026-04-10 08:01:15 -10:00
nodes_hitpaw.py [API Nodes] HitPaw API nodes (#12117) 2026-02-02 19:17:59 -08:00
nodes_hunyuan3d.py fix(api-nodes): make "obj" output optional in Hunyuan3D Text and Image to 3D (#13449) 2026-04-18 01:31:37 +08:00
nodes_ideogram.py feat: mark 429 widgets as advanced for collapsible UI (#12197) 2026-02-19 19:20:02 -08:00
nodes_kling.py feat: add essentials_category to nodes and blueprints for Essentials tab (#12573) 2026-03-15 16:18:04 -07:00
nodes_ltxv.py feat: mark 429 widgets as advanced for collapsible UI (#12197) 2026-02-19 19:20:02 -08:00
nodes_luma.py chore(api-nodes): remove non-used; extract model to separate files (#11927) 2026-01-17 18:52:45 -08:00
nodes_magnific.py feat: mark 429 widgets as advanced for collapsible UI (#12197) 2026-02-19 19:20:02 -08:00
nodes_meshy.py feat: mark 429 widgets as advanced for collapsible UI (#12197) 2026-02-19 19:20:02 -08:00
nodes_minimax.py chore(api-nodes): remove non-used; extract model to separate files (#11927) 2026-01-17 18:52:45 -08:00
nodes_moonvalley.py fix(Moonvalley-API-Nodes): adjust "steps" parameter to not raise exception (#12370) 2026-02-09 21:58:27 -05:00
nodes_openai.py feat(api-nodes): add dedicated OpenAI GPT-Image-2 node 2026-04-22 05:23:17 +02:00
nodes_pixverse.py chore(api-nodes): remove non-used; extract model to separate files (#11927) 2026-01-17 18:52:45 -08:00
nodes_quiver.py feat(api-nodes): add new "arrow-1.1" and "arrow-1.1-max" SVG models (#13447) 2026-04-17 12:02:06 -05:00
nodes_recraft.py feat: add essentials_category to nodes and blueprints for Essentials tab (#12573) 2026-03-15 16:18:04 -07:00
nodes_reve.py fix(api-nodes): made Reve node price badges more precise (#13154) 2026-03-25 11:05:49 -07:00
nodes_rodin.py feat: mark 429 widgets as advanced for collapsible UI (#12197) 2026-02-19 19:20:02 -08:00
nodes_runway.py chore(api-nodes): remove non-used; extract model to separate files (#11927) 2026-01-17 18:52:45 -08:00
nodes_sonilo.py [Partner Nodes] add Sonilo Audio nodes (#13391) 2026-04-13 22:21:01 -07:00
nodes_sora.py [API Nodes] add TencentHunyuan3D nodes (#12026) 2026-01-24 17:10:09 -08:00
nodes_stability.py fix(api-nodes): corrected StabilityAI price badges (#13454) 2026-04-17 11:44:08 -05:00
nodes_topaz.py feat(api-nodes): added new Topaz model (#13175) 2026-03-26 12:02:04 -07:00
nodes_tripo.py feat: mark 429 widgets as advanced for collapsible UI (#12197) 2026-02-19 19:20:02 -08:00
nodes_veo2.py [Partner Nodes] added 4K resolution for Veo models; added Veo 3 Lite model (#13330) 2026-04-21 11:27:35 -07:00
nodes_vidu.py feat: mark 429 widgets as advanced for collapsible UI (#12197) 2026-02-19 19:20:02 -08:00
nodes_wan.py feat(api-nodes): new Partner nodes for Wan2.7 (#13264) 2026-04-02 23:51:47 -07:00
nodes_wavespeed.py feat(api-nodes): add WaveSpeed nodes (#11945) 2026-01-20 13:05:40 -08:00