Add MJ image node, GIF save, and Kling/image generator updates

Ship o1key MJ图片生成 with content/style refs and prompt flags, save-GIF with preview, Kling 4.0 helpers, plus GPT/unified image node polish and docs.
This commit is contained in:
Jony
2026-11-09 09:11:12 +08:00
parent ff1cf830fa
commit a181cc1768
40 changed files with 6711 additions and 675 deletions
+6 -1
View File
@@ -72,7 +72,7 @@ if not getattr(asyncio, "_o1key_new_event_loop_patched", False):
asyncio._o1key_new_event_loop_patched = True
from .nodes import NanoBananaPro, BatchNanoBananaPro, GoogleGemini, LoadFile, LoadImagesFromFolder, ImageStitchPro, BatchCleanMetadata, VideoPreview, GoogleVeo, Google31Video, MiniMaxH3Video, FluxImageEdit, UniversalLLMChat, BatchImagesO1key, SeedanceMultiModal, StreamPreview, DoubaoImage, O1keyGPTImage, O1keyGPTImageBatch, O1keyGrokImage, O1keyGrokVideo, O1keyGrokVideoEdit
from .nodes import K3Video, K3MotionControl, SaveImageFormat
from .nodes import K3Video, K3MotionControl, SaveImageFormat, O1keySaveGIF
from .nodes import O1keySavePSD
from .nodes import O1keyRemoveBackground
from .nodes import O1keyGridSplitter
@@ -85,6 +85,7 @@ from .nodes import O1keyAutoRedCast
from .nodes import O1keyImageGenerator, O1keyImageSave
from .nodes import O1keyVideoGenerator, O1keyVideoResult
from .nodes import O1keyOmniFlashVideo
from .nodes import O1keyMJImage
# 报错弹框友好文案(不修改原节点代码,仅在外层统一处理)
_MSG_TIMEOUT = "API 请求超时,请稍后重试或检查网络。"
@@ -148,6 +149,7 @@ NODE_CLASS_MAPPINGS = {
"K3Video": K3Video,
"K3MotionControl": K3MotionControl,
"SaveImageFormat": SaveImageFormat,
"O1keySaveGIF": O1keySaveGIF,
"O1keySavePSD": O1keySavePSD,
"O1keyRemoveBackground": O1keyRemoveBackground,
"O1keyGridSplitter": O1keyGridSplitter,
@@ -162,12 +164,14 @@ NODE_CLASS_MAPPINGS = {
"O1keyVideoGenerator": O1keyVideoGenerator,
"O1keyVideoResult": O1keyVideoResult,
"O1keyOmniFlashVideo": O1keyOmniFlashVideo,
"O1keyMJImage": O1keyMJImage,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"O1keyVideoGenerator": "o1key 视频生成",
"O1keyVideoResult": "o1key 视频结果",
"O1keyOmniFlashVideo": "Omni Flash 视频生成",
"O1keyMJImage": "o1key MJ图片生成",
"NanoBanana": "Nano Banana",
"BatchNanoBananaPro": "Nano Banana 批量跑图",
"GoogleGemini": "Google Gemini",
@@ -195,6 +199,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"K3Video": "K 视频生成",
"K3MotionControl": "K 动作模仿",
"SaveImageFormat": "保存图像(格式转换)",
"O1keySaveGIF": "保存 GIF",
"O1keySavePSD": "保存 PSD(分层)",
"O1keyRemoveBackground": "去背景(rembg)",
"O1keyGridSplitter": "合并图智能切割",