Skip to content

Conversation

@Kosinkadink
Copy link
Collaborator

@Kosinkadink Kosinkadink commented Aug 26, 2025

Initial code for this PR was made by @bigcat88 , I finished the remainder required to work with the API endpoint.

Associated frontend PR: Comfy-Org/ComfyUI_frontend#5219

image

returned_image = bytesio_to_image_tensor(BytesIO(image_data))
image_tensors.append(returned_image)
if len(image_tensors) == 0:
return torch.zeros((1,1024,1024,4))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's pretty large

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the res of the image that Gemini returns normally, I tried to keep it the same so that previews don't get resized too much

Copy link
Collaborator

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote these nodes initially and it LGTM

@comfyanonymous comfyanonymous merged commit 47f4db3 into master Aug 27, 2025
12 checks passed
@comfyanonymous comfyanonymous deleted the gemini-image branch August 27, 2025 02:20
toxicwind pushed a commit to toxicwind/ComfyUI that referenced this pull request Oct 12, 2025
* bigcat88's progress on adding Google Gemini Image node

* Made Google Gemini Image node functional

* Bump frontend version to get static pricing badge on Gemini Image node
adlerfaulkner pushed a commit to LucaLabsInc/ComfyUI that referenced this pull request Oct 16, 2025
* bigcat88's progress on adding Google Gemini Image node

* Made Google Gemini Image node functional

* Bump frontend version to get static pricing badge on Gemini Image node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core Core team dependency Core-Important

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants