> ## Documentation Index
> Fetch the complete documentation index at: https://mulerouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 🍌 Nano Banana Pro Image Edit

> Edit images based on text prompts using Gemini Nano-Banana Pro model

## Overview

Nano Banana Pro can restyle or surgically modify a reference image while maintaining global composition. Provide one or more images plus a short instruction—Pro's upgraded diffusion backbone keeps lighting, textures, and edge fidelity intact.


## OpenAPI

````yaml /api-reference/endpoint/google/nano-banana-pro/openapi.yaml POST /vendors/google/v1/nano-banana-pro/edit
openapi: 3.1.0
info:
  title: Gemini Nano-Banana Pro API
  description: Gemini Nano-Banana Pro high-fidelity image APIs
  version: 1.0.0
servers:
  - url: https://api.mulerouter.ai/
security:
  - bearerAuth: []
paths:
  /vendors/google/v1/nano-banana-pro/edit:
    post:
      summary: Image to Image Edit
      description: Edit images based on text prompts using Gemini Nano-Banana Pro model
      operationId: nano_banana_pro_edit
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditRequest'
            example:
              prompt: >-
                make a photo of the man driving the car down the california
                coastline
              images:
                - https://example.com/image.png
                - https://example.com/image2.png
              aspect_ratio: '5:4'
              resolution: 2K
        required: true
      responses:
        '202':
          description: Task created successfully
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  task_info:
                    $ref: '#/components/schemas/TaskInfoResponse'
              example:
                task_info:
                  id: 123e4567-e89b-12d3-a456-426614174000
                  status: pending
                  created_at: '2025-09-21T00:00:00.000Z'
                  updated_at: '2025-09-21T00:00:00.000Z'
components:
  schemas:
    EditRequest:
      type: object
      additionalProperties: false
      properties:
        prompt:
          type: string
          description: Text prompt for image editing
        images:
          type: array
          items:
            type: string
          minItems: 1
          maxItems: 10
          description: >-
            List of images to edit. Supports both image URLs and base64-encoded
            images (minimum 1, maximum 14). Base64 encoded image data is like
            "data:image/png;base64,iVBORw0KGgoAAAA..."
        aspect_ratio:
          type: string
          description: Aspect ratio of the edited image
          enum:
            - '1:1'
            - '2:3'
            - '3:2'
            - '3:4'
            - '4:3'
            - '4:5'
            - '5:4'
            - '9:16'
            - '16:9'
            - '21:9'
          default: '1:1'
        resolution:
          type: string
          description: Output resolution preset (longest side in pixels)
          enum:
            - 1K
            - 2K
          default: 2K
      required:
        - prompt
        - images
      description: Image to image edit request body
    TaskInfoResponse:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
          description: UUID of the task
          format: uuid
        status:
          type: string
          description: Task status
          enum:
            - pending
            - processing
            - completed
            - failed
          example: pending
        created_at:
          type: string
          description: Task creation timestamp (ISO 8601)
          format: date-time
          example: '2025-09-21T00:00:00.000Z'
        updated_at:
          type: string
          description: Task last update timestamp (ISO 8601)
          format: date-time
          example: '2025-09-21T00:00:00.000Z'
        error:
          $ref: '#/components/schemas/TaskInfoResponseErrorObject'
          description: >-
            Error message of task execution, only returned when task status is
            failed
      required:
        - task_id
        - status
        - created_at
        - updated_at
    TaskInfoResponseErrorObject:
      type: object
      additionalProperties: true
      properties:
        code:
          type: integer
          description: MuleRouter Error code
          example: 3001
        title:
          type: string
          description: MuleRouter Error title
          example: Task Execution Error
        detail:
          type: string
          description: MuleRouter Error detail
          example: Task execution failed
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````