Add or replace an image preset
codex_preset_setCreate a named preset for recurring image subjects to avoid restating details. It persists across restarts and replaces any existing preset with the same name.
Instructions
Define a named preset for a subject drawn repeatedly, so later calls name it instead of restating the description. Written to the presets file, so it survives a restart, and usable immediately. Replaces a preset of the same name outright rather than merging, so a field can be removed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name callers will pass as "preset". Replaces an existing preset of the same name. | |
| size | No | Requested size as WIDTHxHEIGHT, e.g. "1024x1024", "1536x1024", "3840x2160". | |
| style | No | Style or medium, e.g. "pixel art 16-bit, limited palette". | |
| subject | No | The recurring subject, prepended to every prompt using this preset. This is the field that earns a preset. | |
| use_case | No | Taxonomy slug steering the style. One of: product-mockup, ui-mockup, logo-brand, illustration-story, infographic-diagram, photorealistic-natural, stylized-concept, ads-marketing. | |
| constraints | No | What images from this preset must avoid, e.g. "no watermark". | |
| transparent | No | Ask for a transparent background by default. | |
| reference_images | No | Reference art for this subject. Each must sit inside the server allowlist. |