零成本搞定所有圖片需求!
| 圖片型別 | 解決方案 | 成本 |
|---|---|---|
| 重要圖片 | OpenAI免費額度生成 | $0.00 |
| 普通配圖 | 免費相簿下載 | $0.00 |
| 水印處理 | 智慧去除工具 | $0.00 |
| 批次最佳化 | 開源工具處理 | $0.00 |
# 設定OpenAI免費額度API金鑰
export OPENAI_API_KEY="你的免費額度金鑰"
# 安裝技能依賴
cd {baseDir}
pip3 install openai requests pillow --break-system-packages
# 為文章生成圖片
python3 scripts/main.py --text "文章內容" --output ./images
# 只生成重要圖片(用免費額度)
python3 scripts/main.py --important-only --count 3
# 只搜尋免費圖片
python3 scripts/main.py --free-only --keywords "科技,商務" --count 10
# 一鍵完成所有步驟
./scripts/complete_workflow.sh \
--input "文章.txt" \
--output ./final_images \
--budget 0
# 使用OpenAI免費額度
python3 scripts/ai_generator.py \
--prompt "專業商務場景" \
--count 2 \
--budget 0.08 # 只用$0.08免費額度
免費額度計算:
# 從多個免費相簿搜尋
python3 scripts/free_search.py \
--keywords "科技 創新" \
--sources unsplash,pexels \
--count 20 \
--no-watermark
支援相簿:
# 自動去除水印
python3 scripts/remove_watermark.py \
--input ./watermarked \
--output ./clean \
--auto-detect
# 統一處理所有圖片
./scripts/batch_process.sh \
--resize 1200x800 \
--quality 85 \
--format webp
# 生成10張圖片,只用免費資源
python3 scripts/main.py \
--text "人工智慧技術文章" \
--count 10 \
--ai-budget 0.12 # 只用$0.12免費額度
結果:
# 20頁報告配圖 python3 scripts/main.py \ --type report \ --pages 20 \ --output ./report_images更多技能請訪問小蔥技能站7w4.net。
# 小紅書帖子配圖
python3 scripts/main.py \
--platform xiaohongshu \
--posts 5 \
--size 1080x1350
config/settings.json:
{
"free_mode": true,
"max_ai_cost": 0.0,
"prefer_free_sources": true,
"watermark_removal": "auto",
"output_format": "webp",
"default_size": "1200x800"
}
free-image-skill/
├── SKILL.md
├── scripts/
│ ├── main.py # 主入口
│ ├── ai_generator.py # AI生成(免費額度)
│ ├── free_search.py # 免費相簿搜尋
│ ├── watermark_remover.py # 去水印
│ └── batch_processor.py # 批次處理
├── config/
│ ├── settings.json # 配置
│ ├── sources.json # 免費相簿配置
│ └── prompts.json # 提示詞模板
└── examples/
└── demo/ # 使用示例
# 測試所有元件
./scripts/test_all.sh
# 檢查免費額度
python3 scripts/check_quota.py
# 驗證相簿訪問
python3 scripts/test_sources.py
版本: 1.0.0
原則: 不花錢,免費辦大事兒!
狀態: ✅ 就緒