Nano Banana Pro は Google の Gemini 3 Pro Image(モデル ID gemini-3-pro-image)です。Google 公式の入口は Gemini アプリと Google AI Studio で、YingTu は LaoZhang API 経由で使う独立したサイトです。
Gmail でログインした新規ユーザーには $0.1 の無料クレジット:Nano Banana Pro 約 1 枚分。
すぐ使えるプロンプト
押すと、そのプロンプトと比率が入った状態で画像スタジオが開きます。
キャンペーンのキービジュアル
16:9
A premium campaign key visual for a design-led audio product, precise industrial details, controlled studio reflections, cinematic depth.
複雑な構図
4:3
A layered architectural scene with people, signage, landscaping, and coherent late-afternoon lighting, realistic material detail.
精細な静物
4:5
A refined still life of precision stationery and sculptural desk objects, controlled studio lighting, accurate materials, crisp micro-detail, high-resolution finish.
Turn the person in the reference image into an action figure sealed in a blister pack: the figure stands in a clear plastic bubble on a printed cardboard backing, with accessories in small compartments on the right — a laptop, a coffee cup, headphones and a backpack. The top of the box reads "ALEX" in bold letters with "PRODUCT DESIGNER" underneath. Glossy molded-plastic finish with visible joints; keep the face, glasses, hairstyle and outfit. The package hangs on a store peg hook, soft studio light, realistic toy product photo.
Dress the person in the reference image as a Halloween witch: a black wide-brimmed pointed hat, a deep purple velvet cape, holding a glowing jack-o'-lantern. The background is an old wooden porch at night strung with fairy lights, carved pumpkins on the steps, light mist and warm orange candlelight. Portrait photography, keep the face, hairstyle and expression; festive, not scary.
Turn the person in the reference image into a Polaroid photo: white instant-film border, the picture shows her making a peace sign in front of a Ferris wheel at an amusement park, shot with direct flash, slight overexposure and vignetting, warm colors and a little grain. The photo lies on a wooden table with a few scattered instant photos and a marker; "summer '26" is handwritten on the bottom border. Keep the features and hairstyle.
A sci-fi movie poster: a lone astronaut on red dunes looking up at a huge blue planet in the sky, with the wreck of a crashed ship in the distance. Cinematic color grade, teal and orange contrast, strong atmospheric perspective. Title at the top "ECHO PLANET", small credits block and the release line "Spring 2027" at the bottom.
An explainer card about photosynthesis: a cross-section illustration of a leaf in the middle, with arrows showing sunlight, carbon dioxide and water going in, and oxygen and glucose coming out. Title at the top "How Do Plants Eat?", a one-line summary at the bottom. Fresh green palette, children's science book style, clear and accurate labels.
Restore this old photo: remove scratches, creases, mold spots and noise, fill in missing areas, sharpen it, then colorize it naturally with period-accurate skin, clothing and background colors. Keep every face, expression, pose and the composition exactly the same, no beautifying, so it looks like it was shot on color film at the time.
An explainer card about photosynthesis: a cross-section illustration of a leaf in the middle, with arrows showing sunlight, carbon dioxide and water going in, and oxygen and glucose coming out. Title at the top "How Do Plants Eat?", a one-line summary at the bottom. Fresh green palette, children's science book style, clear and accurate labels.
A 45° isometric miniature city block: an old train station with a clock tower in the middle, surrounded by a café, a bookshop, a small park and a tram, with people and bikes on the streets. Detailed 3D render, soft evening light, warm streetlights just turning on, plain light background, like a fine tabletop model.
ビジネス用プロフィール写真
どちらも顔立ちを保ち、2 枚のビジネス写真はほぼ同じです。
入力画像(AI 生成)
Nano Banana Pro
Nano Banana 2 · 14 秒
プロンプト
Turn the person in the reference image into a professional headshot: beige blazer, chest-up framing, body slightly angled and smiling at the camera. Blurred modern office background, soft key light from the left with a rim light, 85mm lens look, natural skin tones, same facial features. Suitable for LinkedIn and a résumé.
Restore this old photo: remove scratches, creases, mold spots and noise, fill in missing areas, sharpen it, then colorize it naturally with period-accurate skin, clothing and background colors. Keep every face, expression, pose and the composition exactly the same, no beautifying, so it looks like it was shot on color film at the time.
import base64
import mimetypes
import os
import sys
import requests
API_KEY = os.environ.get("LAOZHANG_API_KEY")
ifnot API_KEY:
raise RuntimeError("Set the LAOZHANG_API_KEY environment variable before running this example.")
API_URL = "https://api2.laozhang.ai/v1beta/models/gemini-3-pro-image:generateContent"
REQUEST_TIMEOUT_SECONDS = 500
headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
}
payload = {
"contents": [{
"parts": [
{"text": "A premium campaign key visual for a design-led audio product, precise industrial details, controlled studio reflections, cinematic depth."}
]
}],
"generationConfig": {
"responseModalities": ["IMAGE"],
"imageConfig": {
"imageSize": "2K"
}
}
}
try:
response = requests.post(
API_URL,
headers=headers,
json=payload,
timeout=REQUEST_TIMEOUT_SECONDS,
)
except requests.Timeout as error:
print(
"Request timed out after 500 seconds. The result status may be unknown; ""check call and billing logs before retrying.",
file=sys.stderr,
)
raise SystemExit(1) from error
if response.status_code != 200:
print(f"API error {response.status_code}: {response.text}", file=sys.stderr)
raise SystemExit(1)
try:
result = response.json()
except ValueError as error:
print("API returned a non-JSON response.", file=sys.stderr)
raise SystemExit(1) from error
ifnotisinstance(result, dict):
print("API returned an unexpected JSON shape.", file=sys.stderr)
raise SystemExit(1)
image_part = Nonefor candidate in result.get("candidates", []):
for part in candidate.get("content", {}).get("parts", []):
inline_data = part.get("inlineData") or part.get("inline_data")
if inline_data and inline_data.get("data"):
image_part = inline_data
breakif image_part:
breakifnot image_part:
response_id = result.get("responseId", "not provided")
print(f"No image data in response. responseId={response_id}", file=sys.stderr)
raise SystemExit(1)
mime_type = image_part.get("mimeType") or image_part.get("mime_type") or"image/png"
encoded_image = image_part["data"]
if encoded_image.startswith("data:"):
header, encoded_image = encoded_image.split(",", 1)
mime_type = header[5:].split(";", 1)[0] or mime_type
extension_by_mime = {
"image/jpeg": "jpg",
"image/png": "png",
"image/webp": "webp",
"image/gif": "gif",
}
extension = extension_by_mime.get(mime_type, "bin")
output_path = f"output.{extension}"withopen(output_path, "wb") as output_file:
output_file.write(base64.b64decode(encoded_image, validate=True))
print(f"Image saved: {output_path} ({mime_type})")
よくある質問
ここは Nano Banana Pro の公式サイトですか?
いいえ。Nano Banana Pro は Google の Gemini 3 Pro Image で、公式の入口は Gemini アプリと Google AI Studio です。YingTu は同じモデル(gemini-3-pro-image)を LaoZhang API で呼び出し、1 枚ごとに課金する独立したスタジオです。
Nano Banana Pro は無料ですか?
Google によると、Gemini アプリでは無料ユーザーに上限付きの枠があり、有料の Google AI プランではより多く使えます。ここでは Gmail でログインした新規ユーザーに $0.1(Nano Banana Pro 約 1 枚分)、その後は自分の LaoZhang キーで 1 枚 $0.09 です。