generate-transparent-image

Generate images via Gemini API and remove backgrounds with WaveSpeed AI to output transparent PNGs.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/tegnike/ai-agent-game-streamer --skill generate-transparent-image
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-transparent-image
Source: https://github.com/tegnike/ai-agent-game-streamer/tree/main/.agents/skills/generate-transparent-image
Command: npx skills add https://github.com/tegnike/ai-agent-game-streamer --skill generate-transparent-image

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, Pillow, and includes scripts (resource) components.

What problem does it solve?

This skill automates creating design assets by generating images from prompts through the Gemini API and removing backgrounds automatically with WaveSpeed AI, producing PNGs with alpha transparency.

Core Features & Use Cases

  • Generate images from text prompts using Gemini API.
  • Optional reference images can be provided to influence style or content.
  • Background removal via WaveSpeed AI to output PNGs with transparency.
  • Outputs are ready for design pipelines, e-commerce visuals, avatars, and marketing assets.

Quick Start

Set GEMINI_API_KEY and WAVESPEED_API_KEY in your environment, then run:

export GEMINI_API_KEY=YOUR_KEY export WAVESPEED_API_KEY=YOUR_KEY

python .agents/skills/generate-transparent-image/scripts/generate_transparent.py "背景透過画像を生成: 白い猫、実写風" -o cat.png

You can also specify aspect ratio:

python .agents/skills/generate-transparent-image/scripts/generate_transparent.py "背景透過画像を生成: 白い犬、イラスト風" --aspect-ratio 3:4 -o dog.png

Frequently Asked Questions about generate-transparent-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate AI images with transparent backgrounds as PNGs?

You need to set the GEMINI_API_KEY and WAVESPEED_API_KEY environment variables before running the script to authorize image generation and background removal API calls.

Can I use a reference image to influence transparent PNG generation?

Yes, you can provide optional reference images alongside text prompts to guide the style or content of the generated image before the background is removed.

How do I set the aspect ratio for transparent background images?

You can specify an aspect ratio using the --aspect-ratio flag in the command line, such as 3:4, to define the dimensions of the generated image before background removal.

What is the best way to automate creating transparent product visuals?

Automating transparent product visuals is best done by chaining the Gemini API for prompt-based generation and WaveSpeed AI for background removal, outputting ready-to-use transparent PNG files for e-commerce workflows.