imference-mcp
v0.5.1MCP 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.
| Parameter | Type | Description |
|---|---|---|
kind | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model 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.
| Parameter | Type | Description |
|---|---|---|
model | string | Filter 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.…
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category: style, character, concept, clothing, pose, detail, other |
model | string | Only 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…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Text prompt describing the desired output |
batch_nbr | integer | Number 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_s | number | Video 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_code | string | Output 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   |
fps | integer | Video only: frames per second |
guidance_scale | number | CFG scale (model default if omitted) |
img_url | string | Source 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_image | boolean | Embed the finished image in the result so you can see it (default true; images ≤ 3MB only, never videos) |
loras | array | OMIT 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… |
model | string | Model code from list_models. Required in the cloud; locally, omitted = the model selected in Imference Desktop. |
negative_prompt | string | What to avoid (model default if omitted) |
num_frames | integer | Video only: number of frames |
rail | string | Payment rail: 'credits' (Imference key balance) or 'x402' (per-request USDC payment on Base). Default: credits if an Imference key is configured, else x402. |
run_on | string | Where 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… |
scheduler | string | Sampler/scheduler (model default if omitted) |
seed | integer | Seed for reproducibility (random if omitted) |
steps | integer | Diffusion steps (model default if omitted) |
wait_seconds | integer | How 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.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | The request_id returned by generate or an editing tool |
include_image | boolean | Embed the finished image in the result (default true; images ≤ 3MB only) |
wait_seconds | integer | Local 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.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | Destination file path (parent directories are created) |
request_id | string | Alternatively, the request_id of a finished generation |
url | string | Media 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor of the previous page |
limit | integer | Max calls (default 25) |
rail | string | Whose calls: the Imference key's (credits) or the wallet's (x402). Default: credits when an Imference key is set, else x402 |
since | string | Only 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).
| Parameter | Type | Description |
|---|---|---|
category | string | Filter 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 40 MP. |
background | string | Fill for transparent pixels when the format has no alpha (JPEG). Default: '#ffffff'. |
format | string | Default: 'webp'. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
lossless | boolean | WebP lossless. Default: false. |
max_kb | integer | Lower the quality until the file fits (JPEG/WebP). Optional. |
quality | integer | JPEG/WebP quality. Default: 85. |
rail | string | Cloud 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_on | string | Where 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_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 40 MP. |
aspect | string | e.g. 16:9; centered crop, overrides the rectangle. Optional. |
format | string | Default: 'same'. |
height | integer | Crop height (default: to the bottom edge). Optional. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
rail | string | Cloud 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_on | string | Where 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_seconds | integer | Cloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too). |
width | integer | Crop width (default: to the right edge). Optional. |
x | integer | Default: 0. |
y | integer | Default: 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP. |
detail | string | Default: 'more_detailed'. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
rail | string | Cloud 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_on | string | Where 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_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP. |
mask * | string | White = 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. |
dilate | integer | Grow the mask by this many pixels (catches edges and shadows). Default: 8. |
format | string | webp: high quality (lossy, q92), far smaller files. png: lossless. Over 16383 px a side the result is png. Default: 'webp'. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
rail | string | Cloud 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_on | string | Where 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_seconds | integer | Cloud 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…
| Parameter | Type | Description |
|---|---|---|
image * | string | Image to edit (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 4 MP. |
instruction * | string | The change to make, e.g. "replace the sky with a sunset". Required. |
guidance | number | True CFG scale (default: the model's recipe, 1.0 for the Lightning build). Optional. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
keep_size | boolean | Resize 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. |
model | string | An instruction-edit model (catalog models with engine qwenimage-edit, e.g. qwen-image-edit-2511). Default: 'qwen-image-edit-2511'. |
negative_prompt | string | Optional. |
rail | string | Cloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402. |
references | array | Optional 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_on | string | Where 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.… |
seed | integer | Fixed seed for a reproducible result (default: random). Optional. |
steps | integer | Denoising steps (default: the model's recipe, 4 for the Lightning build of qwen-image-edit-2511). Optional. |
wait_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
video * | string | Source video or GIF (video). A local file path, an https URL or a data: URI. Limits: ≤ 200 MB, ≤ 10 s. |
factor | number | Default: 2. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
rail | string | Cloud 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_on | string | Where 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_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 4 MP. |
model * | string | Generation model (a catalog model name that accepts an image input). Required. |
bottom | integer | Default: 0. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
left | integer | Default: 0. |
negative_prompt | string | Optional. |
prompt | string | Prompt (default: empty; reuse the image's original prompt for best results). Optional. |
rail | string | Cloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402. |
right | integer | Default: 0. |
run_on | string | Where 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.… |
seed | integer | Fixed seed for a reproducible result (default: random). Optional. |
top | integer | Default: 0. |
wait_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP. |
background | string | Background for output=color. Default: '#ffffff'. |
format | string | webp: 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_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
model | string | birefnet-lite: best edges. isnet: general use. u2netp: tiny and fast (CPU). Default: 'birefnet-lite'. |
output | string | Default: 'png-alpha'. |
rail | string | Cloud 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_on | string | Where 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.… |
threshold | number | Hard cut at this level (default: soft alpha). Optional. |
wait_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 40 MP. |
format | string | Default: 'same'. |
height | integer | Target height in pixels. Optional. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
mode | string | fit: inside the box, keep ratio. fill: cover the box and center-crop. stretch: exact size. Default: 'fit'. |
rail | string | Cloud 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_on | string | Where 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.… |
scale | number | Scale factor, used when width and height are both empty. Optional. |
wait_seconds | integer | Cloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too). |
width | integer | Target 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP. |
format | string | webp: high quality (lossy, q92), far smaller files. png: lossless. Over 16383 px a side the result is png. Default: 'webp'. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
max_faces | integer | Default: 10. |
rail | string | Cloud 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_on | string | Where 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.… |
strength | number | Blend between the original (0) and the restored face (1). Default: 0.8. |
wait_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 16 MP. |
points * | array | Clicks in image pixels: [{x, y, label}] with label 1 = include, 0 = exclude. Required. |
dilate | integer | Default: 0. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
rail | string | Cloud 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_on | string | Where 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_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 40 MP. |
format | string | Default: 'same'. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
rail | string | Cloud 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_on | string | Where 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_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source 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. |
format | string | webp: high quality (lossy, q92), far smaller files. png: lossless. Over 16383 px a side the result is png. Default: 'webp'. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
model | string | x4plus for photos and renders, anime for illustrations. Default: 'realesrgan-x4plus'. |
rail | string | Cloud 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_on | string | Where 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.… |
scale | number | Default: 4. |
tile | integer | Tile size (0 = whole image; lower uses less memory). Default: 256. |
wait_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
image * | string | Source image (image). A local file path, an https URL or a data: URI. Limits: ≤ 30 MB, ≤ 4 MP. |
model * | string | Generation model (a catalog model name that accepts an image input). Required. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
negative_prompt | string | Optional. |
prompt | string | Prompt (default: empty; reuse the image's original prompt for best results). Optional. |
rail | string | Cloud 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_on | string | Where 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.… |
seed | integer | Fixed seed for a reproducible result (default: random). Optional. |
strength | number | How 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_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
videos * | array | Clips, in order (video). A list of local file paths, https URLs or data: URIs, in order. Limits: ≤ 500 MB, ≤ 600 s, 2–20 items. |
fps | integer | Output frame rate (default: first clip). Optional. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
rail | string | Cloud 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_on | string | Where 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_seconds | integer | Cloud 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).
| Parameter | Type | Description |
|---|---|---|
video * | string | Source video or GIF (video). A local file path, an https URL or a data: URI. Limits: ≤ 500 MB, ≤ 600 s. |
format | string | Default: 'mp4'. |
fps | integer | Output frame rate (default: source, GIF: 15). Optional. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
rail | string | Cloud 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_on | string | Where 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_seconds | integer | Cloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too). |
width | integer | Output 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).
| Parameter | Type | Description |
|---|---|---|
video * | string | Source video or GIF (video). A local file path, an https URL or a data: URI. Limits: ≤ 500 MB, ≤ 600 s. |
end | number | End, seconds (default: end of the video). Optional. |
include_image | boolean | Embed image outputs in the result so you can see them (default true; ≤ 3 MB, never videos). |
rail | string | Cloud payment rail: 'credits' (Imference key balance) or 'x402' (per-run USDC payment on Base). Default: credits if an Imference key is configured, else x402. |
reencode | boolean | Frame-accurate cut (re-encode). False = fast keyframe cut. Default: true. |
run_on | string | Where 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.… |
start | number | Start, seconds. Default: 0. |
wait_seconds | integer | Cloud runs: how long to wait for the result before returning the request_id for check_status (default 50, 0 = return immediately; local runs too). |