Creates images and video via Alibaba Wan 2.6 (DashScope), Google Gemini/Veo, and OpenAI GPT Image 1.5 APIs, plus background extraction workflows. Trigger terms: image generation, video generation, dashscope, wan 2.6, alibaba, gemini, veo, gpt image, openai images, background removal, alpha extraction, transparent png.
artifacts/ (PNG, WEBP, MP4, etc.) or API JSON responses when requested.GPT Image 1.5 supports native transparency output. This is the simplest and most reliable method:
curl -X POST "https://api.openai.com/v1/images/generations" \
-H "Authorization: Bearer ${OPENAI_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-1.5",
"prompt": "A cute cartoon cat mascot",
"size": "1024x1024",
"quality": "high",
"background": "transparent",
"output_format": "png"
}'
Notes:
background: "transparent" requires output_format: "png" or "webp"data[0].b64_json⚠️ IMPORTANT LIMITATION: This workflow ONLY works when you have control over the exact pixel output:
The algorithm requires IDENTICAL foreground pixels across all three images. Generative AI models produce different outputs even with the same prompt.
For 3D/compositing use:
python3 scripts/extract_transparency.py \
--black render_black.png \
--white render_white.png \
--colored render_red.png \
--output result.png
For AI-generated images that need transparency:
The following environment variables should be set for API access:
OPENAI_API_KEY - For GPT Image 1.5 generationsGOOGLE_GENAI_API_KEY - For Gemini image/Veo video generationDASHSCOPE_API_KEY - For Alibaba Wan 2.6 image/video generationreferences/alibaba-wan-api.md for Wan 2.6 endpoints and parameters (image, T2V, I2V).references/gemini-banana-api.md for Gemini image and Veo video in the Gemini API.references/openai-gpt-image-api.md for GPT Image 1.5 endpoints and parameters.references/background-removal-3-bg.md for the three-background alpha extraction algorithm.<encrypted> tags.| Provider | Model | Use Case |
|----------|-------|----------|
| OpenAI | gpt-image-1.5 | Best for transparent images, high quality |
| OpenAI | gpt-image-1 | Image edits/inpainting |
| Google | gemini-2.5-flash-image | Fast image generation |
| Google | veo-3.1-generate-preview | Video generation |
| Alibaba | wan2.6-t2v | Text-to-video |
| Alibaba | wan2.6-i2v | Image-to-video |
| Alibaba | wan2.6-image | Image generation (fewer restrictions) |
<encrypted> tags; they are encrypted at rest.scripts/extract_transparency.py - Extract RGBA from black/white/red background images.
Usage: python3 scripts/extract_transparency.py --black img_black.png --white img_white.png --colored img_red.png --output result.pngGenerate or edit images via Gemini 3 Pro Image (Nano Banana Pro).
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
Generate spectrograms and feature-panel visualizations from audio with the songsee CLI.
Extract frames or short clips from videos using ffmpeg.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.
Category:media-generate