imference-mcp

v0.5.1
imference-mcp Checked 1 day ago Published 26 days ago

MCP server for the Imference AI image & video generation API and editing tools (imference.com)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_models List Imference models

Overview of the generation models, made for PICKING the right one for the need: kind (image or video; kind image-edit lists the instruction-edit models of edit_with_instructions instead), style/family, one-line description, cost in credits (1 credit = $0.001), and capabilities (img2img, audio). Once a model is chosen, call get_model for its full description, recommended prompting and exact parameter bounds before generating.

ParameterTypeDescription
kindstringFilter by kind (default: image + video, the generation models). image-edit = the instruction-edit models for edit_with_instructions; all = everything.

get_model Get full details of one model

Everything about one model before generating with it: full description, how to prompt it (style and recommended prompt prefix), the exact parameters it accepts with bounds and defaults (the same list the API validates against — anything else is refused with a 400), its output formats with price multipliers, and its capabilities.

ParameterTypeDescription
model *stringModel code from list_models

list_formats List model formats

List the predefined output formats per model: format_code (e.g. 'square', 'portrait', 'landscape-wide'), its resolution/ratio, and its price multiplier (credit_multiplier — HD tiers bill more). Pass a format_code to generate to pick a size; each model has a default.

ParameterTypeDescription
modelstringFilter formats for a single model_code

list_loras List curated LoRAs

List the curated LoRAs (add-ons that push a style, character or effect on top of a model) with their pre-tuned weights and trigger words. LoRAs are OPT-IN: only use one when the user explicitly asks for a LoRA, or for a specific style / character / effect they want added that the model can't do on its own. A LoRA strongly changes the output (some are deliberately lo-fi or stylized), so never add one on your own initiative to 'improve' an image — if one looks relevant, SUGGEST it to the user and wait for their go-ahead. Don't call this before every generation — only when LoRAs are in play.…

ParameterTypeDescription
categorystringFilter by category: style, character, concept, clothing, pose, detail, other
modelstringOnly the LoRAs compatible with this model_code

generate Generate an image or video

Generate an image or video and wait for the result — on this computer's GPU with Imference Desktop (free, run_on), or in the Imference cloud. The media kind (image or video) is determined by the model — use list_models to pick a model_code, and get_model to learn how to prompt it and which parameters it accepts. Size and aspect ratio are chosen with format_code (a predefined format from list_formats), never with raw dimensions. Payment: either the credits rail (Imference key balance) or the x402 rail (pay-per-generation in USDC on Base, signed with the configured wallet); defaults to credi…

