/
โมเดลสนับสนุนองค์กรบล็อก
500+ AI Model API ทั้งหมดในหนึ่ง API เพียงแค่ใน CometAPI
API โมเดล
นักพัฒนา
เริ่มต้นอย่างรวดเร็วเอกสารประกอบแดชบอร์ด API
ทรัพยากร
โมเดล AIบล็อกองค์กรบันทึกการเปลี่ยนแปลงเกี่ยวกับ
2025 CometAPI สงวนลิขสิทธิ์ทั้งหมดนโยบายความเป็นส่วนตัวข้อกำหนดการให้บริการ
Home/Models/Google/Nano Banana
G

Nano Banana

ต่อคำขอ:$0.0312
Gemini 2.5 Flash Image (aka nano-banana), Google's most advanced image generation and editing model. This update enables you to blend multiple images into a single one, maintain character consistency to tell rich stories, perform targeted transformations using natural language, and leverage Gemini's world knowledge to generate and edit images.
ใช้งานเชิงพาณิชย์
Playground
ภาพรวม
คุณสมบัติ
ราคา
API
เวอร์ชัน

Key features

  • Native image generation & editing — generate images or edit existing photos via natural-language prompts. (Generate / Edit).
  • Multi-image fusion — combine multiple input images into one photorealistic scene.
  • Character consistency — keep the same subject or character appearance across edits and prompts. (Consistency).
  • SynthID watermarking — all outputs include an invisible SynthID to identify AI-generated content. (Watermark).

Technical details

  • Architecture & positioning: built on the Gemini 2.5 Flash family — designed as a low-latency “Flash” variant that trades a little model size/throughput for much faster per-call response and cost efficiency while retaining stronger reasoning than earlier Flash tiers.
  • Input formats & limits: accepts inline base64 images for small inputs and file uploads via the File API for larger images (recommended for >20 MB). Supports common MIME types (JPEG, PNG).
  • Modes of operation: text-to-image, image editing (inpainting / semantic masking), style transfer, multi-image composition, and interleaved text+image responses (useful for illustrated instructions, recipes, or mixed content).
  • Provenance & safety mechanisms: visible watermarks on AI outputs plus hidden SynthID markers and policy enforcement layers to limit explicit disallowed content.

Limitations & known risks

  • Content policy constraints: models enforce content policies (e.g., disallowing explicit sexual content and some illicit content), but enforcement is not perfect — generating images of public figures or controversial icons may still be possible in some scenarios, so policy checks are essential. )
  • Failure modes: possible identity drift in extreme edits, occasional semantic misalignment (when prompts are under-specified), and artifacts in very complex scenes or extreme viewpoint changes.
  • Provenance & misuse: while watermarks and SynthID are present, these do not prevent misuse — they assist detection and attribution but are not a substitute for human review in sensitive workflows.

Typical use cases

  • Product & ecommerce: place/catalog products into lifestyle shots via multi-image fusion.
  • Creative tooling / design: fast iterations in design apps (Adobe Firefly integration cited).
  • Photo editing & retouching: localized edits from natural language (remove objects, change color/lighting, restyle).
  • Storytelling / character assets: keep characters consistent across panels and scenes.

คุณสมบัติสำหรับ Nano Banana

สำรวจคุณสมบัติหลักของ Nano Banana ที่ออกแบบมาเพื่อเพิ่มประสิทธิภาพและความสะดวกในการใช้งาน ค้นพบว่าความสามารถเหล่านี้สามารถเป็นประโยชน์ต่อโครงการของคุณและปรับปรุงประสบการณ์ของผู้ใช้ได้อย่างไร

ราคาสำหรับ Nano Banana

สำรวจราคาที่แข่งขันได้สำหรับ Nano Banana ที่ออกแบบมาให้เหมาะสมกับงบประมาณและความต้องการการใช้งานที่หลากหลาย แผนการบริการที่ยืดหยุ่นของเรารับประกันว่าคุณจะจ่ายเฉพาะสิ่งที่คุณใช้เท่านั้น ทำให้สามารถขยายขนาดได้ง่ายเมื่อความต้องการของคุณเพิ่มขึ้น ค้นพบว่า Nano Banana สามารถยกระดับโปรเจกต์ของคุณได้อย่างไรในขณะที่ควบคุมต้นทุนให้อยู่ในระดับที่จัดการได้
ราคา Comet (USD / M Tokens)ราคาทางการ (USD / M Tokens)ส่วนลด
ต่อคำขอ:$0.0312
ต่อคำขอ:$0.039
-20%

โค้ดตัวอย่างและ API สำหรับ Nano Banana

เข้าถึงโค้ดตัวอย่างที่ครอบคลุมและทรัพยากร API สำหรับ Nano Banana เพื่อปรับปรุงกระบวนการผสานรวมของคุณ เอกสารประกอบที่มีรายละเอียดของเราให้คำแนะนำทีละขั้นตอน ช่วยให้คุณใช้ประโยชน์จากศักยภาพเต็มรูปแบบของ Nano Banana ในโครงการของคุณ
Python
JavaScript
Curl
from google import genai
from google.genai import types
import os

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com"

client = genai.Client(
    http_options={"api_version": "v1beta", "base_url": BASE_URL, "timeout": 600000},
    api_key=COMETAPI_KEY,
)

prompt = (
    "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme"
)

response = client.models.generate_content(
    model="gemini-2.5-flash-image",
    contents=[prompt],
)

# Output directory
OUTPUT_DIR = os.path.join(os.path.dirname(__file__), "..", "output")
os.makedirs(OUTPUT_DIR, exist_ok=True)

for part in response.parts:
    if part.text is not None:
        print(part.text)
    elif part.inline_data is not None:
        image = part.as_image()
        output_path = os.path.join(OUTPUT_DIR, "gemini-native-image.png")
        image.save(output_path)
        print(f"Image saved to: {output_path}")

รุ่นของ Nano Banana

เหตุผลที่ Nano Banana มีสแนปช็อตหลายตัวอาจรวมถึงปัจจัยที่อาจเกิดขึ้น เช่น ความแปรผันของผลลัพธ์หลังการอัปเดตที่ต้องการสแนปช็อตรุ่นเก่าสำหรับความสม่ำเสมอ การให้ช่วงเวลาเปลี่ยนผ่านสำหรับนักพัฒนาเพื่อการปรับตัวและการย้ายข้อมูล และสแนปช็อตที่แตกต่างกันซึ่งสอดคล้องกับเอนด์พอยต์ระดับโลกหรือระดับภูมิภาคเพื่อเพิ่มประสิทธิภาพประสบการณ์ผู้ใช้ สำหรับความแตกต่างโดยละเอียดระหว่างเวอร์ชัน โปรดอ้างอิงเอกสารทางการ
version
gemini-2.5-flash-image
gemini-2.5-flash-image-preview

โมเดลเพิ่มเติม