{"skill":{"slug":"clawhub-publish-146230","displayName":"Clawhub Publish 146230","summary":"Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.","description":"---\r\nname: antigravity-image-gen\r\ndescription: Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.\r\nread_when:\r\n  - User asks to generate an image\r\n  - User wants to create visual content\r\nmetadata: {\"clawdbot\":{\"emoji\":\"🎨\",\"requires\":{\"bins\":[\"node\"],\"config\":[\"auth.profiles\"]},\"description\":\"Generates images via internal Google API using local OAuth credentials.\"}}\r\n---\r\n\r\n# Antigravity Image Generation\r\n\r\nGenerate 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.\r\n\r\n## Prerequisites\r\n\r\n- **Google Antigravity OAuth Profile**: Must be present in your OpenClaw auth-profiles.json.\r\n- **Node.js**: Available in the environment.\r\n- **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.\r\n\r\n## Usage\r\n\r\n### Direct Script Execution\r\n\r\n```bash\r\n/home/ubuntu/clawd/skills/antigravity-image-gen/scripts/generate.js \\\r\n  --prompt \"A futuristic city on Mars\" \\\r\n  --output \"/tmp/mars.png\" \\\r\n  --aspect-ratio \"16:9\"\r\n```\r\n\r\n### Arguments\r\n\r\n- `--prompt` (Required): The description of the image.\r\n- `--output` (Optional): Path to save the image (default: `/tmp/antigravity_<ts>.png`).\r\n- `--aspect-ratio` (Optional): `1:1` (default), `16:9`, `9:16`, `4:3`, `3:4`.\r\n\r\n## Output\r\n\r\n- The script writes the image to the specified path.\r\n- It prints `MEDIA: <path>` to stdout, which allows Clawdbot to automatically detect and display the image.\r\n\r\n## Troubleshooting\r\n\r\n- **429 Resource Exhausted**: Quota limit reached. Wait or check your project limits.\r\n- **No image data found**: The model might have refused the prompt (safety) or the API structure changed. Check the \"Model message\" output.\r\n- **Auth Error**: Ensure you have logged in via `google-antigravity` provider.\r\n","topics":["Browser Automation","Image Generation"],"tags":{"latest":"2.0.0"},"stats":{"comments":0,"downloads":796,"installsAllTime":30,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1773371032330,"updatedAt":1778998716754},"latestVersion":{"version":"2.0.0","createdAt":1773371032330,"changelog":"Version 2.0.0 introduces a major update with new image generation capabilities.\n\n- Now generates images using the internal Google Antigravity API (Gemini 3 Pro Image) for high-quality, native output.\n- Removes the need for browser automation by connecting directly via OAuth credentials.\n- Adds flexible command-line options for prompt, output path, and aspect ratio selection.\n- Handles common error cases with clear troubleshooting guidance.\n- Outputs images in a way that Clawdbot can automatically detect and display results.","license":"MIT-0"},"metadata":{"setup":[{"key":"auth.profiles","required":true}],"os":null,"systems":null},"owner":{"handle":"gxw975","userId":"s17brjt0pw2p1p8924sqmk4t9d84xt6h","displayName":"gxw975","image":"https://avatars.githubusercontent.com/u/236547209?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780089863936}}