AI · Prompt Architecture

No need to become an author

Prompting with the image planning every photographer does anyway.

Thinking in images

Why do photographers find prompting so hard? Myself included. Writing prompts has made me realise again how much I think in images rather than in sentences. If it were otherwise, I would have become an author, not a photographer.

The camera is the tool that makes these images visible. A 3D program like Blender does the same in a very similar way. So the tool has changed before, and the language stayed the same. Now it is changing again, and suddenly it asks the image maker to be an author. But is this change really as foreign as it feels?

The AI doesn’t ask

Before every new subject, I think about how the image is built: which perspective and angle of view, which elements appear in the frame and where they sit. I consider the mood of the image and how the light is set. When it gets more complex, I make loose notes or collect images in a folder that come close to my idea. If other people are involved in the shoot, these notes matter more, and so does the ability to describe my idea. That is already very close to a prompt. With one difference: another person asks when they haven’t understood part of my idea. The AI doesn’t ask. It fills everything that isn’t clearly described with whatever is statistically most likely.

Who is JSON?

This is where someone enters the stage who is a familiar face in programming but still fairly unknown in AI image generation: JSON. But who, or what, is JSON?

JSON is a data format that programs use to exchange data. What matters to us is something else: its structure. The image is broken down systematically into its parts, and each part is described in a field of its own.

Flux.3 Klein · JSON prompt · The numbers under “bbox” set where an element sits in the frame.

+ Show JSON prompt
{
  "format": { "aspect_ratio": "16:9" },
  "camera": "low eye-level viewpoint, as if someone is peering through tall dune grass; two-point perspective; the house is slightly rotated, its front facade turned about 20 degrees toward the image center, so a narrow part of the house's right side wall is visible",
  "lens": "long lens with a wide aperture, very shallow depth of field: the grass close to the camera is heavily blurred, the house is in sharp focus",
  "elements": [
    {
      "id": "grass_fg_1", "rank": 1, "bbox": [0, 0, 1000, 360],
      "caption": "tall dune grass very close to the camera",
      "desc": "Tall golden dune grass blades directly in front of the lens, strongly out of focus, soft creamy blur, filling the left third of the frame from top to bottom."
    },
    {
      "id": "house_1", "rank": 1, "bbox": [420, 380, 780, 940],
      "caption": "a minimalist single-story holiday house",
      "desc": "A minimalist single-story house clad in dark, charred vertical wood planks, slightly rotated toward the image center, sharp and in focus."
    },
    {
      "id": "side_wall_1", "rank": 2, "bbox": [440, 860, 770, 940],
      "caption": "the right side wall of the house",
      "desc": "A narrow strip of the house's right side wall in dark charred wood, receding in perspective."
    },
    {
      "id": "roof_1", "rank": 1, "bbox": [420, 380, 510, 940],
      "caption": "a barrel-vaulted corrugated metal roof",
      "desc": "A shallow barrel-vaulted roof of dark corrugated metal, one continuous gentle arch from eave to eave, its curved end visible above the right side wall."
    },
    {
      "id": "chimney_1", "rank": 3, "bbox": [350, 790, 430, 810],
      "caption": "a slim stainless steel chimney flue",
      "desc": "A slim stainless steel chimney flue rising vertically from the right part of the curved roof."
    },
    {
      "id": "doors_1", "rank": 2, "bbox": [540, 560, 750, 700],
      "caption": "large glass sliding doors",
      "desc": "Large glass sliding doors with slim black frames in the front facade, revealing a dining table with chairs and a pendant lamp inside."
    },
    {
      "id": "deck_1", "rank": 2, "bbox": [750, 340, 830, 900],
      "caption": "a weathered gray wooden deck",
      "desc": "A weathered gray wooden deck along the house front, its edges converging slightly in perspective."
    },
    {
      "id": "loungers_1", "rank": 3, "bbox": [700, 420, 770, 540],
      "caption": "two sun loungers",
      "desc": "Two low reclining sun loungers of light wood with pale cushions, backrests slightly raised, side by side on the deck left of the sliding doors."
    },
    {
      "id": "sky_1", "rank": 2, "bbox": [0, 330, 520, 1000],
      "caption": "a cloudy overcast sky",
      "desc": "A soft cloudy overcast sky in light grays above the house."
    },
    {
      "id": "dunes_1", "rank": 3, "bbox": [800, 330, 1000, 1000],
      "caption": "pale sand and dune grass",
      "desc": "Pale sand and lower dune grass in front of the deck, gradually softening in focus toward the camera."
    }
  ],
  "interactions": [
    "a few blurred grass blades from the foreground cross into the frame toward the house, overlapping the left edge of the deck",
    "the overcast sky is softly reflected in the glass sliding doors"
  ],
  "light": "soft, diffused overcast light, even illumination, gentle shadows",
  "atmosphere": "calm, muted Nordic mood, a quiet observing glance",
  "style": "high-end architectural photograph, photorealistic, house tack-sharp, strong optical depth from the foreground blur"
}