ParameterTypeDescription
prompt *stringText prompt describing the desired output
batch_nbrintegerNumber of images to generate in one request (default 1, max 4). Each image is billed. Note: the status result carries the first image only — fetch the rest with list_media.
duration_snumberVideo only: clip length in seconds, for models whose duration_s in list_models says the knob exists. Billed proportionally to the model's default duration (a 10s clip on a 5s-default model costs ×2).
format_codestringOutput size/ratio as a predefined format code from list_formats, e.g. 'square', 'portrait', 'landscape-wide' (model's default format if omitted). This is the ONLY way to pick a size or aspect ratio  
fpsintegerVideo only: frames per second
guidance_scalenumberCFG scale (model default if omitted)
img_urlstringSource image — for img2img on image models, or image-to-video on video models. An https URL; local runs also take a file path (e.g. a previous local output) or a data: URI.
include_imagebooleanEmbed the finished image in the result so you can see it (default true; images ≤ 3MB only, never videos)
lorasarrayOMIT unless the user asked for it. Curated LoRAs to stack on the model (codes from list_loras, compatible with the model; same price). LoRAs are OPT-IN: only use one when the user explicitly asks for…
modelstringModel code from list_models. Required in the cloud; locally, omitted = the model selected in Imference Desktop.
negative_promptstringWhat to avoid (model default if omitted)
num_framesintegerVideo only: number of frames
railstringPayment rail: 'credits' (Imference key balance) or 'x402' (per-request USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to generate: 'local' = Imference Desktop on this computer (free; the model must be downloaded in Desktop; LoRAs, batches and video knobs are cloud-only), 'cloud' = the Imference cloud (paid), 'a…
schedulerstringSampler/scheduler (model default if omitted)
seedintegerSeed for reproducibility (random if omitted)
stepsintegerDiffusion steps (model default if omitted)
wait_secondsintegerHow long to wait for completion before returning the request_id to poll with check_status (default 50 — MCP clients give up on a tool call after ~60s; 0 = return immediately)

check_status Check a generation or tool request

Check the status of a previously submitted generation or editing-tool run. Returns the media URL (tools: every output, plus the text of describe_image) when done, 'pending' while still running, or the failure reason. A local run (request_id local_…, still running in Imference Desktop) is waited for up to wait_seconds, then its file path is returned.

ParameterTypeDescription
request_id *stringThe request_id returned by generate or an editing tool
include_imagebooleanEmbed the finished image in the result (default true; images ≤ 3MB only)
wait_secondsintegerLocal runs (local_…): how long to wait for the end (default 50)

download_media Download a generated media file

Download a generated image or video to a local file. Pass either the media URL (from generate / check_status / list_media) or a request_id of a finished generation.

ParameterTypeDescription
output_path *stringDestination file path (parent directories are created)
request_idstringAlternatively, the request_id of a finished generation
urlstringMedia URL to download

get_balance Get credit balance

Get the remaining credit balance of the configured Imference key (1 credit = $0.001). Compare with a model's cost_credits from list_models before generating.

payment_config Show configured payment rails

Show which payment rails this server can use: credits (an Imference key, IMFERENCE_API_KEY) and/or x402 (wallet paying USDC on Base), plus the spending caps and what has been spent so far. Returns the wallet's public address when configured — fund it with USDC on Base mainnet to enable x402 payments. Never exposes key material.

wallet_balance Get wallet USDC balance

Read the configured wallet's USDC balance on Base mainnet (read-only RPC call). Use it to check the wallet can cover a generation before paying. x402 payments are gasless for the payer — only USDC is needed, no ETH.

list_media List generated media

List all images and videos previously generated with the configured Imference key, newest first.

ParameterTypeDescription
limitintegerMax rows to return (default 25)

list_history List call history

List past calls (generations and editing tools), newest first, for the Imference key (credits rail) or the configured wallet (x402 rail, signed in automatically, no payment). Each call has its status, rail, kind, credits charged and its outputs. Prompts and settings are never stored, so they are not listed. Output URLs are given for 24 h: pass one to download_media to fetch the file again; after that the call shows expired: true and no URL.

ParameterTypeDescription
cursorstringnext_cursor of the previous page
limitintegerMax calls (default 25)
railstringWhose calls: the Imference key's (credits) or the wallet's (x402). Default: credits when an Imference key is set, else x402
sincestringOnly calls at or after this RFC 3339 time

list_tools List editing tools

List the image/video editing tools (remove background, upscale, describe, outpaint, crop, convert, video trim/join...) with their price per cloud run (1 credit = $0.001), whether each runs in the cloud and/or locally in Imference Desktop (free), and whether Desktop is running right now. Each tool is also its own MCP tool (the `tool` name).

ParameterTypeDescription
categorystringFilter by category (default: all)

convert Convert / compress

Convert to PNG, JPEG or WebP and set the compression quality. Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm/directml) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 1 credit ($0.001) per run. Free when run locally. Returns: image (image).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 40 MP.
backgroundstringFill for transparent pixels when the format has no alpha (JPEG). Default: '#ffffff'.
formatstringDefault: 'webp'.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
losslessbooleanWebP lossless. Default: false.
max_kbintegerLower the quality until the file fits (JPEG/WebP). Optional.
qualityintegerJPEG/WebP quality. Default: 85.
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

crop Crop

Crop an image to a rectangle or to an aspect ratio (centered). Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm/directml) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 1 credit ($0.001) per run. Free when run locally. Returns: image (image).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 40 MP.
aspectstringe.g. 16:9; centered crop, overrides the rectangle. Optional.
formatstringDefault: 'same'.
heightintegerCrop height (default: to the bottom edge). Optional.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).
widthintegerCrop width (default: to the right edge). Optional.
xintegerDefault: 0.
yintegerDefault: 0.

describe_image Describe image

Write a detailed caption of an image, ready to reuse as a prompt (Florence-2). Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm, slow on CPU) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 2 credits ($0.002) per run. Free when run locally. Returns: text (text).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP.
detailstringDefault: 'more_detailed'.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

erase_object Magic eraser

Remove what the mask covers and fill it with matching background (LaMa). Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm/directml) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 4 credits ($0.004) per run. Free when run locally. Returns: image (image).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP.
mask *stringWhite = area to erase, same size as the image (mask image (white = selected)). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP.
dilateintegerGrow the mask by this many pixels (catches edges and shadows). Default: 8.
formatstringwebp: high quality (lossy, q92), far smaller files. png: lossless. Over 16383 px a side the result is png. Default: 'webp'.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

