ImageStep

v0.2.1
dev.imagestep/mcp Checked 2 days ago Published 1 month ago

The 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…

ParameterTypeDescription
prompt *string
collectionstringCollection 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.
countinteger
dry_runbooleanPrice only — nothing is created or charged.
idempotency_keystringYour 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…
modelstringImage model id (default: the op's defaultModel, see the resource imagestep://ops/generate). Models with their prices: the resource imagestep://models/ai_image.
parametersobjectModel-specific parameters, e.g. {"aspectRatio": "16:9"}.
presetstringA 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…
publishbooleanPublish result assets so each output has a stable publicUrl on the CDN — the output itself at full size, not a thumbnail.
retention_daysintegerKeep 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…
waitbooleanWait for the job to finish (up to wait_seconds) and return its outputs. false → return the job handle now; poll with job_status.
wait_secondsintegerHow 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…

ParameterTypeDescription
op *string
asset_idsarrayExisting asset ids to process — at most 500 in one call here; a bigger batch is the CLI's or an SDK's.
collectionstringCollection 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_runbooleanPrice 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_pathsarrayLocal files to upload first (only when the server runs on your machine over stdio).
idempotency_keystringYour 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…
modelstringOverride the op's default model (AI ops). Models with their prices: the resource imagestep://models/ai_image (imagestep://models/analyze for analyze).
parametersobjectOp 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…
promptstringRequired for op=edit.
publishbooleanPublish result assets so each output has a stable publicUrl on the CDN — the output itself at full size, not a thumbnail.
retention_daysintegerKeep 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…
urlsarrayPublic http(s) image URLs to ingest first.
variantsarraySeveral 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…
waitbooleanWait for the job to finish (up to wait_seconds) and return its outputs. false → return the job handle now; poll with job_status.
wait_secondsintegerHow 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…

ParameterTypeDescription
preset *stringPreset slug or id, or slug@version to run exactly that version.
asset_idsarrayExisting asset ids to process — at most 500 in one call here; a bigger batch is the CLI's or an SDK's.
collectionstringCollection 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.
countintegerHow many images a preset that starts from a prompt makes; default 1. With images, one output per input.
dry_runbooleanPrice 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_pathsarrayLocal files to upload first (only when the server runs on your machine over stdio).
idempotency_keystringYour 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…
promptstringThis 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…
publishbooleanPublish result assets so each output has a stable publicUrl on the CDN — the output itself at full size, not a thumbnail.
retention_daysintegerKeep 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…
urlsarrayPublic http(s) image URLs to ingest first.
waitbooleanWait for the job to finish (up to wait_seconds) and return its outputs. false → return the job handle now; poll with job_status.
wait_secondsintegerHow 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…

ParameterTypeDescription
name *stringWhat a person sees in the console.
steps *arrayRun in order, one op per step.
descriptionstringOne sentence on what the preset is for.
idempotency_keystringYour 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…
slugstringURL-safe identifier: lowercase letters, digits and single hyphens; derived from name when omitted. builtin- is reserved.
subjectsarrayConsistency 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.

ParameterTypeDescription
job_id *string
items_cursorstringThe itemsCursor of an earlier job_status answer: the items after it. Send the same items_status as that call, if any.
items_statusstringOnly 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.
publishbooleanAlso 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.

ParameterTypeDescription
collectionstringCollection name, matched exactly.
created_fromstringOnly assets made since: an ISO-8601 date or instant in UTC (2026-09-14), or epoch millis.
created_tostringOnly assets made before; a bare date covers the whole of that day.
cursorstringThe nextCursor of the previous answer: the rows after it. Send it unchanged, with the same filters; not with page.
group_bystring"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_collectionbooleanfalse is everything not in a collection — what to tidy up. Cannot be combined with collection.
job_idstringEverything one job produced — the id job_status returns. An upload has no job and never matches.
mimestringe.g. image/png
min_heightinteger
min_widthinteger
pageintegerPage number from 0; leave it out to start from the top, and when you send cursor.
per_pageintegerPage size. 100 is the maximum; 20 keeps a browse cheap in context.
qstringKeyword in name / metadata; with group_by, part of a collection's name.
statusstringIngest 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.
tagstringOne of the asset's tags — the caller's own labels — matched exactly.
viewstring

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.

ParameterTypeDescription
kind *stringcapability_gap: something ImageStep cannot do. bug: something it does wrong.
message *stringWhat you needed, what you tried, what happened.
contextobjectWhat helps reproduce it: ids, parameters, the requestId of a failed call. At most 4000 characters once encoded; never image bytes or keys.
idempotency_keystringYour 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…
opstringThe op it concerns — one that does not exist yet is the most useful report.