画像生成AI 2026.04.29
旅行写真をAIで再現|リアルな風景画像を数分で生成するプロンプト30選
リアル風景を作るプロンプトの5つのルール
ルール1: 撮影方法を指定する
例: "shot with Sony A7 IV, 35mm f/1.8, golden hour"
ルール2: 天気・時間帯・季節を指定する
例: "misty morning, autumn leaves, overcast sky"
ルール3: 構図を指定する
例: "wide angle, rule of thirds, leading lines toward temple"
ルール4: 品質キーワードを含める
例: "photorealistic, RAW photo, 8K, professional photography"
ルール5: 場所の特徴を具体的に書く
例: "Arashiyama bamboo grove, traditional stone lanterns, moss-covered path"
プロンプト例30選(コピーして使えます)
【日本の風景】
1. 富士山・夜明け:
"Mount Fuji at dawn, reflection in Kawaguchiko lake, mist rising from water, golden sky, Sony A7 IV, 24mm, ultra wide, photorealistic"
2. 京都・桜:
"Maruyama Park Kyoto, night sakura cherry blossoms illuminated, paper lanterns, reflections on wet stone, Fujifilm X-T5, atmospheric"
3. 渋谷・雨の夜:
"Shibuya crossing rainy night, neon reflections on wet asphalt, long exposure, blurred umbrellas, Canon EOS R5, photorealistic"
4. 秋の嵯峨野:
"Sagano bamboo forest autumn, orange maple leaves scattered on path, morning light rays, Canon 50mm f/1.2"
5. 函館夜景:
"Hakodate night view from Hakodate Mountain, city lights reflection in harbor, misty, long exposure, Nikon Z7"
【海外の風景】
6. サンセット・ビーチ:
"Tropical beach sunset, golden hour, silhouette palm trees, calm ocean, shells in foreground, wide angle, photorealistic"
7. ヴェネツィア・運河:
"Venice canal early morning, gondola reflection, mist, golden hour, Leica Q2, photorealistic, RAW photo"
8. サハラ砂漠:
"Sahara desert sand dunes at sunset, lone camel silhouette, dramatic sky, warm tones, wide angle landscape"
ClaudeAPIでプロンプトを自動生成する
# travel_prompt_generator.py
# 旅行の目的地から最適な画像生成プロンプトを自動作成する
import anthropic
client = anthropic.Anthropic()
PROMPT_SYSTEM = """あなたは風景写真家です。
与えられた旅行先について、DALL-E 3やMidjourney向けの
リアルな画像生成プロンプトを英語で作成してください。
必ず含める要素:
- 具体的な場所・季節・時間帯
- カメラ設定(機種名・レンズ)
- 天気・光の状態
- 品質指定(photorealistic, RAW photo, 8K)
形式: 1行の英語プロンプトのみ出力してください。"""
def generate_travel_prompt(
destination: str,
season: str = "spring",
time_of_day: str = "golden hour",
style: str = "photorealistic"
) -> dict:
"""旅行先から最適な画像生成プロンプトを生成する"""
request = f"旅行先: {destination}, 季節: {season}, 時間帯: {time_of_day}, スタイル: {style}"
response = client.messages.create(
model="claude-haiku-4-5-20251001", # プロンプト生成はHaikuで十分
max_tokens=200,
system=PROMPT_SYSTEM,
messages=[{"role": "user", "content": request}]
)
cost = (response.usage.input_tokens * 0.80 + response.usage.output_tokens * 4.00) / 1_000_000
return {
"prompt": response.content[0].text.strip(),
"cost_usd": round(cost, 5),
"destination": destination
}
# 使用例
destinations = [
("富士山", "autumn", "dawn"),
("京都・嵐山", "spring", "morning"),
("渋谷スクランブル", "any", "rainy night"),
]
print("生成したプロンプト一覧:")
total_cost = 0
for dest, season, time in destinations:
result = generate_travel_prompt(dest, season, time)
total_cost += result["cost_usd"]
print(f"\n[{dest}]")
print(f" {result['prompt']}")
print(f" コスト: ${result['cost_usd']:.5f}")
print(f"\n合計コスト: ${total_cost:.5f} ({len(destinations)}件)")
# 10件生成しても$0.001以下(0.15円)