> ## 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 Generation

> Generate ultra-sharp images from text prompts using the Gemini Nano-Banana Pro model

## Overview

Generate ultra-sharp, cinematic frames from short text prompts using Google's Gemini Nano Banana Pro model. Compared with the base Nano Banana release, the Pro tier unlocks:

* Wider aspect ratios (from square up to 21:9 panoramic)
* Higher fidelity presets (`resolution` up to 4K)
* Better prompt adherence thanks to an upgraded vision-language alignment stack


## OpenAPI

````yaml /api-reference/endpoint/google/nano-banana-pro/openapi.yaml POST /vendors/google/v1/nano-banana-pro/generation
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/generation:
    post:
      summary: Text to Image Generation
      description: >-
        Generate ultra-sharp images from text prompts using the Gemini
        Nano-Banana Pro model
      operationId: nano_banana_pro_generation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerationRequest'
            example:
              prompt: A beautiful sunset over the mountains
              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:
    GenerationRequest:
      type: object
      additionalProperties: false
      properties:
        prompt:
          type: string
          description: Text prompt for image generation
        aspect_ratio:
          type: string
          description: Aspect ratio of the generated 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
      description: Text to image generation 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

````