{"id":35746398,"url":"https://github.com/Koko-boya/Comfyui-GeminiWeb","last_synced_at":"2026-01-12T20:00:47.144Z","repository":{"id":331717165,"uuid":"1127005148","full_name":"Koko-boya/Comfyui-GeminiWeb","owner":"Koko-boya","description":"ComfyUI node for Gemini Web API - text-to-image, image-to-image, and chat with multi-image input support","archived":false,"fork":false,"pushed_at":"2026-01-10T23:46:08.000Z","size":91,"stargazers_count":42,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T07:12:59.411Z","etag":null,"topics":["comfyui","comfyui-custom-node","google-gemini","nano-banana","webapp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Koko-boya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-03T01:28:33.000Z","updated_at":"2026-01-10T23:46:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Koko-boya/Comfyui-GeminiWeb","commit_stats":null,"previous_names":["koko-boya/comfyui-geminiweb"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Koko-boya/Comfyui-GeminiWeb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koko-boya%2FComfyui-GeminiWeb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koko-boya%2FComfyui-GeminiWeb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koko-boya%2FComfyui-GeminiWeb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koko-boya%2FComfyui-GeminiWeb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Koko-boya","download_url":"https://codeload.github.com/Koko-boya/Comfyui-GeminiWeb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Koko-boya%2FComfyui-GeminiWeb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28354965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T16:14:38.383Z","status":"ssl_error","status_checked_at":"2026-01-12T16:14:34.289Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comfyui","comfyui-custom-node","google-gemini","nano-banana","webapp"],"created_at":"2026-01-06T18:00:43.709Z","updated_at":"2026-01-12T20:00:47.108Z","avatar_url":"https://github.com/Koko-boya.png","language":"Python","funding_links":[],"categories":["Workflows created in 7 days"],"sub_categories":[],"readme":"# Comfyui-GeminiWeb\n\nCustom ComfyUI nodes for **Google Gemini** image generation and editing using the Gemini web interface.\n\n![Gemini](https://img.shields.io/badge/Google-Gemini-blue?logo=google)\n![ComfyUI](https://img.shields.io/badge/ComfyUI-Custom%20Node-green)\n\n\u003e **Security Warning**\n\u003e \n\u003e This node accesses your browser cookies for authentication. Please be aware:\n\u003e - **Local use only** - Do not run on shared computers or public networks\n\u003e - **Cookie extraction** - The app scans your browser for Google session cookies\n\u003e - **Plain text storage** - Cookies may be stored in memory during session\n\u003e - **No SSL verification** - Requests may not verify SSL certificates\n\u003e \n\u003e Use at your own risk. Only run this on your personal, private machine.\n\n\u003e **Note:** This is released as-is with no active maintenance planned. Pull Requests are welcome if you'd like to fix issues or improve the project!\n\n## Features\n\n- **Text-to-Image** - Generate images from text using Gemini's native image model\n- **Image-to-Image** - Edit/transform images with natural language\n- **Vision Chat** - Chat with Gemini about images\n- **Multi-Image Input** - Support for up to 5 reference images\n- **Watermark Filter** - Choose between watermarked, non-watermarked, or all images\n- **Auto Authentication** - Supports browser cookie auto-detection\n- **Self-Contained** - All dependencies bundled, no external API package needed\n\n## Installation\n\n### 1. Clone or Download\n\n```bash\ncd ComfyUI/custom_nodes\ngit clone https://github.com/Koko-boya/Comfyui-GeminiWeb.git\n```\n\nOr download and extract to `ComfyUI/custom_nodes/Comfyui-GeminiWeb`\n\n### 2. Install Dependencies\n\n```bash\ncd Comfyui-GeminiWeb\npip install -r requirements.txt\n```\n\n### 3. Restart ComfyUI\n\n## Authentication Setup\n\nModern Chrome/Edge (v127+) uses **App-Bound Encryption (v20)** which requires special handling.\n\n### Option 1: Manual (Recommended)\n\nThe simplest and most reliable method:\n\n1. Login to [gemini.google.com](https://gemini.google.com)\n2. Press **F12** → **Application** → **Cookies** → **gemini.google.com**\n3. Copy `__Secure-1PSID` and `__Secure-1PSIDTS` values\n4. Paste directly into the node's cookie inputs\n\n### Option 2: Cookie File\n\nStore cookies in a file for reuse:\n\n1. Edit `gemini_cookies.txt` in the node folder:\n   ```\n   __Secure-1PSID=your_value_here\n   __Secure-1PSIDTS=your_value_here\n   ```\n2. Use **\"cookie_file\"** in the node\n\n### Option 3: Auto Cookies (Run as Administrator)\n\nFor automatic v20 cookie decryption (**Edge only tested**):\n\n1. **Run ComfyUI as Administrator**\n2. Login to gemini.google.com in **Edge**\n3. **Close the browser completely** (important!)\n   - Make sure the browser is not running in the background\n   - Check Task Manager and end any Edge/Chrome processes\n4. Use **\"auto_cookies\"** in the node\n\n\u003e **Why Admin?** Chrome/Edge 127+ use App-Bound Encryption (v20) which \n\u003e requires SYSTEM-level access to decrypt. Currently only Edge is tested.\n\n## Node: GeminiWeb\n\nUnified node for all Gemini operations.\n\n### Inputs\n\n| Input | Type | Description |\n|-------|------|-------------|\n| mode | ENUM | `text_to_image`, `image_to_image`, or `chat` |\n| prompt | STRING | Text prompt |\n| auth_method | ENUM | `auto_cookies`, `cookie_file`, or `manual` |\n| image_1 | IMAGE | Primary input image |\n| image_2 | IMAGE | Optional reference image |\n| image_3 | IMAGE | Optional reference image |\n| image_4 | IMAGE | Optional reference image |\n| image_5 | IMAGE | Optional reference image |\n| model | ENUM | Gemini model to use |\n| timeout | INT | API timeout (30-600 seconds) |\n| image_filter | ENUM | `all`, `no_watermark`, or `watermarked` |\n| cookie_1PSID | STRING | Cookie (manual mode) |\n| cookie_1PSIDTS | STRING | Cookie (optional) |\n\n### Outputs\n\n| Output | Type | Description |\n|--------|------|-------------|\n| image | IMAGE | Generated/edited image(s) |\n| response_text | STRING | Text response from Gemini |\n| thinking | STRING | Model thinking/reasoning |\n\n### Modes\n\n- **text_to_image**: Generate images from text prompts\n- **image_to_image**: Edit/transform input images using text instructions\n- **chat**: Chat with Gemini (text response, optional image input for vision)\n\n### Image Filter\n\n| Filter | Description |\n|--------|-------------|\n| `all` | Return all generated images |\n| `no_watermark` | Return only non-watermarked images (JPEG) |\n| `watermarked` | Return only watermarked images (PNG) |\n\n## Example Workflows\n\n### Text-to-Image Generation\n```\n[GeminiWeb (text_to_image)] → [Preview Image]\n```\n\n### Image Editing with References\n```\n[Load Image 1] → image_1 ─┐\n[Load Image 2] → image_2 ─┼→ [GeminiWeb (image_to_image)] → [Save Image]\n[Load Image 3] → image_3 ─┘\n```\n\n### Vision Chat\n```\n[Load Image] → image_1 → [GeminiWeb (chat)] → [Text Output]\n```\n\n## Available Models\n\n| Model | Description |\n|-------|-------------|\n| `unspecified` | Default model (uses Gemini's default) |\n| `gemini-3-pro` | Pro model |\n| `gemini-3-thinking` | Thinking model |\n| `gemini-3-flash` | Fast model (default) |\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| \"Cookie expired\" | Re-login to gemini.google.com and update cookies |\n| \"v20 App-Bound Encryption\" | Use `manual` method (recommended) or run as Admin with Edge |\n| \"No browser cookies found\" | Use `manual` or `cookie_file` method (recommended) |\n| \"Cookie file not found\" | Create `gemini_cookies.txt` with your cookies |\n| \"No images generated\" | Try adding \"generate\" to your prompt |\n| Import errors | Run `pip install -r requirements.txt` |\n| Region restrictions | Image generation may not be available in all regions |\n| v20 not decrypting | Run as Admin + close Edge + PythonForWindows installed |\n\n### Reporting Issues\n\nIf you encounter problems, please open an issue with the prompt you used, or enable **debug_mode** in the node and attach the `debug_request.txt` file (found in the node's directory under `custom_nodes/Comfyui-GeminiWeb/`).\n\n\u003e ⚠️ **Do NOT share `debug_response.txt`** — it may contain your location and other personal details from Google.\n\n## Credits\n\n- Based on [Gemini-API](https://github.com/HanaokaYuzu/Gemini-API) by HanaokaYuzu (vendored)\n- v20 Cookie Decryption based on [chrome_v20_decryption](https://github.com/runassu/chrome_v20_decryption) by runassu\n- ComfyUI Community\n\n## License\n\nThis project is licensed under **AGPL-3.0** (same as the vendored Gemini-API library).\n\nSee [LICENSE](LICENSE) for details.\n\n### Third-Party Code\n\nThe `gemini_webapi/` directory contains code from [Gemini-API](https://github.com/HanaokaYuzu/Gemini-API) by HanaokaYuzu, licensed under AGPL-3.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKoko-boya%2FComfyui-GeminiWeb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKoko-boya%2FComfyui-GeminiWeb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKoko-boya%2FComfyui-GeminiWeb/lists"}