M/Visual Library
  1. Visual Library
  2. Gen AI
  3. Prompt Composition: A Literary Approach to Prompting

Gen AI

Prompt Composition: A Literary Approach to Prompting

Prompt composition treats a prompt as writing, not engineering: diction, rhythm, point of view, the one telling detail. Old words from poetics for a new job.

Also known as: prompt composition, literary prompting, prompt writing as craft, poetics of prompting, ekphrasis and AI, prospective ekphrasis, creative prompt writing, prompt as poem

Engineering is half the story

'Prompt engineering' frames the prompt as a specification: inputs, parameters, outputs, optimisation. That frame is useful for reliability, and it is the right one when a model has to fill in a form or follow a procedure. But an image prompt is also a piece of writing. It has word choice, rhythm, a point of view, things it says and things it leaves out. The same scene written two ways gives two different images, not because one is better engineered, but because one is better written.

Literature has thought about this for two and a half thousand years. Greek rhetoric had a name for describing something so vividly that it appears before the listener's eyes: enargeia. It had a name for describing a work of art in words: ekphrasis. Modern poetics added the objective correlative, defamiliarisation, the image, the iceberg and the punctum. Each of them is a precise tool for exactly the problem a prompt writer has: how to make words become a picture that means something.

This page collects those tools and adds a few terms of our own. We call the approach prompt composition: the prompt as a composed text, the way a photograph or a poem is composed. It does not replace engineering. It covers the part engineering leaves out: meaning, feeling and voice.

From engineering to composition

Specification → description

An engineer lists requirements. A writer describes a world in which those requirements are already true.

Parameters → diction

The main control is not a setting but a word: 'lantern' and 'lamp' light different rooms.

Optimise → revise

Engineers iterate toward a metric. Writers revise toward a meaning, and know when a draft says it.

Output → image

The goal is not a correct output but an image that holds attention and carries an idea.

Old words for an old job

Ekphrasis

The vivid description of a work of art in words, from the shield of Achilles in the Iliad to Keats's Grecian urn. Prompting runs ekphrasis backwards: the words come first.

Enargeia

Rhetorical vividness: describing so concretely that the scene appears 'before the eyes' (Aristotle, Quintilian). The quality every image prompt is reaching for.

The Image

Ezra Pound: 'that which presents an intellectual and emotional complex in an instant of time.' Imagism asked for direct treatment of the thing and no word that does not contribute.

Objective correlative

T. S. Eliot's term for a set of objects, a situation or a chain of events that becomes the formula of a particular emotion. Name the things, and the feeling follows.

Defamiliarisation

Viktor Shklovsky's ostranenie: art makes the familiar strange so we see it again. The antidote to a model's most typical image.

The iceberg

Hemingway's principle of omission: what is left out, if the writer knows it, still gives the work its weight.

Punctum

Roland Barthes's word for the small detail in a photograph that pricks the viewer, against the general interest of the scene (studium).

Focalisation

Gérard Genette's term for whose perception a story is filtered through. In an image, the camera is the focaliser.

The cut

In haiku, the kire joins two images side by side and lets the reader feel the relation. Juxtaposition instead of explanation.

Chekhov's gun

Every detail on the stage should matter. In a prompt, every noun should earn its place.

Composition moves

Prospective ekphrasis

Our name for the prompt itself: describing a picture that does not exist yet, with the care of describing one that does.

Image diction

Choosing concrete, sensory, specific nouns and verbs over abstract adjectives: 'a chipped enamel mug', not 'a beautiful cup'.

Looking order

Write in the order the eye should travel: the subject, then what surrounds it, then the light that holds it all.

The punctum line

One unexpected, exact detail that makes the image particular: a price sticker still on the vase.

The correlative set

Three or four objects chosen to carry an emotion that the prompt never names.

The unsaid

Decide what is outside the frame, and let it press on what is inside: the empty chair, the second cup.

Voice

Write the prompt in the register of the image you want: a field note, a lullaby, a police report.

Drafts, not iterations

Keep each version and read them side by side, as a writer reads drafts, to see what a change actually meant.

The words to describe it

Precise words for the qualities above. Combine a few of them instead of naming the style or artist alone.

  • prompt composition
  • prospective ekphrasis
  • ekphrasis
  • enargeia
  • objective correlative
  • defamiliarisation (ostranenie)
  • the Image (Imagism)
  • iceberg theory
  • punctum and studium
  • focalisation
  • juxtaposition (the cut)
  • image diction
  • looking order
  • the unsaid
A description to start from

'One plate and one fork on a small kitchen table, a radio glowing on the windowsill, rain running down the glass, a second chair pushed neatly in, a dried ring where a second cup used to stand. Late evening, a single bulb, cool blue outside and warm yellow within.'

How to put it into words

  • Start with the thing, not the adjective: name concrete objects.
  • Choose the order of looking and write in that order.
  • Carry the feeling in objects, not in mood words.
  • Add one exact, surprising detail.
  • Cut every word that does not change the image.

Where we usually get it wrong

Writing the feeling instead of its evidence. 'A lonely, melancholic, emotional scene' gives the model three abstract words and no picture, so it reaches for the most average lonely image it knows. 'One plate, one fork, a radio on, rain on the window, a second chair pushed in' never says lonely, and is.

Try this

Choose an emotion and do not write its name. Compose a prompt from a correlative set of four objects, in looking order, with one punctum detail. Generate it. Then write the 'engineered' version, a list of adjectives and quality tags, and generate that. Put them side by side and ask which one you would remember tomorrow.

Sources and further reading

  • Aristotle, Rhetoric, Book III.
  • Quintilian, Institutio Oratoria, Books VI and VIII.
  • Ezra Pound, 'A Few Don'ts by an Imagiste', Poetry (1913).
  • T. S. Eliot, 'Hamlet and His Problems', in The Sacred Wood (1920).
  • Viktor Shklovsky, 'Art as Device' (1917).
  • Roland Barthes, Camera Lucida (1980).
  • Gérard Genette, Narrative Discourse (1972).
  • James A. W. Heffernan, Museum of Words: The Poetics of Ekphrasis (1993).

Keep looking