That sounds dry at first, but it helps enormously. Describing an image completely in free language is a mountain. Filling in a form is manageable. And because every element has its own place, the result can be checked against the plan field by field. The loose notes become a plan in which every decision has its fixed place.

Why the model reads JSON

In programming, JSON has to be exact. The program reading it checks every character, and an unclosed bracket or a missing comma makes it fail. Image models are different. Here the JSON isn’t read by such a program but by a language model, the so-called encoder. It doesn’t check, it interprets. A structural error breaks nothing, and there is no list of permitted fields: you name them freely, and the language model infers their meaning from context. You only need to be exact where a value follows a fixed convention, such as coordinates.

An example:

{
  "person": {
    "description": "an athletic woman in her 20s",
    "outfit": {
      "pants": "light blue, stonewashed, boyfriend-cut jeans",
      "shirt": "plain white crew-neck t-shirt",
      "jacket": "black leather biker jacket, worn open over the t-shirt"
    }
  }
}

The field “outfit” isn’t defined anywhere, and yet it is clear what it means. The structure says what the person looks like, what her outfit consists of, and that the trousers, T-shirt and jacket belong to exactly this person. If a second person is in the frame, she gets her own block, and the description leaves no doubt about who wears what.

This applies to models whose encoder is a language model. Locally, that includes Flux.2 dev, Flux.2 Klein and Flux.3 Klein. The approach also appears in cloud models: Black Forest Labs documents JSON prompts for FLUX.2, and Ideogram 4 and Bria FIBO were even trained on JSON descriptions. Other models such as Nano Banana Pro read JSON in practice without official support from the vendor. Older models read differently. For them, the JSON is translated into prose or keywords; more on that later.

A word on language. Image models were trained mostly on English image descriptions. An English term like “cobblestones” is therefore closely tied to what it means in an image; the German “Kopfsteinpflaster” far more loosely. Newer encoders understand other languages too, but then the encoder translates silently along the way, and precision can be lost. If English isn’t your first language, it is worth doing what I do: I write my prompts in German, because I think more precisely in my own language, and then have them translated into English, for example with DeepL, ChatGPT or Claude. These tools are built for translation and do it more thoroughly than an encoder does in passing. Above all, I see the result and can correct a term before it goes into the model.

The fields of an image

There is no need to invent the fields an image needs. They are the same questions every photographer asks before a shoot, and they fall into eight areas:

1
Subject subject — what or who is in the image, action or pose
2
Composition composition — framing, perspective, shot size
3
Environment environment — location, context, background
4
Lighting lighting — source, direction, quality
5
Materials materials — surfaces, textures
6
Mood mood — time of day, weather, emotional tone
7
Style style — photographic style, reference, look
8
Technique technique — focal length, depth of field, grain, camera

Not every image needs all eight. But every field left empty is a decision you hand over.

