Controlling Image Generation with JSON Prompts
Defining Framing, Light, Colour and Depth of Field with Structured Prompts
Tip
JSON prompting is often associated with generating text or data, but it is powerful for images too. When creating architectural images, you can control framing, time of day, light direction, depth of field, colour range and stylistic references individually.
The idea is simple. Instead of writing one long sentence, describe the decisions that make up the image under separate headings. Think of the JSON as a settings panel for the camera, light, colour, composition and style.
– Upload a reference image you like to ChatGPT and ask: “Create a JSON prompt template I can use to generate images similar to this one.”
– ChatGPT returns JSON with separate fields for framing, time of day, depth of field, colour palette and more.
– Reuse the same template for other images.
– If you prefer, copy the final one-line prompt generated from the JSON and paste it into the prompt field in Gemini, Midjourney, DALL·E or whichever platform you use.
Here, JSON serves as a tool for thinking through and organising the prompt, outside the image-generation model itself.
Step 1: Upload a reference image
Upload an image you like to a model that can interpret images, such as ChatGPT, and write: “Analyse this image. Fill in the JSON template below based on the image so I can generate new images with a similar feel.”
Step 2: Use the JSON template
The sample below contains typical parameters for architectural images:
{
"kapsam": {
"sahne_tipi": "dış cephe / iç mekân / şehir manzarası / detay",
"ana_ogeler": [
"beton yüzeyler",
"geniş cam cephe",
"insansız",
"ferah boşluklar"
]
},
"kadraj": {
"oran": "16:9 / 4:5 / kare",
"kamera_yuksekligi": "göz hizası / kuşbakışı / alçak açı",
"kadarj_aciklamasi": "yapının köşesinden hafif açıyla, perspektif çizgiler öne doğru uzanıyor"
},
"kamera": {
"odak_uzunlugu_mm": 28,
"alan_derinligi": "derin",
"diyafram": "f/8",
"lens_tipi": "geniş açı"
},
"isik": {
"gun_saati": "altın saat, gün batımına yakın",
"isik_kaynagi": "doğal gün ışığı",
"isik_yonu": "soldan, cephede yumuşak gölgeler oluşturuyor",
"hava_durumu": "açık, hafif bulutlu"
},
"renk_paleti": {
"ana_renkler": [
"sıcak bej",
"açık gri",
"soluk mavi"
],
"kontrast": "orta",
"genel_duygu": "sakin, yumuşak, hafif nostaljik"
},
"stil": {
"temsil_tarzi": "fotoğrafik, hafif analog film hissi",
"detay_seviyesi": "yüksek",
"doku_vurgusu": "beton ve cam yansımalar belirgin",
"ilham_referanslari": [
"minimalist mimari fotoğrafçılık",
"geç modernist cepheler"
]
},
"negatif": [
"insan figürü yok",
"aşırı doygun renkler yok",
"aşırı HDR efekti yok",
"bulanık veya düşük çözünürlüklü görüntü yok"
],
"final_prompt_tr": "",
"final_prompt_en": ""
}
ChatGPT’ye bu şablonu verip, referans görseli analiz ettirdikten sonra son adımda
şunu isteyebilirsin:
“Şimdi yukarıdaki JSON’u kullanarak, tüm alanları doldur ve
‘final_prompt_tr’ ve ‘final_prompt_en’ alanlarına,
bu sahneyi tarif eden tek satırlık, başka platformlara kopyalayabileceğim iki ayrı
prompt yaz.”
Çoğu imaj platformu JSON’u doğrudan anlamasa bile, sen sadece
“final_prompt_tr” veya “final_prompt_en” satırını seçip kopyalarsın.
Bunu Gemini, Midjourney, DALL·E, vb. nereye istersen yapıştırıp aynı estetiği tekrar
üretmek için kullanabilirsin.
Yeniden kullanılabilir kısa JSON prompt şablonu
Referans görselin yoksa, sadece bir sahne hayal etmek istediğinde kullanabileceğin
minimal bir şablon:
I want to plan an image-generation prompt for an architectural scene. Reply only in the following JSON format, without any additional explanation:
{"sahne":"","kadraj":"","gun_saati":"","kameradan_bakis":"","alan_derinligi":"","renk_paleti":"","stil_notlari":[],"negatif_ogeler":[],"final_prompt_tr":"","final_prompt_en":""}
Bu şablonu defalarca kullanabilirsin. Yalnızca birkaç alanı değiştirerek
farklı sahneler için
aynı temiz yapıyı korumuş olursun:
bir gün sisli sabah, ertesi gün gece sahnesi, sonra iç mekân gibi.
Kısa ipuçları
– JSON’u modelin içinde “zorunlu” bir format olarak değil,
kendi düşünceni
organize etme aracı gibi kullan.
– “Sadece bu JSON formatında cevap ver, açıklama yazma.” cümlesi, çıktının temiz
kalmasını sağlar.
– Bir kez sevdiğin bir şablon bulduğunda, onu notlarına kaydedip dönem boyunca tekrar
tekrar kullanabilirsin.
– Farklı platformlar arasında (ChatGPT → Gemini, vb.)
JSON içindeki
final_prompt alanını taşıman yeterli.
Kaynaklar
- OpenAI Docs. “Structured Prompts for Images.” (For the general conceptual approach.)
- Current blogs and documentation on image generation for architecture and photography.