mainza-ai/milimovideo/google-ai
Claude Code and agent skill by mainza-ai/milimovideo
- community
Checking that the SKILL.md file is still in the repository.
Full integration guide for Google's latest AI media generation services: Imagen 4 (image generation, editing, upscaling), Veo 3/3.1 (video generation, image-to-video, video extension), Lyria 2 (music generation), and Gemini multimodal image generation — all via the unified Google Gen AI SDK (google-genai). Use this skill whenever the user wants to generate, edit, or manipulate images or video using Google AI, work with Vertex AI media APIs, build creative content pipelines, integrate Imagen or…
Install
npx vskill@latest install mainza-ai/milimovideo/google-aiSKILL.md
Google GenAI Media Services — Full Integration Guide
Last verified: February 2026SDK:google-genai(unified, replaces legacygoogle-generativeaiwhich EOL'd Nov 2025)Docs: https://googleapis.github.io/python-genai/ | https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models
1. SDK Setup (Always Start Here)
Installation
⚠️ Never usegoogle-generativeai(legacy, EOL November 30, 2025). Always usegoogle-genai.
Client Initialization
Gemini Developer API (AI Studio — easiest for prototyping):
Vertex AI (enterprise, required for image editing & upscaling):
Authentication for Vertex AI:
2. Recommended Models (as of Feb 2026)
Image Generation
| Model ID | Use Case | |
|---|---|---|
imagen-4.0-generate-001 | ✅ GA — best quality text-to-image | |
imagen-4.0-ultra-generate-001 | ✅ GA — highest fidelity, slower | |
imagen-4.0-fast-generate-001 | ✅ GA — fast generation, simpler prompts | |
imagen-3.0-generate-002 | Stable fallback if Imagen 4 unavailable |
Image Editing (Vertex AI only)
| Model ID | Use Case | |
|---|---|---|
imagen-3.0-capability-001 | Inpainting, outpainting, background edit | |
imagen-product-recontext-preview-06-30 | Product image background replacement |
Video Generation
| Model ID | Use Case | |
|---|---|---|
veo-3.1-generate-preview | ✅ Best quality, advanced controls | |
veo-3.1-fast-generate-preview | Fast generation, lower latency | |
veo-3.0-generate-001 | GA stable high-fidelity | |
veo-3.0-fast-generate-001 | GA fast video | |
veo-2.0-generate-001 | Stable fallback; also supports style images |
Gemini Multimodal Image Generation
| Model ID | Use Case | |
|---|---|---|
gemini-2.5-flash-image | Fast image gen+edit via chat | |
gemini-3-pro-image-preview | Highest quality via chat |
Music Generation (Vertex AI)
| Model ID | Use Case | |
|---|---|---|
lyria-002 | GA — text-to-music, studio-grade |
3. Image Generation with Imagen 4
Text-to-Image (Basic)
Save Image to File (PIL)
Image Upscaling (Vertex AI only)
4. Image Editing with Imagen (Vertex AI Only)
All editing operations require a Vertex AI client and imagen-3.0-capability-001.
Inpainting — Insert into Masked Region
Mask Modes
mask_mode | Behavior | |
|---|---|---|
MASK_MODE_BACKGROUND | Auto-mask the background | |
MASK_MODE_FOREGROUND | Auto-mask the foreground subject | |
MASK_MODE_SEMANTIC | Mask by semantic segment (e.g., "sky") | |
MASK_MODE_USER_PROVIDED | Use your own binary mask image |
Edit Modes
edit_mode | Behavior | |
|---|---|---|
EDIT_MODE_INPAINT_INSERTION | Generate content inside the mask | |
EDIT_MODE_INPAINT_REMOVAL | Remove masked content, fill naturally | |
EDIT_MODE_OUTPAINT | Extend image beyond borders | |
EDIT_MODE_BGSWAP | Full background replacement | |
EDIT_MODE_PRODUCT_IMAGE | Product recontext (background scenes) |
5. Video Generation with Veo
⚠️ Cost warning: Veo is significantly more expensive than image generation. Always check current pricing at https://cloud.google.com/vertex-ai/generative-ai/pricing before running in production.
Video generation is asynchronous — submit a job, then poll until complete.
Text-to-Video (Basic)
Image-to-Video
Video Extension (Veo 2 — Vertex AI)
Advanced Video Controls (Veo 3.1)
Note: Style images withreferenceImages.stylerequireveo-2.0-generate-exp— Veo 3.1 does NOT support style reference images.
6. Gemini Multimodal Image Generation (Chat-based)
Gemini image models allow iterative edit-in-conversation workflows.
7. Async Usage
8. GCS Output Pattern (Production)
For production workflows, always write outputs to GCS rather than returning bytes:
9. Safety & Content Filters
All Google media models include automatic SynthID digital watermarking in every output.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/skills/google-ai/SKILL.md
Popularity
- Repository stars
- 89
- Repository forks
- 22
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mainza-ai/milimovideo/google-ai)