mcpField
A
antigravity-image-gen

antigravity-image-gen

github.com/win4rCreative & media1960 installsUpdated 38w ago
Repository

About antigravity-image-gen

antigravity-image-gen is a skill for generating images through the Google Antigravity API using Gemini 3 Pro Image. It suits users with a configured Google Antigravity OAuth profile and saves generated images to a file.

Key features

  1. 01Generate images from text prompts
  2. 02Set output path and aspect ratio
  3. 03Print MEDIA output for Clawdbot detection

Use cases

  1. 01Create an image from a text description
  2. 02Save generated images in a chosen aspect ratio

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/win4r/antigravity-image-gen --skill antigravity-image-gen

After installing, type/antigravity-image-genin Claude Code to confirm it loaded.

Bundled filesREADME.mdscripts/generate.js

Details

From the project README

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-antigravity provider.

Comments

Markdown supported