
Gemini Web Image and Text Generator
Lets an agent generate text and images through the Gemini web interface, using your browser login cookies.
- Repository
- JimLiu/baoyu-skills
- Stars
- 27,191
- Licence
- MIT
- Files
- 15 files
What it does
Once installed, the agent can send prompts to Google's Gemini chat service and get back text or generated images, including images based on reference pictures and multi-turn chats that remember earlier messages. It does this by calling an unofficial, reverse-engineered version of the Gemini web API through a TypeScript script run with Bun or npx, rather than through Google's official developer API. Authentication relies on cookies from your signed-in browser session, which the script can refresh by opening or reusing a local Chrome/Chromium session.
Great for
- Developers who want an agent to create images or text with Gemini without buying API access
- Creators who want image generation as a backend for other skills
- Users who already have a Google account signed in to Gemini in their browser
Skip it if
- Production or commercial systems that need stable, supported access, because the API is unofficial and can break or be blocked without notice
- Anyone uncomfortable with a script reusing their Google login cookies or driving their browser session, since this carries account risk and may violate Google's terms
Try asking
- “Generate an image of a cute cat and save it as cat.png using Gemini”
- “Describe this reference image using Gemini vision”
- “Create a variation of reference.png and save the result as out.png”
- “Continue a multi-turn Gemini conversation under session abc”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 15 original files, the MIT licence and an attribution note.
baoyu-danger-gemini-web.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip baoyu-danger-gemini-web.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip baoyu-danger-gemini-web.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Set --profile-dir or GEMINI_WEB_CHROME_PROFILE_DIR to use a dedicated browser profile instead of reusing your everyday Chrome session
- Review the consent disclaimer carefully on first use, since the skill requires explicit acceptance of reverse-engineered API usage
- Use --login to refresh cookies when requests start failing, and keep the cookie file private
What's inside
- scripts/gemini-webapi/client.test.ts
- scripts/gemini-webapi/client.ts
- scripts/gemini-webapi/components/gem-mixin.ts
- scripts/gemini-webapi/components/index.ts
- scripts/gemini-webapi/constants.ts
- scripts/gemini-webapi/exceptions.ts
- scripts/gemini-webapi/index.ts
- scripts/gemini-webapi/types/candidate.ts
- scripts/gemini-webapi/types/gem.ts
- scripts/gemini-webapi/types/grpc.ts
- scripts/gemini-webapi/types/image.ts
- scripts/gemini-webapi/types/index.ts
- scripts/gemini-webapi/types/modeloutput.ts
- scripts/gemini-webapi/utils/cookie-file.ts
- SKILL.md
Redistributed unmodified from JimLiu/baoyu-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.