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

# gemini-2.5-flash-image

> Nano Banana (`gemini-2.5-flash-image`) is Google's natively multimodal image generation and editing model designed for speed and efficiency, supporting text-to-image, conversational editing, multi-image composition, and character consistency.

|   |   |
| --- | --- |
| **Provider** | Google |
| **Tasks** | text-to-image · image-to-image |
| **Starting from** | 0.0200 USD / call · <a href="https://linkmodel.ai/en/models/gemini-2.5-flash-image" target="_blank" rel="noopener">Pricing details</a> |




## OpenAPI

````yaml /openapi/image/gemini-2-5-flash-image.yaml post /image-generation
openapi: 3.0.3
info:
  title: gemini-2.5-flash-image
  version: 1.0.0
  description: >-
    Nano Banana (`gemini-2.5-flash-image`) is Google's natively multimodal image
    generation and editing model designed for speed and efficiency, supporting
    text-to-image, conversational editing, multi-image composition, and
    character consistency.
servers:
  - url: https://api.linkmodel.ai/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Google
  - name: image
paths:
  /image-generation:
    post:
      tags:
        - Google
        - image
      summary: gemini-2.5-flash-image
      description: >
        Nano Banana (`gemini-2.5-flash-image`) is Google's natively multimodal
        image generation and editing model designed for speed and efficiency,
        supporting text-to-image, conversational editing, multi-image
        composition, and character consistency.


        |   |   |

        | --- | --- |

        | **Provider** | Google |

        | **Tasks** | text-to-image · image-to-image |

        | **Starting from** | 0.0200 USD / call · <a
        href="https://linkmodel.ai/en/models/gemini-2.5-flash-image"
        target="_blank" rel="noopener">Pricing details</a> |
      operationId: gemini-2-5-flash-image
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - gemini-2.5-flash-image
                  description: 'Must be one of: gemini-2.5-flash-image.'
                prompt:
                  type: string
                  minLength: 1
                  maxLength: 100000
                  description: Length must be between 1 and 100000.
                images:
                  type: array
                  maxItems: 10
                  items:
                    type: string
                    format: url
                  description: Maximum 10 items.
                quality:
                  type: string
                  enum:
                    - 1K
                  description: 'Must be one of: 1K.'
                size:
                  type: string
                  enum:
                    - 16x9
                    - 1x1
                    - 21x9
                    - 2x3
                    - 3x2
                    - 3x4
                    - 4x3
                    - 4x5
                    - 5x4
                    - 9x16
                  description: >-
                    Must be one of: 16x9, 1x1, 21x9, 2x3, 3x2, 3x4, 4x3, 4x5,
                    5x4, 9x16.
              required:
                - model
                - prompt
      responses:
        '200':
          description: Task accepted and queued for generation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 0
                  data:
                    type: object
                    properties:
                      task_id:
                        type: string
                        format: uuid
                        description: Use this id to poll task status.
                        example: cb6111cf-e89f-4978-b8e3-aa59c21cceff
                      order_id:
                        type: string
                        format: uuid
                        description: Billing order id.
                        example: 019da9cf-d1db-78e1-ac23-526774d01193
                      status:
                        type: string
                        enum:
                          - processing
                          - succeeded
                          - failed
                        example: processing
                      price:
                        type: number
                        description: Charged amount in the model's pricing currency.
                        example: 0.074
                  msg:
                    type: string
                    example: success
                  request_id:
                    type: string
                    format: uuid
                    example: 250b66dd-e1fb-4bb6-b5f6-c668efadc35d
        '400':
          description: Bad request — invalid or missing parameter.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 400
                  msg:
                    type: string
                    example: task_id is required
                  request_id:
                    type: string
                    format: uuid
                    example: 96be7a7d-3e81-4916-a6b8-19b32773a693
        '401':
          description: Unauthorized — missing or invalid API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 401
                  data:
                    type: object
                    example: {}
                  msg:
                    type: string
                    example: invalid api key
                  request_id:
                    type: string
                    format: uuid
                    example: bff4c295-c7da-4507-9708-4627cb6373ba
        '500':
          description: Internal error — task creation failed (e.g. insufficient balance).
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 500
                  msg:
                    type: string
                    example: >-
                      create task failed: billing: code=100601: insufficient
                      balance
                  request_id:
                    type: string
                    format: uuid
                    example: 3409f6fb-fa9a-4534-b530-195b5f6f4e32
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````