Security v2.0.0

antigravity-image-gen

Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without...

gxw975 更新于 2026-03-13 1 浏览
下载 SKILL

技能说明

Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.

使用场景

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.

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

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/antigravity-image-gen
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 17 kB
skill.md text/markdown
---
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"],"config":["auth.profiles"]},"description":"Generates images via internal Google API using local OAuth credentials."}}
---

# 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_<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.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。