The eight areas don’t have to sit side by side as eight fields. In the beach house, camera, lens, light, mood and style apply to the whole image, so they sit at the top as overarching fields. Everything visible in the image, on the other hand, becomes an element with its own description: the grass in the foreground, the house, the roof, the sky. The material sits where it belongs, in the element’s description, such as the dark charred wood of the facade. What matters is not which order you choose, but that every decision gets a place.

Two things come on top that easily get lost in running text. The first is interactions: everything that only arises between two elements, how they sit relative to each other, what overlaps what, what is reflected in what. Gloss, for example, is not a property of the material alone; it only arises when light hits a surface. Split light and material into two fields and this connection is lost. That is why interactions get a field of their own. And you have to have noticed them before you can describe them.

The second is weighting. Not everything in the image matters equally. Instead of a separate field, each entry gets a rank. It records what counts in the image and, when translating into prose or keywords, decides what comes first.

The empty field

Under “The AI doesn’t ask” stood the decisive difference: a person asks, the AI doesn’t. The fields are the answer to that. They ask the questions an assistant on set would ask before the model answers them with the most likely option. Where does the light come from? What is the surface made of? What is the most important thing in the image?

This also pays off after generation. If the result departs from the plan, you no longer search the whole prompt but the field concerned. When the AI interprets one spot too freely, it is usually a sign that exactly this field is described too vaguely.

I see a typical pattern in my own work. I fill the materials field richly: surfaces, textures, feel. The light, on the other hand, surprisingly often stops at “natural daylight” or “soft light”, even though light is what decides whether an image convinces. In free language such an imbalance hardly shows. In the form you see it at once.

Fill your fields deliberately and you no longer hand over any decisions. You make them yourself again.

One plan, many languages

Once an image has a structure, it can be translated into any language a model speaks. Models with a language model as encoder read the JSON directly. For Flux.1 dev and Flux.1 Krea dev it is turned into connected sentences and a keyword list, for SDXL into a keyword list alone. That is easier than it sounds: the decisions are already made, the rank sets the order, and the interactions say what has to stay together in one sentence. You don’t write anything new, you translate a finished plan.

Even where a model can read JSON, the gain is not in the format. Black Forest Labs writes that FLUX.2 understands JSON and free language equally well. The advantage lies in the thinking before and the work after. A JSON prompt stays clear even as it grows. And in my practice its parts influence each other less than the sentences of running text: what is set in one field tends to stay untouched when I change another. That is experience, not a measurement. But it is what makes improving an image field by field practical.

How big the difference in clarity is shows in a second shot of the same house. It is described twice, once in prose and once as JSON.

Flux.3 Klein · The same shot, described twice. The prose carries the element names in angle brackets and appends the bounding boxes as a list, as Flux.3 Klein expects.

