AIVY
$AIVY

Wiki / Building on the data

Data formats

The files behind the gallery and the API, so you or an agent can add images, mirror the data or build on it.

Everything on this site comes from a few JSON files. The pages, the JSON API, the Markdown twins and the MCP server all read the same data, so they never disagree.

A generation record

content/jobs.json holds one record per generation job, written the moment the files come back from the model:

json
{
  "batch": "av-16-helpful",
  "job": "stage",
  "kind": "image",
  "model": "kling-image-v3_0_omni",
  "params": "image_to_image · 2k · 16:9 · 2 images · ref: av-11-casting.adult-ref.2",
  "prompt": "Medium shot of the woman from image 1, the same person with the same face: ...",
  "note": "The stage: every request, sung like it is the only one.",
  "created": "2026-10-11",
  "files": ["media/raw/av-16-helpful/stage-1.png", "media/raw/av-16-helpful/stage-2.png"]
}

The prompt is stored exactly as it ran. image 1 is the reference image named in params; where a Kling element was bound, its id reads [Aivy element].

An image

Each file in a job becomes one image with the id batch.job.n, for example av-16-helpful.stage.1. The API serves it like this:

FieldMeaning
idbatch.job.n
batch, job, nwhere it came from
model, params, prompthow it was made
verdictpick, reject or note
notewhy
retouchwhat was changed by hand after generation, or null
look, framing, filmtags for filtering
hertrue when Aivy is in the frame
w, h, colornative size and dominant colour
url.s, url.m, url.full720 px webp, 1800 px webp, native jpg
pagethe image's own page

Adding images

  1. Generate, then record the job with node tools/ingest.mjs job.json (batch, job, model, params, prompt, note, urls).
  2. Add a verdict and tags for each new id in content/curation.json. If a frame needs a hand fix, list it in content/retouch.json and run python tools/retouch.py. The original stays as generated; the site publishes the retouched copy and says so on the image page.
  3. Run npm run media to make the web sizes, then npm run build.

The new images appear in the gallery, the API, the image pages, llms-full.txt and the MCP tools in one build.

Markdown version: /wiki/formats.md