# Pictures — rules for AI agents (Pre-Uni New College Image Creator)

All pictures for Pre-Uni New College work are made with the **Image Creator** (OpenAI, through our own server).
Never call OpenAI or any other image service directly, and never put API keys in code.

## How to make a picture

Use the MCP tool `make_image` (server `preuni_image`).

- `prompt`: what to draw, in plain English — subject, layout, colours, and any text that must appear (spelled exactly).
- `style`: a saved style name (see `list_styles`) when the picture must match others.
- `refs`: gallery ids (`img_…`), an upload link code (`up_…`), or https addresses on newcollege.com.au / cyberschool.com.au / asat.com.au to follow.
- `background: "transparent"` for icons and stickers; `format: "webp"` for small web files.
- Leave `size` and `quality` out unless a person asked; the studio defaults apply.

The answer gives each picture's id and a download link (valid 7 days). Save with the curl command it gives.
**Always put the download link in your answer to the person** — a picture shown inside a tool result may not appear on their screen.

## Using a photo the person has (e.g. one attached in the chat)

A photo attached in a chat cannot be passed to `make_image`. Instead:

1. Call `upload_link` (optionally `note`, e.g. "Photo for the app icon"). It returns a link and a code `up_…`.
2. Give the person the link. They open it on any device (no sign-in), choose, take or paste the photo, and press Upload. The link works 30 minutes for up to 5 photos.
3. When they say it is done, call `get_upload` with the code — it gives the gallery ids — or put the code straight into `make_image` `refs`.

**Do it yourself when you already have the file** (a photo attached in the chat, a file from a Google Drive folder, a page picture): do not send the person a link. Call `upload_link`, then upload the file yourself:
`curl -X POST https://preuni-image-creator.pages.dev/api/up/<code> -H 'x-pic: 1' -H 'content-type: application/json' --data '{"name":"<name>","data":"data:image/png;base64,<…>"}'` (answers `{"ok":true}`), then use the code in `refs`.

## Google Drive folders

When the person gives a Drive folder: read the photos in it with the Google Drive connector and use them as references as above, and save the pictures you make back into that folder (download link → file → Drive `create_file` in that folder). The person should not have to move files by hand.

## Cost rules

- Every new picture costs money. The same request again is free.
- Get the prompt right, make **one** version, look at it, then change. Do not make many versions to choose from unless asked.
- **Never use `force`** unless a person asked for a new version of the same request.
- Budget or monthly limit reached (402): stop and tell the person.

## Content rules

- Always write "Pre-Uni New College" in full. Do not draw other companies' logos or characters.
- Pictures of people from a photo are fine — portraits, caricatures, cartoon avatars, app icons — for example a photo the person uploads of themselves or of someone who agreed. Use the photo as a reference (upload link → `refs`).
- Text inside pictures must be checked letter by letter before it is used.
