工具概覽
imagine-agy 是一個智慧體技能和命令列工具,通過無頭方式驅動 Google 的 Antigravity CLI(agy),為 Claude Code 增加影像生成能力。Claude Code 本身無法生成影像;該包通過 Antigravity 一等公民級的 generate_image 工具來路由影像生成,賦予它這一能力。它以 npm 包形式釋出,既可作為 Claude Code 技能使用,也可作為獨立的文生圖 CLI 使用。
安裝時執行 npx imagine-agy,它會把技能複製到 ~/.claude/skills/imagine-agy/,並在 ~/.claude/settings.json 中新增 Bash(agy:*) 允許規則。該 CLI 無需 Claude Code 也能使用,例如 npx imagine-agy "a red fox" -o fox.jpg。選項包括 --out、--ratio(1:1、16:9、9:16、4:3、3:4)、--model 和 --timeout。該包稱每張影像的生成通常需要 30–60 秒。
該工具解決了無頭 agy 影像生成中三個未被文件記載的失敗模式:Claude Code 的 Bash 分類器攔截 agy、agy 在列印模式下自動拒絕自己的工具,以及 agy 忽略 shell 的工作目錄。無論檔名如何,輸出始終為 JPEG(基線、300 DPI),因此不支援透明背景。該技能增加了素材集批處理、長時間執行轉後臺、磁碟上驗證以及單軸迭代。
定價
價格與限制可能變動,請以官網為準,並確認幣別、付款週期、最低席位數和用量上限。
應用場景
- 團隊用 imagine-agy 為落地頁生成主視覺和橫幅圖。
- 團隊用它製作部落格和社交圖片、插畫、紋理、概念圖、分鏡和佔位素材。
- 團隊用它建立 9:16 比例的豎版手機桌布。
- 團隊用它在一次執行中批次生成整套素材,使主視覺、圖示和背景在視覺上協調一致。
- 團隊用它無需 Claude Code,直接在終端中生成影像。
- 團隊用它在磁碟上驗證生成的影像,而不是隻相信執行摘要。
功能特色
根據文字提示生成圖片
可作為 Claude Code 技能使用
提供文生圖命令列工具
基於 Google Antigravity CLI
可製作主視覺圖和圖示
可在終端生成插畫
使用者評論
還沒有評論,來分享你的使用體驗吧
常見問題
Can Claude Code generate images?
Not on its own — Claude Code is a coding agent with no image model. This package gives it the ability by routing image generation through the Antigravity CLI, which does have one.
Does this need an API key?
No. It uses the existing Antigravity CLI sign-in, with no separate key to manage and nothing to configure.
Does it work outside Claude Code?
Yes. Running the CLI with a prompt and an output path is a standalone operation; the skill is optional.
Does it work with Cursor, Windsurf, or other AI editors?
The CLI works anywhere Node runs. The skill is in Claude Code's format, but any agent that can run shell commands can call the CLI directly.
How much does it cost?
It costs whatever the Antigravity plan charges for a generate_image call; the package adds nothing on top and has zero dependencies.
Can I generate transparent PNGs / logos with alpha?
No — output is JPEG, which has no alpha channel; the site points to its conversion options.
Can it put text in the image?
It can try, but the site advises against it because image models render words unreliably. Generate the art with space left for text and compose the type on top.
Can it edit an existing image or do img2img?
Not currently — the tool covers text-to-image only.
How many images can I generate at once?
The CLI does one per call. The skill batches a whole set in a single agy run, which also keeps them stylistically coherent.
Is this made by Google or Anthropic?
Neither. It is an independent open-source wrapper around the Antigravity CLI.