运行时依赖
无特殊依赖
安装命令 点击复制
官方clawhub install antigravity-image-gen
镜像加速clawhub install antigravity-image-gen --registry https://www.longxiaskill.com
技能文档
# 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
``bash
/home/ubuntu/clawd/skills/antigravity-image-gen/scripts/generate.js \
--prompt "A futuristic city on Mars" \
--output "/tmp/mars.png" \
--aspect-ratio "16:9"
`
Arguments
--prompt (Required): The description of the image.
--output (Optional): Path to save the image (default: /tmp/antigravity_).
--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: 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.
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制