TopRank Skills

Home / Claw Skills / API 集成 / antigravity-image
Official OpenClaw rules 36%

antigravity-image

Generate images using the internal Antigravity Sandbox API (Gemini 3 Pro Image). Supports text-to-image generation via internal Google endpoints.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 antigravity-image 技能。 若已安装,则直接安装 antigravity-image 技能。

Overview

Skill Key
houzl3416/antigravity-image
Author
houzl3416
Source Repo
openclaw/skills
Version
-
Source Path
skills/houzl3416/antigravity-image
Latest Commit SHA
bfcaddf13b7170ca91d1010d092664c8bb0cec1a

Extracted Content

SKILL.md excerpt

# Antigravity Image Generation

Use the internal Google Antigravity sandbox to generate images with the `gemini-3-pro-image` model. This skill bypasses standard API restrictions by impersonating the VS Code plugin environment.

## Usage

Generate an image from a prompt:

```bash
python3 {baseDir}/scripts/generate_image_antigravity.py --prompt "A futuristic cityscape with flying cars" --filename "city.png"
```

## How it works

1.  **Authentication**: Automatically retrieves OAuth tokens and Project ID from the local `auth-profiles.json`.
2.  **Impersonation**: Uses the specific `antigravity` User-Agent and internal sandbox headers.
3.  **Reliability**: Includes automatic retry logic for `503 Service Unavailable` errors.

## Parameters

- `--prompt` / `-p`: Text description of the image to generate.
- `--filename` / `-f`: Path where the resulting PNG will be saved.

## Notes

- The script prints a `MEDIA:` path which OpenClaw uses to automatically upload the image to the chat channel.
- Requires an active Antigravity session/login in the environment.
- See [internal-api.md]({baseDir}/references/internal-api.md) for technical details on the impersonated endpoint.

Related Claw Skills