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

> Get the result of a text to image generation task

Retrieve the status and final images for a Nano Banana Pro text-to-image generation task using the `task_info.id` returned from the POST request.


## OpenAPI

````yaml /api-reference/endpoint/google/nano-banana-pro/openapi.yaml GET /vendors/google/v1/nano-banana-pro/generation/{task_id}
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/{task_id}:
    get:
      summary: Get Text to Image Generation Task
      description: Get the result of a text to image generation task
      operationId: nano_banana_pro_generation_get
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Task result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerationResponse'
              example:
                task_info:
                  id: 123e4567-e89b-12d3-a456-426614174000
                  status: completed
                  created_at: '2025-09-21T00:00:00.000Z'
                  updated_at: '2025-09-21T00:00:00.000Z'
                images:
                  - https://example.com/image.png
                description: A beautiful sunset over the mountains
components:
  schemas:
    GenerationResponse:
      type: object
      additionalProperties: true
      properties:
        task_info:
          $ref: '#/components/schemas/TaskInfoResponse'
        images:
          type: array
          items:
            type: string
            description: URL of the generated image
            format: uri
          description: List of generated image URLs
        description:
          type: string
          description: Model generated description of the image
    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

````