@win4r/antigravity-image-gen
BGenerate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.
Install
agr install @win4r/antigravity-image-gen --target claudeWrites 2 files into .claude/skills/, pinned to git-169d44e9.
- .claude/skills/antigravity-image-gen/README.md
- .claude/skills/antigravity-image-gen/SKILL.md
Document
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"]}}}
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
~/.clawdbot/agents/main/agent/auth-profiles.json. - Node.js: Available in the environment.
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"
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-antigravityprovider.
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged โ not that the artifact is safe.
Versions
git-169d44e93dda2026-07-31