nano-banana-antigravity

Generate or edit images via Nano Banana Pro using Antigravity OAuth (no API key needed!)

7 stars

Best use case

nano-banana-antigravity is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Generate or edit images via Nano Banana Pro using Antigravity OAuth (no API key needed!)

Teams using nano-banana-antigravity should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/nano-banana-antigravity/SKILL.md --create-dirs "https://raw.githubusercontent.com/Demerzels-lab/elsamultiskillagent/main/public/skills/cgnl/nano-banana-antigravity/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/nano-banana-antigravity/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How nano-banana-antigravity Compares

Feature / Agentnano-banana-antigravityStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Generate or edit images via Nano Banana Pro using Antigravity OAuth (no API key needed!)

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Nano Banana Antigravity (Gemini 3 Pro Image via OAuth)

Generate images using Nano Banana Pro (Gemini 3 Pro Image) via your existing Google Antigravity OAuth credentials.

**No separate API key needed!** Uses the same OAuth tokens as your OpenClaw Antigravity provider.

## Generate Image

**For WhatsApp HD (recommended):**
```bash
{baseDir}/scripts/generate_whatsapp_hd.sh \
  --prompt "your image description" \
  --filename "output.jpg" \
  --aspect-ratio 16:9 \
  --resolution 4K
```

**Standard PNG output:**
```bash
uv run {baseDir}/scripts/generate_image.py --prompt "your image description" --filename "output.png"
```

## Generate with Options

```bash
{baseDir}/scripts/generate_whatsapp_hd.sh \
  --prompt "a sunset over mountains" \
  --filename "sunset.jpg" \
  --aspect-ratio 16:9 \
  --resolution 4K
```

**What `generate_whatsapp_hd.sh` does:**
- ✅ Auto-converts PNG → progressive JPEG
- ✅ Optimizes quality (85-92%) to stay under 6.28MB
- ✅ WhatsApp HD ready (no compression!)
- ✅ Warns if image is too large

## Edit/Composite Images

```bash
uv run {baseDir}/scripts/generate_image.py \
  --prompt "add sunglasses to this person" \
  --filename "edited.png" \
  -i original.png
```

## Multi-image Composition

```bash
uv run {baseDir}/scripts/generate_image.py \
  --prompt "combine these into one scene" \
  --filename "composite.png" \
  -i image1.png -i image2.png -i image3.png
```

## Options

- `--prompt, -p` (required): Image description or edit instructions
- `--filename, -f` (required): Output filename
- `--input-image, -i`: Input image(s) for editing (can be repeated)
- `--aspect-ratio, -a`: 1:1 (default), 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
- `--resolution, -r`: 1K, 2K (default), 4K

## Authentication

Uses existing OpenClaw Antigravity OAuth credentials. Make sure you're authenticated:

```bash
openclaw models auth login --provider google-antigravity
```

The script looks for credentials in:
- `~/.openclaw/credentials/google-antigravity.json`
- `~/.config/openclaw/credentials/google-antigravity.json`
- `~/.config/opencode/antigravity-accounts.json`

## WhatsApp HD Upload Limits

**For best WhatsApp HD quality:**
- Use `generate_whatsapp_hd.sh` instead of `generate_image.py`
- Output filename must end in `.jpg` or `.jpeg`
- Images ≤6.28MB will upload without compression
- Images >6.28MB may be compressed by WhatsApp

**Size guidelines:**
- ≤6.28MB → ✅ HD (no compression)
- 6.29-6.5MB → Slight compression (~5.7MB)
- 6.5-7.6MB → Moderate compression (~6.2MB)
- >9MB → ⚠️ Heavy compression

## Notes

- The script prints a `MEDIA:` line for OpenClaw to auto-attach on supported chat providers.
- Do not read the image back; report the saved path only.
- Uses timestamps in filenames for uniqueness: `yyyy-mm-dd-hh-mm-ss-name.png`
- Falls back to regular Nano Banana if Nano Banana Pro isn't available yet.
- **Account rotation:** Automatically tries all 12 Antigravity accounts on rate limits

Related Skills

antigravity-image-gen

7
from Demerzels-lab/elsamultiskillagent

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

antigravity-image

7
from Demerzels-lab/elsamultiskillagent

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

gemini-nano-banana-pro-portraits

7
from Demerzels-lab/elsamultiskillagent

Generate ultra-photorealistic portraits using Gemini Nano Banana Pro with comprehensive JSON configuration templates. Use when creating cinematic quality portraits, fitness photography, or realistic character images. Includes complete JSON structure for prompt configuration, subject details, apparel, pose, environment, lighting, and technical specifications.

nano-banana-kling-ad-workflow

7
from Demerzels-lab/elsamultiskillagent

Recreate low-budget AI video ad workflows using Nano Banana image generation plus Kling 3.0 video synthesis.

antigravity-balance

7
from Demerzels-lab/elsamultiskillagent

Check Google Antigravity AI model quota/token balance. Use when a user asks about their Antigravity usage, remaining tokens, model limits, quota status, or rate limits. Works by detecting the local Antigravity language server process and querying its API.

nano-banana-pro

7
from Demerzels-lab/elsamultiskillagent

Generate or edit images via Gemini 3 Pro Image (Nano Banana Pro).

nano-banana-pro-openrouter

7
from Demerzels-lab/elsamultiskillagent

Generate images with Nano Banana Pro via OpenRouter. Use when the user asks for image generation, mentions Nano Banana Pro, Gemini 3 Pro Image, or OpenRouter image generation.

bex-nano-banana-pro

7
from Demerzels-lab/elsamultiskillagent

Generate or edit images via Gemini 3 Pro Image on Replicate.

nano-banana

7
from Demerzels-lab/elsamultiskillagent

Description: Image generation via Gemini/OpenRouter.

banana-farmer

7
from Demerzels-lab/elsamultiskillagent

Stock momentum scanner and portfolio intelligence.

antigravity-swarm

7
from Demerzels-lab/elsamultiskillagent

Deploys autonomous sub-agents to perform tasks in the Antigravity IDE. Supports both manual dispatch and dynamic "Auto-Hiring" of agent teams.

paylock

7
from Demerzels-lab/elsamultiskillagent

Non-custodial SOL escrow for AI agent deals.