logo
RunComfy
  • ComfyUI
  • TrainerNew
  • Models
  • API
  • Pricing
discord logo
MODELS
Explore
All Models
LIBRARY
Generations
MODEL APIS
API Docs
API Keys
ACCOUNT
Usage

Nano Banana 2 テキスト→画像:プロンプトからの高速画像生成(アスペクト比・安全性コントロール付き)| RunComfy

google/nano-banana-2/text-to-image

Nano Banana 2 でテキストプロンプトから高品質な画像を生成。アスペクト比、安全性許容度、出力フォーマット、オプションのプロンプト拡張を実用的にコントロールできます。

modelApiDoc_tableOfContents

modelApiDoc_nav1GetStartedmodelApiDoc_nav2AuthenticationmodelApiDoc_nav3ApiReferencemodelApiDoc_navSubmitRequestmodelApiDoc_navMonitorStatusmodelApiDoc_navRetrieveResultsmodelApiDoc_navCancelRequestmodelApiDoc_nav4FileInputsmodelApiDoc_navHostedFilemodelApiDoc_nav5SchemamodelApiDoc_navInputSchemamodelApiDoc_navOutputSchema

modelApiDoc_h2GetStarted

modelApiDoc_getStartedBeforeModelgoogle/nano-banana-2/text-to-imagemodelApiDoc_getStartedAfterModel modelApiDoc_getStartedMid modelApiDoc_schemaLinkmodelApiDoc_getStartedAfterSchema

curl --request POST \
  --url https://model-api.runcomfy.net/v1/models/google/nano-banana-2/text-to-image \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer <token>" \
  --data '{
    "prompt": "A cinematic close-up portrait of an American woman standing under neon lights in rainy Tokyo, shallow depth of field, reflective wet streets, ultra-detailed, realistic skin texture"
  }'

modelApiDoc_h2Authentication

modelApiDoc_authP1 YOUR_API_TOKEN modelApiDoc_authP2 modelApiDoc_profilemodelApiDoc_authP3 Authorization modelApiDoc_authP4 Authorization: Bearer $YOUR_API_TOKENmodelApiDoc_authP5

modelApiDoc_h3ApiReference

modelApiDoc_h3SubmitRequest

modelApiDoc_submitBody

curl --request POST \
  --url https://model-api.runcomfy.net/v1/models/google/nano-banana-2/text-to-image \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer <token>" \
  --data '{
    "prompt": "A cinematic close-up portrait of an American woman standing under neon lights in rainy Tokyo, shallow depth of field, reflective wet streets, ultra-detailed, realistic skin texture"
  }'

modelApiDoc_h3MonitorStatus

modelApiDoc_monitorBody

curl --request GET \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
  --header "Authorization: Bearer <token>"

modelApiDoc_h3RetrieveResults

modelApiDoc_retrieveBody

curl --request GET \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
  --header "Authorization: Bearer <token>"

modelApiDoc_h3CancelRequest

modelApiDoc_cancelBody

curl --request POST \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
  --header "Authorization: Bearer <token>"

modelApiDoc_h2FileInputs

modelApiDoc_h3HostedFile

modelApiDoc_hostedFileBody

modelApiDoc_h2Schema

modelApiDoc_h3InputSchema

{
  "type": "object",
  "title": "modelApiDoc_navInputSchema",
  "required": [
    "prompt"
  ],
  "properties": {
    "prompt": {
      "title": "プロンプト",
      "description": "画像生成のためのプロンプトです。",
      "type": "string",
      "default": "A cinematic close-up portrait of an American woman standing under neon lights in rainy Tokyo, shallow depth of field, reflective wet streets, ultra-detailed, realistic skin texture"
    },
    "num_images": {
      "title": "生成枚数",
      "description": "生成する画像の枚数です。",
      "type": "integer",
      "default": 1,
      "minimum": 1,
      "maximum": 4
    },
    "seed": {
      "title": "シード",
      "description": "乱数生成器のシードです。",
      "type": "integer",
      "default": 0
    },
    "aspect_ratio": {
      "title": "アスペクト比(W:H)",
      "description": "生成画像のアスペクト比です。",
      "type": "string",
      "enum": [
        "auto",
        "21:9",
        "16:9",
        "3:2",
        "4:3",
        "5:4",
        "1:1",
        "4:5",
        "3:4",
        "2:3",
        "9:16"
      ],
      "default": "auto"
    },
    "resolution": {
      "title": "解像度",
      "description": "生成する画像の解像度です。",
      "type": "string",
      "enum": [
        "0.5K",
        "1K",
        "2K",
        "4K"
      ],
      "default": "1K"
    },
    "output_format": {
      "title": "出力形式",
      "description": "生成画像の形式です。",
      "type": "string",
      "enum": [
        "jpeg",
        "png",
        "webp"
      ],
      "default": "png"
    },
    "safety_tolerance": {
      "title": "安全性許容度",
      "description": "コンテンツモデレーションの安全性許容度です。1が最も厳格で、6が最も緩やかです。",
      "type": "integer",
      "enum": [
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "default": 4
    },
    "limit_generations": {
      "title": "生成回数を制限",
      "description": "true の場合、各プロンプトラウンドを1回の生成に制限します。",
      "type": "boolean",
      "default": true
    },
    "enable_web_search": {
      "title": "ウェブ検索を有効化",
      "description": "生成時に最新情報を参照するためのウェブ検索を有効にします。",
      "type": "boolean",
      "default": false
    }
  }
}

modelApiDoc_h3OutputSchema

{
  "output": {
    "type": "object",
    "properties": {
      "image": {
        "type": "string",
        "format": "uri",
        "description": "modelApiDoc_outDescImage"
      },
      "video": {
        "type": "string",
        "format": "uri",
        "description": "modelApiDoc_outDescVideo"
      },
      "images": {
        "type": "array",
        "description": "modelApiDoc_outDescImages",
        "items": {
          "type": "string",
          "format": "uri"
        }
      },
      "videos": {
        "type": "array",
        "description": "modelApiDoc_outDescVideos",
        "items": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}
Follow us
  • LinkedIn
  • Facebook
  • Instagram
  • Twitter
Support
  • Discord
  • Email
  • System Status
  • Affiliate
Video Models
  • HappyHorse 1.0
  • Wan 2.6 Flash
  • Wan 2.7 Image to Video
  • Seedance 2.0 Pro
  • Seedance 1.0 Pro Fast
  • Hailuo 02
  • View All Models →
Image Models
  • seedream 4.0
  • Nano Banana 2 Edit
  • Nano Banana Pro
  • Qwen Image Edit 2511 LoRA
  • Flux 2 Flash Edit
  • Seedream 5.0 Lite
  • View All Models →
Legal
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
RunComfy
Copyright 2026 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.