edit_with_instructions Edit with instructions

Edit an image by describing the change in plain words (Qwen-Image-Edit): change the background, add or remove objects, restyle, fix text. Optional reference images. Write `instruction` as one plain, specific edit, e.g. "replace the background with a beach at sunset", "remove the person on the left", "change the text on the sign to OPEN", "make it a watercolor painting". Everything not mentioned is kept. Optional `references` (up to 2 images) are referred to in the instruction as image 2 and image 3 (the edited `image` is image 1), e.g. "put the hat from image 2 on the man". To remove an object…

ParameterTypeDescription
image *stringImage to edit (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 4 MP.
instruction *stringThe change to make, e.g. "replace the sky with a sunset". Required.
guidancenumberTrue CFG scale (default: the model's recipe, 1.0 for the Lightning build). Optional.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
keep_sizebooleanResize the result back to the input size (the model works at 0.5 to 1 MP: a small input is rendered at its own size, at least 0.5 MP). Default: true.
modelstringAn instruction-edit model (catalog models with engine qwenimage-edit, e.g. qwen-image-edit-2511). Default: 'qwen-image-edit-2511'.
negative_promptstringOptional.
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
referencesarrayOptional reference images (image 2, image 3 in the instruction) (image). A list of local file paths, https URLs or data: URIs, in order. Limits: ≤ 30 MB, ≤ 4 MP, 1–2 items.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
seedintegerFixed seed for a reproducible result (default: random). Optional.
stepsintegerDenoising steps (default: the model's recipe, 4 for the Lightning build of qwen-image-edit-2511). Optional.
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

interpolate_frames Smooth motion

Double a video's frame rate with RIFE frame interpolation. Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm/directml, slow on CPU) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 6 credits ($0.006) per run. Free when run locally. Returns: video (video, mp4).

ParameterTypeDescription
video *stringSource video or GIF (video). A local file path, an https URL or a data: URI. Limits: ≤ 200 MB, ≤ 10 s.
factornumberDefault: 2.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

outpaint Expand image

Extend the canvas on any side and let a generation model paint the new area. Needs a generation model: pass `model` (a model_code from list_models that accepts an image input). Runs in the cloud on that model's workers; locally only when Imference Desktop reports it available (GPU). Price in the cloud: the selected model's generation price (see get_model / list_models). Free when run locally. Returns: image (image).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 4 MP.
model *stringGeneration model (a catalog model name that accepts an image input). Required.
bottomintegerDefault: 0.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
leftintegerDefault: 0.
negative_promptstringOptional.
promptstringPrompt (default: empty; reuse the image's original prompt for best results). Optional.
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
rightintegerDefault: 0.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
seedintegerFixed seed for a reproducible result (default: random). Optional.
topintegerDefault: 0.
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

remove_background Remove background

Cut out the subject: transparent PNG, a mask, or the subject on a solid color. Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm/directml) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 3 credits ($0.003) per run. Free when run locally. Returns: image (image).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP.
backgroundstringBackground for output=color. Default: '#ffffff'.
formatstringwebp: high quality (lossy, q92), far smaller files. png: lossless. Over 16383 px a side the result is png. The mask output is always png. Default: 'webp'.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
modelstringbirefnet-lite: best edges. isnet: general use. u2netp: tiny and fast (CPU). Default: 'birefnet-lite'.
outputstringDefault: 'png-alpha'.
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
thresholdnumberHard cut at this level (default: soft alpha). Optional.
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

resize Resize

Resize an image to an exact size, a bounding box or a scale factor. Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm/directml) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 1 credit ($0.001) per run. Free when run locally. Returns: image (image).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 40 MP.
formatstringDefault: 'same'.
heightintegerTarget height in pixels. Optional.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
modestringfit: inside the box, keep ratio. fill: cover the box and center-crop. stretch: exact size. Default: 'fit'.
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
scalenumberScale factor, used when width and height are both empty. Optional.
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).
widthintegerTarget width in pixels. Optional.

restore_faces Restore faces

Detect faces and restore them with GFPGAN, blended back into the image. Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm/directml) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 4 credits ($0.004) per run. Free when run locally. Returns: image (image).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP.
formatstringwebp: high quality (lossy, q92), far smaller files. png: lossless. Over 16383 px a side the result is png. Default: 'webp'.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
max_facesintegerDefault: 10.
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
strengthnumberBlend between the original (0) and the restored face (1). Default: 0.8.
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

