antigravity-image-gen
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAntigravity 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 endpoint directly with your OAuth credentials.
daily-cloudcode-pa.sandbox使用谷歌内部Antigravity API(Gemini 3 Pro Image)生成高质量图片。该技能通过直接使用端点并结合你的OAuth凭证,无需借助浏览器自动化即可实现图片生成。
daily-cloudcode-pa.sandboxPrerequisites
前提条件
- 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
参数说明
- (Required): The description of the image.
--prompt - (Optional): Path to save the image (default:
--output)./tmp/antigravity_<ts>.png - (Optional):
--aspect-ratio(default),1:1,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 to stdout, which allows Clawdbot to automatically detect and display the image.
MEDIA: <path>
- 脚本会将图片写入指定路径。
- 它会向标准输出打印,Clawdbot可据此自动检测并显示图片。
MEDIA: <path>
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 provider.
google-antigravity
- 429 资源耗尽:已达到配额限制。请等待配额重置或检查你的项目限制。
- 未找到图片数据:模型可能因安全原因拒绝了该提示词,或API结构发生变更。请查看“Model message”输出信息。
- 认证错误:确保你已通过提供商完成登录。
google-antigravity