LogoNanoPhoto.AI 문서
LogoNanoPhoto.AI 문서
홈페이지Documentation Homepage

Getting Started

Getting Started

User Guide

User Guide

API

API OverviewSora Watermark Removal APIVideo Reverse Prompt APISora 2 Prompt Generator APISora 2 Video Generation APISora 2 TVC Ad APINano Banana Pro Image Generation APINano Banana 2 Image Generation APIVeo 3.1 Video Generation API

OpenClaw Skills

OpenClaw SkillsSora 2 GenerateVeo 3.1Nano Banana ProNano Banana 2Video Prompt GeneratorVideo Reverse PromptSora Watermark RemoverComic Drama Generate

Use Cases

Sora 2 TVC Ad Creation

Billing

Billing & Invoice

FAQ

FAQ
X (Twitter)

Nano Banana Pro

Generate or edit AI images with the NanoPhoto.AI Nano Banana Pro API via OpenClaw.

Generate or edit images through the NanoPhoto.AI Nano Banana Pro API.

Install: npx clawhub@latest install nano-banana-pro

ClawHub: clawhub.ai/u/nanophotohq

Prerequisites

  1. Obtain an API key at nanophoto.ai/settings/apikeys
  2. Configure NANOPHOTO_API_KEY in your OpenClaw skill settings
{
  "skills": {
    "entries": {
      "nano-banana-pro": {
        "enabled": true,
        "env": {
          "NANOPHOTO_API_KEY": "your_api_key_here"
        }
      }
    }
  }
}

Modes

  • generate — Text-to-image generation
  • edit — Image-to-image editing (requires public image URLs, max 8)

Important

The API only accepts public image URLs. Do not send local files or base64 images.

Parameters

ParameterTypeRequiredDescription
promptstringYesImage generation prompt
modestringYesgenerate or edit
aspectRatiostringNo16:9, 9:16, 4:3, or 3:4
imageQualitystringNo1K (default), 2K, or 4K
inputImageUrlsstring[]ConditionalRequired for edit mode (max 8 URLs)

Usage

Text to Image

python3 scripts/nano_banana_generate.py \
  --prompt "A futuristic cityscape at sunset with flying cars and neon lights" \
  --mode generate \
  --aspect-ratio 16:9 \
  --image-quality 2K

Image to Image

python3 scripts/nano_banana_generate.py \
  --prompt "Transform this photo into a watercolor painting style" \
  --mode edit \
  --input-image-url https://example.com/photo.webp \
  --aspect-ratio 16:9 \
  --image-quality 1K

The script reads NANOPHOTO_API_KEY from the environment, submits the task, polls automatically, and prints the final JSON result.

Error Codes

CodeCauseAction
LOGIN_REQUIREDInvalid API keyVerify at settings/apikeys
INSUFFICIENT_CREDITSNot enough creditsTop up
INVALID_PROMPTMissing promptProvide a prompt
MISSING_INPUT_IMAGEEdit mode missing imagesProvide public image URLs
TOO_MANY_IMAGESMore than 8 imagesReduce to 8 or fewer
GENERATION_FAILEDServer errorRetry or simplify prompt

Veo 3.1

Generate multi-shot long-form videos with the NanoPhoto.AI Veo 3.1 API via OpenClaw.

Nano Banana 2

Generate or edit images with Google Search enhancement via the NanoPhoto.AI Nano Banana 2 API and OpenClaw.

목차

Prerequisites
Modes
Parameters
Usage
Text to Image
Image to Image
Error Codes