edit_image
Edit images using natural language commands. Add or remove objects, transfer styles, or inpaint areas. Pay per request via Bitcoin Lightning — no signup needed.
Instructions
Edit an image with natural language instructions. Uses Nano Banana 2 — understands context, handles object addition/removal, style transfer, and inpainting. Returns JSON with image URL. Resolution-tiered pricing: 1K=200 sats, 2K=300 sats, 4K=450 sats. Pay per request with Bitcoin Lightning — no API key or signup needed. Requires create_payment with toolName='edit_image' and resolution param.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paymentId | Yes | Valid payment ID (must be paid) | |
| prompt | Yes | Editing instructions describing what to change | |
| imageBase64 | Yes | Base64 encoded image to edit | |
| aspectRatio | No | Output aspect ratio (default: match_input_image) | match_input_image |
| outputFormat | No | Output format | jpg |
| resolution | No | Output resolution. 1K=200 sats, 2K=300 sats, 4K=450 sats | 1K |