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.
/v1/tool_buildtool_buildTry it
{
"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
canvasIdstringrequiredThe canvas id. Pass it to canvas_get, canvas_edit and run_start.
nodeIdstringrequiredThe Tool node (type UtilityNode).
promptstringWhat 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.
toolIdstringA saved tool from tool_search to place instead.
waitSecondsintegerdefault45Wait 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"revisionnumberThe canvas revision after this call. Pass it as expectedRevision on your next canvas_edit.
buildCreditsnumberCredits 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
Find a saved tool
Search the canvas's tool library (tools you or your workspace built) and Fuser's featured tools by title and description, matching any of your words, best first; one call with several words beats several one-word searches. When nothing matches well it also lists every featured tool by title, so pick from that list rather than searching again. Place a match with canvas_edit (toolId on the new Tool node). Building a new one with tool_build prompt is fine when nothing fits.
Read your account
Who you are, your personal credits and plan, and each workspace you belong to with your role, its plan, the team's credits and your monthly spend limit there. Runs on a workspace canvas spend that workspace's credits if you belong to it; runs on a personal canvas, or a workspace canvas shared with you from outside, spend yours.