---
title: "Generate Image Prompt"
method: POST
path: "/generate-prompt"
---

# Generate Image Prompt

`POST /generate-prompt`

## Request

- Base URL: `https://api.colourmemory.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.colourmemory.com/generate-prompt`
- Auth: none declared

Generate a culturally grounded image prompt for any AI image generator.

The key insight: archive colour names carry civilisational weight that
hex values do not. 'Funai XinguLaranja -- Museu do Indio' tells Midjourney
a civilisation. '#A66438' tells it nothing. This endpoint uses archive names
as cultural anchors to produce prompts that generate historically specific,
geographically grounded imagery.

Supports: midjourney, dalle, stable-diffusion, firefly, runway
Styles: architectural, landscape, material, costume, abstract, cinematic

AUTH: requires the normal API key mechanism, checked before any archive
lookup or Claude call. Previously took no api_key parameter at all.

## Headers

- `x-api-key` string, nullable

## Request body

- ImagePromptRequest
  - `colours` unknown[], required
    - unknown
  - `generator` string
  - `style` string
  - `subject` string
  - `context` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/colourmemory/apis/colour-memory-api.md) · [All operations](https://skmtc.dev/colourmemory/apis/colour-memory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/colourmemory/apis/colour-memory-api/revisions/4ba028f64042?raw)
