generate-nanobanana
Skill này làm gì
Công cụ này tạo và chỉnh sửa hình ảnh và video bằng các mô hình tiên tiến của Google Gemini. Bạn có thể dùng hình ảnh tham chiếu để định hướng việc tạo, và mọi thứ được ghi nhật ký kèm chi tiết về chi phí và prompt đã dùng.
Khi nào nên dùng
- ✓Khi bạn muốn tạo hình ảnh hoặc video từ một mô tả.
- ✓Khi bạn muốn dùng một hình ảnh có sẵn làm nguồn cảm hứng hoặc mẫu.
- ✓Khi bạn muốn đảm bảo sản phẩm tạo ra theo đúng một phong cách hoặc thương hiệu cụ thể.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/generate-nanobanana/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một hình ảnh con mèo phi hành gia bằng hình tham chiếu 'my_cat.jpg' và phong cách thương hiệu 'company_logo.png'.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ chọn mô hình Google Gemini phù hợp nhất cho tác vụ của bạn, dù là hình ảnh hay video. Nó dùng hướng dẫn của bạn và, nếu có, các hình ảnh tham chiếu để tạo kết quả. Trước mỗi lần sử dụng có phí, nó sẽ hỏi ý kiến bạn và cho biết chi phí.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Generate Nanobanana
Overview
generate-nanobanana calls Google's Gemini media models directly through the Gemini API — no third-party routing layer — to generate and edit images and video. It routes each request to the right model tier (draft, standard, quality, or video), loads real reference images instead of relying on text descriptions, gates every paid call behind explicit user approval, and writes a JSON sidecar next to every output recording the exact prompt, model, and cost. It registers a single /generate command.
This skill adapts the workflow (model routing, reference-image handling, sidecar logging) from AntonioCardenas/generate-nanobanana. The actual request shapes in references/ were independently verified against the live Gemini API docs rather than copied from that upstream repo, whose examples predate Google's migration to the Interactions API and use stale, non-functional request methods. Model IDs, request contracts, and pricing all change on Google's own schedule — re-verify against the docs linked from each reference file before relying on this skill in a new session.
When to Use This Skill
- Use when the user asks to generate, create, or make an image or video, or wants a thumbnail.
- Use when the user wants to animate a still image, or says "generate on brand" or "generate from reference".
- Use when the user wants to link or import a folder of reference images (logos, faces, product shots) for reuse across generations.
- Use when the user invokes
/generateor/generate frf <set>, even without naming a specific model.
How It Works
Step 1: Route to a model
Pick the model for the job and read its reference file under references/ before calling anything — each file holds the current, verified request shape for that model.
| Task | Model | Model ID | Reference |
|---|---|---|---|
| Image (draft) | Nano Banana 2 Lite | gemini-3.1-flash-lite-image |
references/gemini-3.1-flash-lite-image.md |
| Image (standard) | Nano Banana 2 | gemini-3.1-flash-image |
references/gemini-3.1-flash-image.md |
| Image (quality, multi-image fusion) | Nano Banana Pro | gemini-3-pro-image |
references/gemini-3-pro-image.md |
| Video | Gemini Omni Flash | gemini-omni-flash-preview |
references/gemini-omni-flash-preview.md |
All four models are called through the Interactions API (client.interactions.create(...), REST POST /v1beta/interactions) — see each reference file for the exact shape, including reference-image input and, for video, large-output retrieval. Every call is billable; see Step 3.
Draft on Nano Banana 2 Lite first and rerun the picked favorite on Nano Banana 2 or Pro; reserve Pro for heavy multi-image fusion, character-consistent series, or dense on-image text.
Step 2: Load references
Pull real reference images from generations/refs/, or from a named reference set when the request says "on brand" or invokes /generate frf <set>. Never substitute a text description for a reference image (logo, face, brand mark) that already exists — stop and ask if a named reference is missing instead of approximating it.
Reference sets are registered by importing (copying files into generations/refs/<set>/, a snapshot) or linking (recording the source path in generations/refs/sets.json, read live at generation time). A set may carry a style.md whose contents are prepended verbatim to every prompt generated from that set.
Step 3: Generate
Call the Gemini API per the model's reference file. Every generation — image or video — is billable and requires an explicit approval gate: quote the current per-unit price from the live pricing page for the selected model and get explicit user go-ahead before that specific call. One approval covers exactly one call; a rerun needs its own. Run generations one at a time, never in parallel, so approval and cost tracking stay accurate.
…
Câu hỏi thường gặp
Tôi có thể tạo video không?
Có, công cụ có thể tạo video bằng các mô hình như Gemini Omni Flash.
Hình ảnh tham chiếu hoạt động như thế nào?
Bạn có thể cung cấp hình ảnh có sẵn (như logo hoặc ảnh chụp) để AI dùng làm nền hoặc nguồn cảm hứng cho sáng tạo mới.
Mỗi lần tạo có tốn phí không?
Có, mỗi lần tạo hình ảnh hoặc video đều tính phí. Công cụ sẽ luôn hiển thị chi phí và xin sự chấp thuận của bạn trước khi tiến hành.
Chi tiết
Mô tả gốc của tác giả
Generate and edit images/video with Google's Gemini media models (Nano Banana 2/Pro, Gemini Omni Flash), with cost-approval gates, reference-image support, and a prompt/output log per call.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4712
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
taste-application
280kGiúp agent tạo video theo phong cách cụ thể: sao chép nhịp dựng từ video mẫu, tạo cảnh mới, chỉnh màu và ghép với các đoạn có sẵn.
taste-distillation
280kGiúp agent phân tích video để tạo style pack gồm màu sắc, nhịp cắt và yếu tố hình ảnh, tái sử dụng để tạo video mới cùng phong cách.
ui-demo
280kGiúp agent ghi lại video demo giao diện chỉn chu. Hữu ích để tạo hướng dẫn hoặc cho thấy một ứng dụng web hoạt động ra sao.