ImageStep
v0.2.1The image pipeline for agents: presets, assets and jobs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate Generate images from a prompt
Text → image(s). Returns asset ids and public URLs, never bytes. For a recurring character or product, pass `preset`: a saved preset (save_preset) whose generate step carries its `subjects` — reference images plus a locked descriptor — so every image in a batch shows the same one; pin it as slug@version when the batch has to match a later run. Cost: AI ops charge credits per item (see the estimate); deterministic ops (resize/convert/compress/crop/pad/grayscale/rotate/flip/flop/trim/flatten/adjust/mask/blur_region/overlay/caption/render_template) are free on paid plans and count against t…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
collection | string | Collection to put the new assets in (an opaque name; search_assets filters on it). Without one, an output made from an asset is in that asset's collection. |
count | integer | |
dry_run | boolean | Price only — nothing is created or charged. |
idempotency_key | string | Your key for this submission. Calling again with the same key and the same arguments returns the job the first call created instead of submitting (and charging for) a second one; the same key with dif… |
model | string | Image model id (default: the op's defaultModel, see the resource imagestep://ops/generate). Models with their prices: the resource imagestep://models/ai_image. |
parameters | object | Model-specific parameters, e.g. {"aspectRatio": "16:9"}. |
preset | string | A saved preset (slug, id, or slug@version to run exactly that version) whose generate step supplies the model, default parameters and consistency subjects; {{subject.<name>}} in its prompt expands to… |
publish | boolean | Publish result assets so each output has a stable publicUrl on the CDN — the output itself at full size, not a thumbnail. |
retention_days | integer | Keep what this call stores — the images you hand it and the ones it makes — this many days instead of the account's plan retention. Shorter only: more is kept for the plan's time. Use it when the… |
wait | boolean | Wait for the job to finish (up to wait_seconds) and return its outputs. false → return the job handle now; poll with job_status. |
wait_seconds | integer | How long to wait when wait=true. |
transform Run one atomic op on assets, or render a template
Apply one operation to one or more images, or render a template: edit, remove_bg, upscale, restore_face, colorize, analyze, resize, convert, compress, crop, pad, grayscale, rotate, flip, flop, trim, flatten, adjust, mask, blur_region, overlay, caption, render_template, read_metadata (built-in list — GET /api/v1/ops could not be read, so an op added since this release may be missing). Inputs are asset ids, local file paths (stdio) or public URLs. ONE local file or URL with a deterministic op runs synchronously and NOTHING is stored in the account (no asset id): the result is written to a temp…
| Parameter | Type | Description |
|---|---|---|
op * | string | |
asset_ids | array | Existing asset ids to process — at most 500 in one call here; a bigger batch is the CLI's or an SDK's. |
collection | string | Collection to put the new assets in (an opaque name; search_assets filters on it). Without one, an output made from an asset is in that asset's collection. |
dry_run | boolean | Price only — nothing is created, uploaded or charged. asset_ids are priced as themselves; file_paths and urls by how many there are, since the price depends on the op, model and parameters, never on… |
file_paths | array | Local files to upload first (only when the server runs on your machine over stdio). |
idempotency_key | string | Your key for this submission. Calling again with the same key and the same arguments returns the job the first call created instead of submitting (and charging for) a second one; the same key with dif… |
model | string | Override the op's default model (AI ops). Models with their prices: the resource imagestep://models/ai_image (imagestep://models/analyze for analyze). |
parameters | object | Op parameters — resize {width,height,fit}; convert {format,quality}; crop {left,top,width,height}; pad {top,bottom,left,right,background}; upscale {scaleFactor} … (built-in summary: GET /api/v1/op… |
prompt | string | Required for op=edit. |
publish | boolean | Publish result assets so each output has a stable publicUrl on the CDN — the output itself at full size, not a thumbnail. |
retention_days | integer | Keep what this call stores — the images you hand it and the ones it makes — this many days instead of the account's plan retention. Shorter only: more is kept for the plan's time. Use it when the… |
urls | array | Public http(s) image URLs to ingest first. |
variants | array | Several outputs from one call (contract §8): the op runs once per variant for every input image, in ONE job, and each variant is a new asset. Top-level `parameters` are the shared half, e.g. paramete… |
wait | boolean | Wait for the job to finish (up to wait_seconds) and return its outputs. false → return the job handle now; poll with job_status. |
wait_seconds | integer | How long to wait when wait=true. |
run_preset Run a saved preset (a versioned list of steps) on assets
Presets are the way to chain ops (resize → convert → sharpen…) and to keep output consistent across batches. Pass the preset slug or id (built-ins like builtin-util-to-webp, or your own), or slug@version — what save_preset answers with — to run exactly that version. A preset whose first step is generate starts from its prompt and takes no images: call it with the preset alone, or with a prompt of your own for this run and a count. For a recurring character or product, a preset's `subjects` carry both halves of consistency — the reference images pin the geometry and each subject's l…
| Parameter | Type | Description |
|---|---|---|
preset * | string | Preset slug or id, or slug@version to run exactly that version. |
asset_ids | array | Existing asset ids to process — at most 500 in one call here; a bigger batch is the CLI's or an SDK's. |
collection | string | Collection to put the new assets in (an opaque name; search_assets filters on it). Without one, an output made from an asset is in that asset's collection. |
count | integer | How many images a preset that starts from a prompt makes; default 1. With images, one output per input. |
dry_run | boolean | Price only — nothing is created, uploaded or charged. asset_ids are priced as themselves; file_paths and urls by how many there are, since the price depends on the op, model and parameters, never on… |
file_paths | array | Local files to upload first (only when the server runs on your machine over stdio). |
idempotency_key | string | Your key for this submission. Calling again with the same key and the same arguments returns the job the first call created instead of submitting (and charging for) a second one; the same key with dif… |
prompt | string | This run's prompt, in place of the one on the preset's AI step. {{subject.<name>}} expands to that subject's descriptor. A preset of several steps, or with no AI step, refuses it (invalid_param on pro… |
publish | boolean | Publish result assets so each output has a stable publicUrl on the CDN — the output itself at full size, not a thumbnail. |
retention_days | integer | Keep what this call stores — the images you hand it and the ones it makes — this many days instead of the account's plan retention. Shorter only: more is kept for the plan's time. Use it when the… |
urls | array | Public http(s) image URLs to ingest first. |
wait | boolean | Wait for the job to finish (up to wait_seconds) and return its outputs. false → return the job handle now; poll with job_status. |
wait_seconds | integer | How long to wait when wait=true. |
save_preset Save a preset (a named, versioned list of op steps)
Save steps you will run again as a preset, then run it with run_preset. Save one when you have run the same chain twice, or when a batch has to stay consistent (a preset with subjects). Each step is one op from the catalogue with the parameters transform takes for it (the resource imagestep://ops/{op}); the service checks every step before storing anything and refuses a bad one with invalid_param naming steps[i] — including an order that cannot run: an op that answers with JSON (analyze) anywhere but last, or one that reads no image (generate) in a preset of several steps. Steps may mix dete…
| Parameter | Type | Description |
|---|---|---|
name * | string | What a person sees in the console. |
steps * | array | Run in order, one op per step. |
description | string | One sentence on what the preset is for. |
idempotency_key | string | Your key for this write. Calling again with the same key and the same arguments returns what the first call answered instead of writing twice; the same key with different arguments is refused with ide… |
slug | string | URL-safe identifier: lowercase letters, digits and single hyphens; derived from name when omitted. builtin- is reserved. |
subjects | array | Consistency for a recurring character or product. Needs a generate or edit step. |
job_status Job status and outputs
Progress of a job by id (per-item states) and, once finished, its output asset ids — with public URLs for outputs already published, or pass publish:true. Items come a page at a time: items_cursor reads on, items_status reads only the items in one state (FAILED: what a resume would run again). Free.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
items_cursor | string | The itemsCursor of an earlier job_status answer: the items after it. Send the same items_status as that call, if any. |
items_status | string | Only the job's items in this state, a page at a time — FAILED is what a resume would run again. The answer's items are that page; its itemsCursor reads on. |
publish | boolean | Also publish the outputs so each has a stable publicUrl on the CDN. Off by default — checking on a job does not make its results public; pass true when you want the URLs. |
search_assets Search assets
Find assets by collection, name/keyword, mime type, tag, size, ingest state or when they were made. Returns references (id, dimensions, tags, publicUrl, expiry) — never bytes. With group_by "collection" it lists your collections instead — check a name before filtering or submitting into it, since a misspelt one is simply a new collection. Free.
| Parameter | Type | Description |
|---|---|---|
collection | string | Collection name, matched exactly. |
created_from | string | Only assets made since: an ISO-8601 date or instant in UTC (2026-09-14), or epoch millis. |
created_to | string | Only assets made before; a bare date covers the whole of that day. |
cursor | string | The nextCursor of the previous answer: the rows after it. Send it unchanged, with the same filters; not with page. |
group_by | string | "collection" lists your collections (name, asset count, when the latest was added), most recently added to first, instead of assets; only q (part of the name), page, cursor and per_page apply. |
has_collection | boolean | false is everything not in a collection — what to tidy up. Cannot be combined with collection. |
job_id | string | Everything one job produced — the id job_status returns. An upload has no job and never matches. |
mime | string | e.g. image/png |
min_height | integer | |
min_width | integer | |
page | integer | Page number from 0; leave it out to start from the top, and when you send cursor. |
per_page | integer | Page size. 100 is the maximum; 20 keeps a browse cheap in context. |
q | string | Keyword in name / metadata; with group_by, part of a collection's name. |
status | string | Ingest state. FAILED is an upload whose ingest never finished, with why on its error (retryable: whether uploading it again can help) — check this after uploading a batch. |
tag | string | One of the asset's tags — the caller's own labels — matched exactly. |
view | string |
send_feedback Report what ImageStep could not do
Call this whenever you conclude ImageStep cannot do what the task asks — before you tell the person, every time. That covers an input or output it cannot handle, an action none of these tools performs, an op that does not exist, a parameter that is missing, a result that is wrong. Saying so in your reply reaches only the person; this reaches the people who build ImageStep. Report instead of working around the gap with other ops. Free: no credits, no job.
| Parameter | Type | Description |
|---|---|---|
kind * | string | capability_gap: something ImageStep cannot do. bug: something it does wrong. |
message * | string | What you needed, what you tried, what happened. |
context | object | What helps reproduce it: ids, parameters, the requestId of a failed call. At most 4000 characters once encoded; never image bytes or keys. |
idempotency_key | string | Your key for this write. Calling again with the same key and the same arguments returns what the first call answered instead of writing twice; the same key with different arguments is refused with ide… |
op | string | The op it concerns — one that does not exist yet is the most useful report. |