อินพุตสคีมาจริง
ลงชื่อเข้าใช้เพื่อเรียกใช้โมเดลนี้ด้วยคีย์ API ของคุณเอง ลงชื่อเข้าใช้ →
谷歌最强大的图像生成模型
ลงชื่อเข้าใช้เพื่อเรียกใช้โมเดลนี้ด้วยคีย์ API ของคุณเอง ลงชื่อเข้าใช้ →
Run the form on the left. Results, polling status and cURL appear under the form.
This model is priced by the usage dimensions listed here. เปรียบเทียบราคาทั้งหมด.
List prices in USD. Your effective price also depends on the billing group attached to your API key.
nano-banana-pronano-banana-pronano-banana-pro/v1beta/models/nano-banana-pro:generateContentconst BASE_URL = "https://api.dreamtoai.com";
const API_KEY = process.env.MIX_API_KEY;
const headers = {
"Authorization": `Bearer ${API_KEY}`,
"Content-Type": "application/json",
};
const payload = {
"model": "nano-banana-pro",
"input": {
"prompt": "修复键盘顶端斑驳痕迹,其他内容不变",
"reference_image_urls": [
"https://example.com/reference.png"
],
"image_size": "1K",
"aspect_ratio": "1:1",
"mime_type": "image/png",
"response_modalities": [
"TEXT",
"IMAGE"
],
"seed": 12345,
"callback_url": "https://example.com/webhook"
}
};
const submit = await fetch(`${BASE_URL}/v1/jobs`, {
method: "POST",
headers,
body: JSON.stringify(payload),
}).then((r) => r.json());
const status = await fetch(`${BASE_URL}/v1/jobs/${submit.id}`, { headers })
.then((r) => r.json());
console.log(status);
Create a key in Console → API Keys and replace the placeholder in the sample.
README
谷歌最强大的图像生成模型
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
promptstring | จำเป็น | คำอธิบายข้อความของสิ่งที่ต้องการสร้าง |
reference_image_urlsarray | ไม่บังคับ | ภาพอ้างอิงหลายภาพเพื่อกำหนดทิศทางผลลัพธ์ |
image_sizeenum | ไม่บังคับ | ขนาดภาพผลลัพธ์ ตัวเลือก: 1K, 2K, 4K. ค่าเริ่มต้น: 1K. |
aspect_ratioenum | ไม่บังคับ | อัตราส่วนภาพของผลลัพธ์ ตัวเลือก: 1:1, 16:9, 9:16, 4:3, 3:4, 2:3, 3:2, 4:5, 5:4, 21:9. |
mime_typeenum | ไม่บังคับ | 参考图 MIME ตัวเลือก: image/png, image/jpeg, image/webp. ค่าเริ่มต้น: image/png. |
response_modalitiesarray | ไม่บังคับ | 响应模态 |
seedinteger | ไม่บังคับ | ค่า seed สุ่ม ใช้ซ้ำเพื่อให้ได้ผลลัพธ์เดิม |
callback_urlstring | ไม่บังคับ | 回调地址 |
โมเดลอ่านพรอมต์เหมือนบรีฟงานสร้างสรรค์ ระบุวัตถุก่อน แล้วค่อยเพิ่มรายละเอียดที่สำคัญ
ใครหรืออะไรอยู่ในภาพ และกำลังทำอะไร
ภาพถ่าย เรนเดอร์ 3D สีน้ำ หรือภาพประกอบแบบแบน หากต้องการลุคภาพถ่าย ให้ระบุเลนส์หรือฟิล์ม
การจัดเฟรมและมุมมอง: โคลสอัป ไวด์ช็อต มุมสูง กึ่งกลาง กฎสามส่วน
แสงยามเย็น แสงสตูดิโอนุ่ม นีออน โทนพาสเทล คอนทราสต์สูง
ใส่คำที่ต้องการไว้ในเครื่องหมายคำพูดและบอกตำแหน่ง
โปสเตอร์ที่มีพาดหัว "OPEN LATE" ตัวหนาสีขาวด้านบน
| พรอมต์ | |
|---|---|
| อ่อน | ร้านกาแฟ |
| ดี | ร้านกาแฟหัวมุมบรรยากาศอบอุ่นในค่ำคืนฝนตก มองผ่านกระจกหน้าร้าน แสงทังสเตนอุ่นภายใน บาริสต้ากำลังเทลาเต้อาร์ต ไอน้ำเกาะกระจก เงาสะท้อนถนน ภาพถ่าย 35mm ระยะชัดตื้น โทนสีเทียลและแอมเบอร์หม่น |
| รายการคิดเงิน | ราคา | ราคาทางการ |
|---|---|---|
| 1K | $0.0375 ต่อคำขอ | |
| 2K | $0.0375 ต่อคำขอ | |
| 4K | $0.075 ต่อคำขอ |
ถูกกว่าราคาทางการ 75%
ตัวอย่าง: รัน 10 ครั้งด้วย 1K มีค่าใช้จ่าย $0.38
List prices in USD. Your effective price also depends on the billing group attached to your API key. เปรียบเทียบราคาทั้งหมด
nano-banana-2gemini-3-1-pro-previewดูโมเดลภาพทั้งหมดเรียกดู API Market
谷歌最强大的图像生成模型
ส่ง POST /v1beta/models/nano-banana-pro:generateContent พร้อม ID โมเดล nano-banana-pro และ API คีย์ของคุณ ตัวอย่างพร้อมรันอยู่ในส่วน API ด้านบน
Requests are billed at the prices listed above and charged to your wallet. Final cost depends on usage and the billing group attached to your API key.
Create one in Console → API Keys. The same key works for every model on the gateway.
ได้ คุณนำสิ่งที่สร้างไปใช้ในโปรเจกต์เชิงพาณิชย์ได้ ภายใต้ข้อกำหนดของผู้ให้บริการโมเดล
谷歌最强大的图像生成模型