สร้างรูปภาพและวิดีโอ AI ฟรีผ่าน Google Gemini และ Google Flow โดยใช้ browser automation ไม่ต้องจ่าย API fee ใช้เมื่อต้องการสร้างสื่อ visual (รูปปก, thumbnail...
Skill สำหรับสร้างรูปภาพและวิดีโอ AI ฟรีผ่าน Google Gemini และ Google Flow โดยใช้ browser automation
ใช้เมื่อผู้ใช้ต้องการ:
node scripts/quota_manager.mjs check
node scripts/generate_image.mjs --prompt "คำอธิบายรูป" --output /path/to/output.jpg
การทำงาน:
node scripts/generate_video.mjs --prompt "คำอธิบายวิดีโอ" --output /path/to/output.mp4
การทำงาน:
สร้างรูปภาพผ่าน Google Gemini
Arguments:
--prompt: คำอธิบายรูป (required)--output: path ไฟล์ output (required)--style: style ของรูป (optional: realistic, artistic, minimalist)--enhance: ให้ AI enhance prompt อัตโนมัติ (default: true)สร้างวิดีโอผ่าน Google Flow (Veo 3.1)
Arguments:
--prompt: คำอธิบายวิดีโอ (required)--output: path ไฟล์ output (required)--mode: โหมดการสร้าง (text-to-video, image-to-video)--image: path รูปต้นทาง (สำหรับ image-to-video)--duration: ระยะเวลาวิดีโอ (5-10 วินาที)จัดการและติดตาม quota การใช้งาน
Commands:
check: ตรวจสอบ quota ที่เหลือreset: รีเซ็ต counter (เริ่มวันใหม่)log: ดู log การใช้งานConfig File: configs/quota.json
{
"dailyLimits": {
"images": 100,
"videoCredits": 50
},
"currentUsage": {
"images": 0,
"videoCredits": 0
},
"lastReset": "2026-03-02T00:00:00+07:00"
}
รูปบน Gemini แสดงที่ 1024px แต่สามารถดึง full resolution (1408x768) ได้โดยเปลี่ยน URL:
จาก: https://.../image=s1024
เป็น: https://.../image=s0
ก่อนส่งให้ Gemini ควร enhance prompt ให้มี:
ตัวอย่าง:
Input: "รูปแมวใส่แว่น"
Enhanced: "A photorealistic portrait of a cute cat wearing round glasses,
soft studio lighting, centered composition, professional photography,
4K ultra detailed, warm tones"
ไฟล์ที่สร้างจะเก็บที่:
/mnt/storage/ada_projects/ai_media/
├── images/YYYY-MM/
├── videos/YYYY-MM/
└── metadata.json
ถ้า Google ใช้ไม่ได้ มีทางเลือกสำรอง:
# สร้างรูปปกโพสต์
node scripts/generate_image.mjs \
--prompt "AI workflow diagram, futuristic style, blue and purple gradient" \
--output /mnt/storage/ada_projects/ai_media/images/2026-03/cover_001.jpg \
--style artistic
# สร้างวิดีโอจากข้อความ
node scripts/generate_video.mjs \
--prompt "Ocean waves at sunset, cinematic slow motion" \
--output /mnt/storage/ada_projects/ai_media/videos/2026-03/sunset.mp4 \
--duration 8
# ตรวจสอบ quota
node scripts/quota_manager.mjs check
ZIP package — ready to use