Chuyển đến nội dung
Skillpedia
Dựng video48k · #4710

gemini-omni-flash-api

Skill này làm gì

Công cụ này tạo video từ văn bản, hình ảnh hoặc bằng cách chỉnh sửa video có sẵn. Nó có thể chuyển một video sang phong cách khác hoặc tạo hoạt ảnh từ một hình ảnh duy nhất.

Khi nào nên dùng

  • ✓Khi tạo một video ngắn từ mô tả.
  • ✓Khi biến một hình ảnh thành video hoạt hình.
  • ✓Khi đổi phong cách của một video ngắn.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/gemini-omni-flash-api/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/gemini-omni-flash-api/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một video con mèo uống trà theo phong cách anime.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn mô tả video muốn có, hoặc cung cấp một hình ảnh/video làm nền. Công cụ dùng một mô hình chuyên biệt để tạo video dựa trên hướng dẫn của bạn.

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.

Gemini Omni Flash Skill

When to Use

Use this skill when you need use this skill for generative video editing, text-to-video, image-referenced video generation, and first-frame-to-video transition animations using the official google-genai SDK. Includes workflows for pre-processing/optimizing high-resolution or long source videos with ffmpeg,...

This skill uses the Gemini Omni Flash model (gemini-omni-flash-preview) to perform text to video generation, image to video generation and video editing.

[!WARNING] Important Regional Restrictions: Uploading videos to use for video edits is NOT available in the EEA, Switzerland, the United Kingdom, and some US states. If a video-to-video edit completes quickly with empty outputs (total_output_tokens: 0 or no video content), it is likely due to this restriction.

Core capabilities

  1. Video editing and refinement: Editing existing videos (maximum duration 10 seconds), applying stylistic changes, or performing inpainting/outpainting.
  2. Text to video: Generating videos from a text prompt.
  3. First-frame to video: Generating videos from a single input image.
  4. Image-referenced generation: Using style, character, or object references from images to guide video generation.

Workflow

  1. Analyze request: Determine the target task (e.g., first-frame-to-video, reference-guided editing) and identify any input media assets.

  2. Run SDK scripts:

    • Directly run the appropriate utility (scripts/video/generate_video.py or scripts/upload_file.py).
    • Configure settings like --aspect-ratio (e.g. 16:9, 9:16) and --duration (any integer between 3 and 10 seconds, e.g. 3, 5, 10).
  3. Retrieve and process output: Outputs are saved to the local filesystem (e.g. media/). Report back the completed media path to the user.

Reference Documentation

  • Interactions API: All operations and state management for the Gemini Omni Flash model (gemini-omni-flash-preview) are handled via the Interactions API.
  • Files API: Input media files (such as reference images and videos) must be uploaded via the Files API first before being referenced in generations. The uploaded file URI and MIME type are then included in the interactions.create input parts array.
  • Interactions API Skill Reference: Platform-wide guidelines, current model specifications, and SDK usage rules for the Interactions API.

Dependencies and Prerequisites

  • Python SDK (google-genai): Requires google-genai >= 2.10.0 (Python) to support the new interactions client attribute. Install or upgrade using:
    pip install -U google-genai
    
  • Python Runtime: Requires Python >= 3.10 (for compatibility with modern google-genai SDK types and methods).
  • ffmpeg & ffprobe: prep_video.py, inspect_video.py, and generate_video.py (when stripping audio via --strip-audio) require ffmpeg and ffprobe binaries installed and available in your system PATH.

Available scripts

Use the following Python scripts to upload media with the Files API, prepare input videos with ffmpeg, and generate video outputs using the Interactions API.

  1. upload_file.py: Uploads local media (images and videos) to the Files API and polls until ACTIVE. If uploading a video larger than 25MB, it prints an informative warning/tip highlighting that Gemini Omni Flash is optimized for editing 10s videos at 720p/24fps, and recommends pre-processing with prep_video.py first to speed up the upload.

    ./scripts/upload_file.py path/to/image.png
    
  2. generate_video.py: Performs end-to-end video generation and downloads the output video. It detects and uploads local media references (images or videos) before calling the Interactions API. Large video assets (>25MB) will trigger informative pre-processing recommendations without blocking the upload.

    • Text to video:

      ./scripts/video/generate_video.py "A close-up of a cat drinking tea" --output media/cat_tea.mp4
      
    • Image to video (first frame and reference):

      
      

…

Câu hỏi thường gặp

Tôi có thể chỉnh sửa video dài không?

Công cụ này được tối ưu cho video dài tối đa 10 giây.

Tôi có thể dùng video từ bất kỳ đâu trên thế giới không?

Ở một số khu vực (như EU, Anh và một số bang của Mỹ), bạn không thể tải lên video để chỉnh sửa. Nếu kết quả video trống, có thể là do hạn chế này.

Tôi có cần cài đặt gì không?

Có, bạn cần cài Python và một số công cụ như ffmpeg.

Chi tiết

Mô tả gốc của tác giả

Use this skill for generative video editing, text-to-video, image-referenced video generation, and first-frame-to-video transition animations using the official google-genai SDK.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4710
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự