POST

Edit an image from a text prompt, returning JPG or PNG. Powered by Google nano-banana (Gemini 2.5 image editor) on Replicate

/v1/image/edit/nano-banana

Powered by Google Gemini

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/image/edit/nano-banana
Content-Type: application/json

{
  "image": "https://tools402.dev/og/og-docs.png",
  "prompt": "Summarize this text in one sentence.",
  "output_format": "jpg"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Edit an image from a text prompt, returning JPG or PNG. Powered by Google nano-banana (Gemini 2.5 image editor) on Replicate.

Google's multimodal AI model family for text, image, and code.

Request schema

Body: JSON · application/json

FieldTypeDescription
imagestringrequired
promptstringrequired
output_formatstringrequiredenum: jpg, png
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/image/edit/nano-banana \
  -H "Content-Type: application/json" \
  -d '{
  "image": "https://tools402.dev/og/og-docs.png",
  "prompt": "Summarize this text in one sentence.",
  "output_format": "jpg"
}'

402 payment flow omitted — see Integrations for settlement.