Fuser

Build a tool

Turn a Tool node (type UtilityNode, added with canvas_edit) into a working tool: describe it in prompt and Fuser writes its code, or place a saved one with toolId. Tools do what generators can't: join, cut, trim or speed up videos, mix audio, crop, grid, filter, measure and convert between images, video, audio, 3D models, text and JSON (not PDF, ZIP or other files). Call it again with a prompt to change a built tool, or with neither to check on a build. Once built, wire its input sockets and set its controls with canvas_edit, then run it like any node; free tools cost nothing to run.

POST/v1/tool_build
MCP tool tool_build

Try it

POSTapi.fuser.studio/v1/tool_build
BodyJSON
ResponseExample
{
  "status": "building",
  "revision": 1,
  "tool": {
    "title": "Coral reef poster",
    "mode": "free",
    "inputs": [
      {
        "socket": "tool2_in_image",
        "kind": "image",
        "many": false,
        "required": false
      }
    ],
    "controls": [
      {
        "socket": "tool2_in_image",
        "label": "Prompt",
        "kind": "slider",
        "default": 1,
        "min": 1,
        "max": 1
      }
    ],
    "outputs": [
      {
        "socket": "tool2_in_image",
        "kind": "image"
      }
    ]
  },
  "buildCredits": 13.1
}

Example

curl -X POST https://api.fuser.studio/v1/tool_build \
  -H "x-api-key: $FUSER_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "canvasId": "3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c",
  "nodeId": "aB3dE5"
}'
const result = await fuser.tool.build({
  canvasId: '3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c',
  nodeId: 'aB3dE5',
});

See the TypeScript SDK.

Input

  • canvasIdstringrequired

    The canvas id. Pass it to canvas_get, canvas_edit and run_start.

  • nodeIdstringrequired

    The Tool node (type UtilityNode).

  • promptstring

    What the tool does, in plain words, with its inputs and the controls worth having: "join the videos in order into one clip, with a crossfade length slider". On a built tool, the change to make. Leave it out to check on a build.

  • toolIdstring

    A saved tool from tool_search to place instead.

  • waitSecondsintegerdefault 45

    Wait up to this long (at most 45) for the build. Builds usually take 30–90 seconds; call again without prompt to keep waiting.

Output

  • status"building" | "built" | "failed" | "refused" | "unbuilt"
  • revisionnumber

    The canvas revision after this call. Pass it as expectedRevision on your next canvas_edit.

  • buildCreditsnumber

    Credits the latest build of this node charged: writing a tool is billed per model call, also when it fails. Count it in what you tell the user they spent. Placing a saved tool with toolId costs nothing.

  • errorstring

On this page