select_object Click to select

Select an object from one or more clicks and return its mask (MobileSAM). Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm/directml) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 1 credit ($0.001) per run. Free when run locally. Returns: mask (mask, png).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP.
points *arrayClicks in image pixels: [{x, y, label}] with label 1 = include, 0 = exclude. Required.
dilateintegerDefault: 0.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

strip_metadata Remove metadata

Remove EXIF, XMP, PNG text chunks (prompts, settings) and GPS data before sharing. Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm/directml) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 1 credit ($0.001) per run. Free when run locally. Returns: image (image).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 40 MP.
formatstringDefault: 'same'.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

upscale Upscale

Upscale 2x or 4x with Real-ESRGAN (sharp details, no hallucinated content). Runs locally in Imference Desktop (free; cpu/cuda/mps/rocm/directml, slow on CPU) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 4 credits ($0.004) per run. Free when run locally. Returns: image (image).

ParameterTypeDescription
image *stringSource image (at most 4 MP; the output is up to 64 MP) (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 4 MP.
formatstringwebp: high quality (lossy, q92), far smaller files. png: lossless. Over 16383 px a side the result is png. Default: 'webp'.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
modelstringx4plus for photos and renders, anime for illustrations. Default: 'realesrgan-x4plus'.
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
scalenumberDefault: 4.
tileintegerTile size (0 = whole image; lower uses less memory). Default: 256.
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

vary_image Vary

Make a variation of an image with a generation model (img2img). Subtle keeps the composition, strong reimagines it. Needs a generation model: pass `model` (a model_code from list_models that accepts an image input). Runs in the cloud on that model's workers; locally only when Imference Desktop reports it available (GPU). Price in the cloud: the selected model's generation price (see get_model / list_models). Free when run locally. Returns: image (image).

ParameterTypeDescription
image *stringSource image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 4 MP.
model *stringGeneration model (a catalog model name that accepts an image input). Required.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
negative_promptstringOptional.
promptstringPrompt (default: empty; reuse the image's original prompt for best results). Optional.
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
seedintegerFixed seed for a reproducible result (default: random). Optional.
strengthnumberHow far the variation may move away from the image: low keeps the composition and details close, high reinvents more of it. Default: 0.35.
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

video_concat Join videos

Concatenate several clips into one MP4 (scaled to the first clip's size). Runs locally in Imference Desktop (free; cpu) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 3 credits ($0.003) per run. Free when run locally. Returns: video (video, mp4).

ParameterTypeDescription
videos *arrayClips, in order (video). A list of local file paths, https URLs or data: URIs, in order. Limits: ≤ 500 MB, ≤ 600 s, 2–20 items.
fpsintegerOutput frame rate (default: first clip). Optional.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).

video_convert GIF / MP4 / WebM

Convert between MP4, WebM and GIF, optionally resizing and changing the frame rate. Runs locally in Imference Desktop (free; cpu) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 2 credits ($0.002) per run. Free when run locally. Returns: video (video).

ParameterTypeDescription
video *stringSource video or GIF (video). A local file path, an https URL or a data: URI. Limits: ≤ 500 MB, ≤ 600 s.
formatstringDefault: 'mp4'.
fpsintegerOutput frame rate (default: source, GIF: 15). Optional.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).
widthintegerOutput width, height follows the ratio. Optional.

video_trim Trim video

Cut a video between two timestamps. Runs locally in Imference Desktop (free; cpu) or in the cloud; run_on 'auto' (default) uses Desktop when it is running, else the cloud. Price in the cloud: 2 credits ($0.002) per run. Free when run locally. Returns: video (video, mp4).

ParameterTypeDescription
video *stringSource video or GIF (video). A local file path, an https URL or a data: URI. Limits: ≤ 500 MB, ≤ 600 s.
endnumberEnd, seconds (default: end of the video). Optional.
include_imagebooleanEmbed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos).
railstringCloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402.
reencodebooleanFrame-accurate cut (re-encode). False = fast keyframe cut. Default: true.
run_onstringWhere to run: 'local' = Imference Desktop on this computer (free, files stay local), 'cloud' = Imference API (paid), 'auto' (default) = local when Desktop is running and can run this tool, else cloud.…
startnumberStart, seconds. Default: 0.
wait_secondsintegerCloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too).