Antigravity Image Generator

👤 ipedrax 📦 v2.0.0 ⭐ 4.2 ⬇️ 14.1K 下載
🎨 設計多媒體 免費

📖 技能介紹


name: antigravity-image-gen description: Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation. read_when: - User asks to generate an image - User wants to create visual content metadata: {"clawdbot":{"emoji":"🎨","requires":{"bins":["node"],"config":["auth.profiles"]},"description":"Generates images via internal Google API using local OAuth credentials."}}


Antigravity Image Generation

Generate high-quality images using the internal Google Antigravity API (Gemini 3 Pro Image). This skill bypasses the need for browser automation by using the daily-cloudcode-pa.sandbox endpoint directly with your OAuth credentials.

Prerequisites

  • Google Antigravity OAuth Profile: Must be present in your OpenClaw auth-profiles.json.
  • Node.js: Available in the environment.
  • Security Note: This skill reads local OAuth tokens from your profile to authenticate with Google's API. This is expected behavior for internal tool use.

Usage

Direct Script Execution

/home/ubuntu/clawd/skills/antigravity-image-gen/scripts/generate.js \
  --prompt "A futuristic city on Mars" \
  --output "/tmp/mars.png" \
  --aspect-ratio "16:9"

7w4.net小蔥技能站收錄全網優質技能,值得收藏。

Arguments

  • --prompt (Required): The description of the image.
  • --output (Optional): Path to save the image (default: /tmp/antigravity_<ts>.png).
  • --aspect-ratio (Optional): 1:1 (default), 16:9, 9:16, 4:3, 3:4.

Output

  • The script writes the image to the specified path.
  • It prints MEDIA: <path> to stdout, which allows Clawdbot to automatically detect and display the image.

Troubleshooting

  • 429 Resource Exhausted: Quota limit reached. Wait or check your project limits.
  • No image data found: The model might have refused the prompt (safety) or the API structure changed. Check the "Model message" output.
  • Auth Error: Ensure you have logged in via google-antigravity provider.

🤖 AI 評測

這是一款通過文字描述生成圖片的工具,文件清晰易懂,使用體驗友好。主要優點是生成質量較高、配置靈活;不足是依賴 Google 內部憑證,許可權受限,且由於使用沙箱 API,可能存在穩定性問題或隨時失效的風險。

📊 多維度評分

適應性4.4
規範性4.3
有效性4.1
可靠性4
可信度4

📁 包含檔案 (5 個)

📄 .clawhub/origin.json 153 B
📄 SKILL.md 2 KB
📄 _meta.json 140 B
📄 scripts/generate.js 5.7 KB
📄 skill-card.md 2.2 KB