Files
CosmicLaca-ComfyUI_Primere_…/Workflows/Development/universal_api_test.json
T

790 lines
20 KiB
JSON

{
"id": "3ed198dc-bee5-40d4-a269-63c758e8edff",
"revision": 0,
"last_node_id": 78,
"last_link_id": 704,
"nodes": [
{
"id": 3,
"type": "PrimereAnyOutput",
"pos": [
573.486169897627,
-710.2392168493096
],
"size": [
450.9361328125,
88
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 669
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PrimereAnyOutput",
"cnr_id": "comfyui_primere_nodes",
"ver": "ce14e5d0f46aaa12155853e05132bffb2ee70361"
},
"widgets_values": [
"Gemini"
]
},
{
"id": 2,
"type": "PrimereAnyOutput",
"pos": [
562.6930916032595,
-853.9760202140844
],
"size": [
682.0786325349364,
88
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 668
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PrimereAnyOutput",
"cnr_id": "comfyui_primere_nodes",
"ver": "ce14e5d0f46aaa12155853e05132bffb2ee70361"
},
"widgets_values": [
"<google.genai.client.Client object at 0x000001BE4B82D7F0>"
]
},
{
"id": 16,
"type": "PrimereFastSeed",
"pos": [
919.9262216082626,
-135.12732131406113
],
"size": [
330.364340787964,
149.12278620629877
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SEED",
"type": "INT",
"links": [
53,
666
]
}
],
"properties": {
"Node name for S&R": "PrimereFastSeed",
"cnr_id": "comfyui_primere_nodes",
"ver": "782a54aaf8138894f4bfd2254326af3564da4cbb"
},
"widgets_values": [
"Random",
42,
"Last seed: [377598869947151]"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 9,
"type": "PrimitiveStringMultiline",
"pos": [
480.79284780821257,
-541.1178926016723
],
"size": [
776.6426780712893,
348.84780081063036
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
659
]
}
],
"properties": {
"Node name for S&R": "PrimitiveStringMultiline",
"cnr_id": "comfy-core",
"ver": "0.14.1"
},
"widgets_values": [
"The woman drinks the champagne glass, throws it behind her, the glass breaks on the ground, and the camera shows her posing from a distance."
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 15,
"type": "PrimereResolution",
"pos": [
907.2304520484324,
74.63197113044764
],
"size": [
361.37166959228534,
310
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "seed",
"shape": 7,
"type": "INT",
"link": 53
},
{
"name": "model_version",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "model_concept",
"shape": 7,
"type": "STRING",
"link": null
}
],
"outputs": [
{
"name": "WIDTH",
"type": "INT",
"links": [
663
]
},
{
"name": "HEIGHT",
"type": "INT",
"links": [
664
]
},
{
"name": "SQUARE_SHAPE",
"type": "INT",
"links": null
},
{
"name": "ASPECT_RATIO",
"type": "STRING",
"links": [
665
]
}
],
"properties": {
"Node name for S&R": "PrimereResolution",
"cnr_id": "comfyui_primere_nodes",
"ver": "782a54aaf8138894f4bfd2254326af3564da4cbb"
},
"widgets_values": [
"HD screen [16:9]",
false,
1024,
false,
"Vertical",
false,
false,
1.6,
2.8
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 27,
"type": "PrimerePreviewImage",
"pos": [
1299.5657499361994,
-535.7278327133808
],
"size": [
1073.2593828125005,
1628.4858571984864
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"shape": 7,
"type": "IMAGE",
"link": 667
},
{
"name": "image_metadata",
"shape": 7,
"type": "TUPLE",
"link": null
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PrimerePreviewImage",
"cnr_id": "comfyui_primere_nodes",
"ver": "834548535af27d52c9b7e6359af399a18cd8260e"
},
"widgets_values": [
false,
"jpeg",
0,
95,
"Checkpoint",
"Overwrite",
false,
"ERROR: Cannot list target for Checkpoint",
"ERROR: Cannot list target for Checkpoint",
null
]
},
{
"id": 5,
"type": "PrimereAnyOutput",
"pos": [
-562.1470541984071,
404.67788200083805
],
"size": [
926.2206882503098,
1078.7652401045225
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 671
}
],
"outputs": [],
"title": "Primere Any Debug - RENDERED",
"properties": {
"Node name for S&R": "PrimereAnyOutput",
"cnr_id": "comfyui_primere_nodes",
"ver": "ce14e5d0f46aaa12155853e05132bffb2ee70361"
},
"widgets_values": [
"{\n \"provider\": \"Gemini\",\n \"endpoint\": \"client.models.generate_content\",\n \"method\": \"SDK\",\n \"headers\": {},\n \"query\": {},\n \"body\": null,\n \"sdk_call\": {\n \"kwargs\": {\n \"model\": \"gemini-2.5-flash-image\",\n \"contents\": [\n \"The woman drinks the champagne glass, throws it behind her, the glass breaks on the ground, and the camera shows her posing from a distance.\"\n ],\n \"config\": {\n \"$call\": \"types.GenerateContentConfig\",\n \"$kwargs\": {\n \"response_modalities\": [\n \"IMAGE\"\n ],\n \"image_config\": {\n \"$call\": \"types.ImageConfig\",\n \"$kwargs\": {\n \"aspect_ratio\": \"9:16\",\n \"image_size\": \"1K\"\n }\n }\n }\n }\n }\n },\n \"request_exclusions\": [\n {\n \"when\": {\n \"path\": \"model\",\n \"equals\": \"gemini-2.5-flash-image\"\n },\n \"remove\": [\n \"config.thinking_config\",\n \"thinking_level\",\n \"include_thoughts\"\n ]\n },\n {\n \"when\": {\n \"path\": \"model\",\n \"equals\": \"gemini-3-pro-image-preview\"\n },\n \"remove\": [\n \"config.thinking_config\"\n ]\n }\n ]\n}"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 47,
"type": "PrimereAnyOutput",
"pos": [
382.6832751130691,
479.48708625661214
],
"size": [
887.1002652508323,
1079.130111868482
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 672
}
],
"outputs": [],
"title": "Primere Any Debug - RAW PAYLOAD",
"properties": {
"Node name for S&R": "PrimereAnyOutput",
"cnr_id": "comfyui_primere_nodes",
"ver": "ce14e5d0f46aaa12155853e05132bffb2ee70361"
},
"widgets_values": [
"{\n \"model\": \"gemini-2.5-flash-image\",\n \"contents\": [\n \"The woman drinks the champagne glass, throws it behind her, the glass breaks on the ground, and the camera shows her posing from a distance.\"\n ],\n \"config\": {\n \"$call\": \"types.GenerateContentConfig\",\n \"$kwargs\": {\n \"response_modalities\": [\n \"IMAGE\"\n ],\n \"image_config\": {\n \"$call\": \"types.ImageConfig\",\n \"$kwargs\": {\n \"aspect_ratio\": \"9:16\",\n \"image_size\": \"1K\"\n }\n }\n }\n }\n}"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 44,
"type": "PrimereAnyOutput",
"pos": [
417.10068419326393,
1639.6982827343093
],
"size": [
886.5942706627679,
739.8065007039345
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 675
}
],
"outputs": [],
"title": "Primere Any Debug - API RESULT",
"properties": {
"Node name for S&R": "PrimereAnyOutput",
"cnr_id": "comfyui_primere_nodes",
"ver": "ce14e5d0f46aaa12155853e05132bffb2ee70361"
},
"widgets_values": [
"None"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 6,
"type": "PrimereAnyOutput",
"pos": [
-529.1288387542817,
1599.6816716081137
],
"size": [
906.2637000063987,
628.220628990278
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 673
}
],
"outputs": [],
"title": "Primere Any Debug - REQUEST BODY",
"properties": {
"Node name for S&R": "PrimereAnyOutput",
"cnr_id": "comfyui_primere_nodes",
"ver": "ce14e5d0f46aaa12155853e05132bffb2ee70361"
},
"widgets_values": [
"{\n \"model\": \"gemini-2.5-flash-image\",\n \"prompt\": \"The woman drinks the champagne glass, throws it behind her, the glass breaks on the ground, and the camera shows her posing from a distance.\",\n \"config_response_modalities_0\": \"IMAGE\",\n \"aspect_ratio\": \"9:16\",\n \"image_size\": \"1K\"\n}"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 4,
"type": "PrimereAnyOutput",
"pos": [
-1455.8701520921347,
-603.3079376896651
],
"size": [
850.4711965960701,
1262.834388548706
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 670
}
],
"outputs": [],
"title": "Primere Any Debug - SCHEMA",
"properties": {
"Node name for S&R": "PrimereAnyOutput",
"cnr_id": "comfyui_primere_nodes",
"ver": "ce14e5d0f46aaa12155853e05132bffb2ee70361"
},
"widgets_values": [
"{\n \"provider\": \"Gemini\",\n \"service\": \"Nanobanana\",\n \"response_handler\": \"Gemini_Nanobanana.py\",\n \"import_modules\": [\n \"from google import genai\",\n \"from google.genai import types\"\n ],\n \"possible_parameters\": {\n \"aspect_ratio\": [\n \"1:1\",\n \"1:4\",\n \"1:8\",\n \"2:3\",\n \"3:2\",\n \"3:4\",\n \"4:1\",\n \"4:3\",\n \"4:5\",\n \"5:4\",\n \"8:1\",\n \"9:16\",\n \"16:9\",\n \"21:9\"\n ],\n \"resolution\": [\n \"1K\",\n \"512px\",\n \"2K\",\n \"4K\"\n ],\n \"model\": [\n \"gemini-2.5-flash-image\",\n \"gemini-3-pro-image-preview\",\n \"gemini-3.1-flash-image-preview\"\n ],\n \"thinking_level\": [\n \"minimal\",\n \"high\"\n ],\n \"include_thoughts\": [\n false,\n true\n ]\n },\n \"request_exclusions\": [\n {\n \"when\": {\n \"path\": \"model\",\n \"equals\": \"gemini-2.5-flash-image\"\n },\n \"remove\": [\n \"config.thinking_config\",\n \"thinking_level\",\n \"include_thoughts\"\n ]\n },\n {\n \"when\": {\n \"path\": \"model\",\n \"equals\": \"gemini-3-pro-image-preview\"\n },\n \"remove\": [\n \"config.thinking_config\"\n ]\n }\n ],\n \"request\": {\n \"method\": \"SDK\",\n \"endpoint\": \"client.models.generate_content\",\n \"sdk_call\": {\n \"args\": [],\n \"kwargs\": {\n \"model\": \"{{model}}\",\n \"contents\": [\n \"{{prompt}}\",\n \"{{reference_images}}\"\n ],\n \"config\": {\n \"$call\": \"types.GenerateContentConfig\",\n \"$args\": [],\n \"$kwargs\": {\n \"response_modalities\": [\n \"{{config_response_modalities_0}}\"\n ],\n \"image_config\": {\n \"$call\": \"types.ImageConfig\",\n \"$args\": [],\n \"$kwargs\": {\n \"aspect_ratio\": \"{{aspect_ratio}}\",\n \"image_size\": \"{{image_size}}\"\n }\n }\n }\n }\n }\n }\n }\n}"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 8,
"type": "PrimereAnyOutput",
"pos": [
1303.6076623504318,
1158.0665681566386
],
"size": [
1066.9028946534431,
1163.5127427084483
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 674
}
],
"outputs": [],
"title": "Primere Any Debug - API SCHEMAS",
"properties": {
"Node name for S&R": "PrimereAnyOutput",
"cnr_id": "comfyui_primere_nodes",
"ver": "ce14e5d0f46aaa12155853e05132bffb2ee70361"
},
"widgets_values": [
"None"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 76,
"type": "PrimereApiProcessor",
"pos": [
-253.36638311324856,
-548.3233034269159
],
"size": [
687.9337945859295,
870
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "prompt",
"type": "STRING",
"link": 659
},
{
"name": "negative_prompt",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "reference_images",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "first_image",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "last_image",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "frontal_image",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "reference_video",
"shape": 7,
"type": "VIDEO",
"link": null
},
{
"name": "width",
"shape": 7,
"type": "INT",
"link": 663
},
{
"name": "height",
"shape": 7,
"type": "INT",
"link": 664
},
{
"name": "aspect_ratio",
"shape": 7,
"type": "STRING",
"link": 665
},
{
"name": "seed",
"shape": 7,
"type": "INT",
"link": 666
}
],
"outputs": [
{
"name": "RESULT",
"type": "IMAGE",
"links": [
667
]
},
{
"name": "CLIENT",
"type": "APICLIENT",
"links": [
668
]
},
{
"name": "PROVIDER",
"type": "STRING",
"links": [
669
]
},
{
"name": "SCHEMA",
"type": "TUPLE",
"links": [
670
]
},
{
"name": "RENDERED",
"type": "TUPLE",
"links": [
671
]
},
{
"name": "RAW_PAYLOAD",
"type": "TUPLE",
"links": [
672
]
},
{
"name": "REQUEST_BODY",
"type": "TUPLE",
"links": [
673
]
},
{
"name": "API_SCHEMAS",
"type": "TUPLE",
"links": [
674
]
},
{
"name": "API_RESULT",
"type": "TUPLE",
"links": [
675
]
}
],
"properties": {
"Node name for S&R": "PrimereApiProcessor"
},
"widgets_values": [
null,
true,
true,
"Gemini",
"Nanobanana",
1,
true,
"e:\\!Works\\AI\\AIPICS\\ComfyAPI\\[time(%Y-%m-Week-%W)]",
"None",
true,
true,
true,
"API",
"_",
true,
true,
1,
false,
"jpg",
95,
true,
true,
"1K",
"gemini-2.5-flash-image",
"minimal",
false
],
"color": "#233",
"bgcolor": "#355"
}
],
"links": [
[
53,
16,
0,
15,
0,
"INT"
],
[
659,
9,
0,
76,
0,
"STRING"
],
[
663,
15,
0,
76,
7,
"INT"
],
[
664,
15,
1,
76,
8,
"INT"
],
[
665,
15,
3,
76,
9,
"STRING"
],
[
666,
16,
0,
76,
10,
"INT"
],
[
667,
76,
0,
27,
0,
"IMAGE"
],
[
668,
76,
1,
2,
0,
"APICLIENT"
],
[
669,
76,
2,
3,
0,
"STRING"
],
[
670,
76,
3,
4,
0,
"TUPLE"
],
[
671,
76,
4,
5,
0,
"TUPLE"
],
[
672,
76,
5,
47,
0,
"TUPLE"
],
[
673,
76,
6,
6,
0,
"TUPLE"
],
[
674,
76,
7,
8,
0,
"TUPLE"
],
[
675,
76,
8,
44,
0,
"TUPLE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5644739300537776,
"offset": [
1764.9150115137084,
866.100037366321
]
},
"frontendVersion": "1.41.21"
},
"version": 0.4
}