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

# Nano Banana Edit

> Nano Banana Edit モデルを使用した画像編集（非同期）

[Google DeepMind](https://deepmind.google) の Nano Banana モデルを使用して既存の画像を編集します。


## OpenAPI

````yaml /ja/openapi.yaml POST /generate/k/nano-banana-edit
openapi: 3.0.0
info:
  contact:
    email: support@sinancode.com
    name: API Support
    url: https://sinancode.com/support
  description: AIモデルタスクスケジューリングプラットフォーム API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://sinancode.com/terms-of-service
  title: TikTomato API
  version: '1.0'
servers:
  - url: https://api.sinancode.com/v1
    description: 本番サーバー
security: []
paths:
  /generate/k/nano-banana-edit:
    post:
      tags:
        - public
      summary: Nano Banana Edit 画像編集
      description: Nano Banana Edit モデルを使用した画像編集（非同期）
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ka.CreateNanoBananaEditTaskRequest'
        description: タスクパラメータ
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.CreateTaskResponse'
        '400':
          description: 無効なパラメータ
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '401':
          description: 認証エラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '500':
          description: サーバーエラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
      security:
        - AccessToken: []
components:
  schemas:
    ka.CreateNanoBananaEditTaskRequest:
      properties:
        image_size:
          default: '1:1'
          description: 画像サイズ（オプション、デフォルト 1:1）- 画像アスペクト比
          enum:
            - '1:1'
            - '9:16'
            - '16:9'
            - '3:4'
            - '4:3'
            - '3:2'
            - '2:3'
            - '5:4'
            - '4:5'
            - '21:9'
            - auto
          example: '1:1'
          type: string
        image_urls:
          description: 画像URLリスト（必須）- 編集用の入力画像リスト、最大10枚
          example:
            - >-
              https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input.png
          items:
            type: string
          maxItems: 10
          minItems: 1
          type: array
        output_format:
          description: 出力形式（オプション）- 画像出力形式
          enum:
            - png
            - jpeg
          example: png
          type: string
        prompt:
          description: プロンプト（必須、最大5000文字）- 画像編集のテキスト記述
          example: >-
            turn this photo into a character figure. Behind it, place a box with
            the character's image printed on it
          maxLength: 5000
          minLength: 1
          type: string
      required:
        - image_urls
        - prompt
      type: object
    dto.CreateTaskResponse:
      properties:
        task_id:
          description: タスクID
          example: 01234567-89ab-cdef-0123-456789abcdef
          type: string
      required:
        - task_id
      type: object
    apierror.ErrorResponse:
      properties:
        error_code:
          description: '機械可読なエラーコード（例: TASK.INVALID_PARAMS）'
          type: string
        message:
          description: ユーザーフレンドリーなエラーメッセージ
          type: string
      type: object
  securitySchemes:
    AccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Tokenを使用して認証を行ってください

````