POST
/api/v1/nanobananapro/generateImage Editing (Pro)
High-quality image editing with Nano Banana Pro. Supports up to 14 reference images.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Describe the desired edits |
imageUrls | array | Alt | Up to 14 reference image URLs |
temperature | number | No | Controls randomness (0-2). Recommended: 1.0 for image generation. |
thinkingConfig | object | No | Enables reasoning pass for better reference adherence. Example: {"includeThoughts": true} |
mediaResolution | string | No | Input image fidelity: "MEDIA_RESOLUTION_LOW", "MEDIA_RESOLUTION_MEDIUM", or "MEDIA_RESOLUTION_HIGH". |
responseModalities | array | No | Response types. Default: ["TEXT", "IMAGE"]. |
safetySettings | array | No | Safety filter thresholds. Allowed thresholds: BLOCK_LOW_AND_ABOVE, BLOCK_MEDIUM_AND_ABOVE, BLOCK_ONLY_HIGH. |
Example Request
bash
curl -X POST https://eccoapi.com/api/v1/nanobananapro/generate \
-H "Authorization: Bearer nk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Combine these two images into a single scene",
"imageUrls": ["https://example.com/img1.jpg", "https://example.com/img2.jpg"],
"imageSize": "4K"
}'