+ Show prose
A minimalist single-story holiday house <house_1> stands in a coastal dune landscape, photographed from a strictly frontal, symmetrical eye-level perspective. A large cloudy overcast sky <sky_1> fills the upper two-thirds of the image. The facade is clad in dark, charred vertical wood planks, with large glass sliding doors <doors_1> in the center revealing a dining table with chairs and a pendant lamp. The roof <roof_1> is a single shallow barrel-vaulted arch of corrugated metal, and a slim stainless steel chimney flue <chimney_1> rises from its right side. A weathered gray wooden deck <deck_1> extends in front of the house, holding two lounge chairs <loungers_1> left of the sliding doors. Tall golden dune grass and pale sand <dunes_1> fill the foreground. Soft, diffused overcast light, calm muted Nordic atmosphere, high-end architectural visualization, photorealistic, sharp throughout with deep depth of field. [{"id": "sky_1", "bbox": [0, 0, 640, 1000], "desc": "A large, cloudy overcast sky in soft grays, evenly lit, filling the upper two-thirds of the frame."}, {"id": "house_1", "bbox": [500, 180, 800, 820], "desc": "A minimalist single-story house clad in dark, charred vertical wood planks, centered and seen strictly from the front."}, {"id": "roof_1", "bbox": [500, 180, 580, 820], "desc": "A shallow barrel-vaulted roof of dark corrugated metal, one continuous gentle arch from the left eave to the right eave."}, {"id": "chimney_1", "bbox": [440, 680, 520, 705], "desc": "A slim stainless steel chimney flue rising vertically from the right side of the curved roof."}, {"id": "doors_1", "bbox": [600, 410, 790, 590], "desc": "Large glass sliding doors with slim black frames, revealing a dining table with chairs and a pendant lamp inside."}, {"id": "deck_1", "bbox": [770, 80, 840, 920], "desc": "A weathered gray wooden deck running along the full width of the house front."}, {"id": "loungers_1", "bbox": [730, 190, 795, 400], "desc": "Two low reclining sun loungers of light wood with pale cushions, backrests slightly raised, standing side by side on the deck to the left of the sliding doors."}, {"id": "dunes_1", "bbox": [820, 0, 1000, 1000], "desc": "Tall golden dune grass and pale sand filling the foreground across the full width."}]
+ Show JSON
{
  "image": {
    "subject": "A minimalist single-story holiday house in a coastal dune landscape",
    "style": "high-end architectural visualization, photorealistic"
  },
  "camera": {
    "perspective": "strictly frontal, symmetrical",
    "height": "eye level",
    "focus": "sharp throughout, deep depth of field"
  },
  "composition": "The sky fills the upper two-thirds; the house sits centered on the horizon; dune grass and sand fill the foreground.",
  "elements": [
    {
      "id": "house_1",
      "rank": 1,
      "bbox": [500, 180, 800, 820],
      "desc": "A minimalist single-story house clad in dark, charred vertical wood planks, centered and seen strictly from the front."
    },
    {
      "id": "roof_1",
      "rank": 2,
      "bbox": [500, 180, 580, 820],
      "desc": "A shallow barrel-vaulted roof of dark corrugated metal, one continuous gentle arch from the left eave to the right eave."
    },
    {
      "id": "doors_1",
      "rank": 3,
      "bbox": [600, 410, 790, 590],
      "desc": "Large glass sliding doors with slim black frames in the center of the facade."
    },
    {
      "id": "dunes_1",
      "rank": 4,
      "bbox": [820, 0, 1000, 1000],
      "desc": "Tall golden dune grass and pale sand filling the foreground across the full width."
    },
    {
      "id": "deck_1",
      "rank": 5,
      "bbox": [770, 80, 840, 920],
      "desc": "A weathered gray wooden deck running along the full width of the house front."
    },
    {
      "id": "loungers_1",
      "rank": 6,
      "bbox": [730, 190, 795, 400],
      "desc": "Two low reclining sun loungers of light wood with pale cushions, backrests slightly raised, side by side."
    },
    {
      "id": "chimney_1",
      "rank": 7,
      "bbox": [440, 680, 520, 705],
      "desc": "A slim stainless steel chimney flue rising vertically."
    },
    {
      "id": "sky_1",
      "rank": 8,
      "bbox": [0, 0, 640, 1000],
      "desc": "A large, cloudy overcast sky in soft grays, evenly lit."
    }
  ],
  "interactions": [
    "The sliding doors reveal a dining table with chairs and a pendant lamp inside the house.",
    "The chimney rises from the right side of the curved roof.",
    "The loungers stand on the deck to the left of the sliding doors.",
    "The dune grass meets the front edge of the deck."
  ],
  "light": "Soft, diffused overcast light, no hard shadows.",
  "mood": "Calm, muted Nordic atmosphere."
}

In the prose you have to search for where the light is described and where the mood is. In the JSON both have a line of their own. What matters most is hidden in the prose in the order of the sentences; in the JSON it stands there as a rank. And the relationships between the elements, which vanish into subordinate clauses in the prose, the chimney on the right side of the roof, the loungers to the left of the sliding door, are collected in the JSON under “interactions”. You see at a glance what is connected to what.

This brings us back to the beginning. The tool has changed again, but the language remains the image. What the translation looks like in detail is shown on the next pages: first a complete JSON prompt, field by field, then its translation into prose and keywords.