antigravity-image-gen

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Antigravity Image Generation

Antigravity图片生成

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.
使用谷歌内部Antigravity API(Gemini 3 Pro Image)生成高质量图片。该技能通过直接使用
daily-cloudcode-pa.sandbox
端点并结合你的OAuth凭证,无需借助浏览器自动化即可实现图片生成。

Prerequisites

前提条件

  • Google Antigravity OAuth Profile: Must be present in
    ~/.clawdbot/agents/main/agent/auth-profiles.json
    .
  • Node.js: Available in the environment.
  • Google Antigravity OAuth配置文件:必须存在于
    ~/.clawdbot/agents/main/agent/auth-profiles.json
    中。
  • Node.js:环境中需已安装Node.js。

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"
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
    .
  • --prompt
    (必填):图片的描述文本。
  • --output
    (可选):图片保存路径(默认值:
    /tmp/antigravity_<ts>.png
    )。
  • --aspect-ratio
    (可选):
    1:1
    (默认)、
    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.
  • 脚本会将图片写入指定路径。
  • 它会向标准输出打印
    MEDIA: <path>
    ,Clawdbot可据此自动检测并显示图片。

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.
  • 429 资源耗尽:已达到配额限制。请等待配额重置或检查你的项目限制。
  • 未找到图片数据:模型可能因安全原因拒绝了该提示词,或API结构发生变更。请查看“Model message”输出信息。
  • 认证错误:确保你已通过
    google-antigravity
    提供商完成登录。