Fuser

Build a recipe

Turn an empty Recipe node (type RecipeNode, added with canvas_edit) into a reusable recipe: describe the workflow in prompt and Fuser builds it, saves it to your library as a private draft and pins the node to it, with named input and output sockets. Use it when the user asks for a recipe or a workflow they will reuse; for a one-off, build the nodes with canvas_edit. Call it again without prompt to check on a build. Once built, set its inputs and wire its sockets with canvas_edit, then run it like any node.

POST/v1/recipe_build
MCP tool recipe_build

Try it

POSTapi.fuser.studio/v1/recipe_build
BodyJSON
ResponseExample
{
  "status": "building",
  "revision": 1,
  "next": "example next",
  "recipe": {
    "recipeKey": "example recipe key",
    "version": 1,
    "title": "Coral reef poster",
    "inputs": [
      {
        "socket": "tool2_in_image",
        "name": "Example",
        "type": "OpenAIGPTImageNode"
      }
    ],
    "outputs": [
      {
        "socket": "tool2_in_image",
        "name": "Example",
        "type": "OpenAIGPTImageNode"
      }
    ]
  },
  "buildCredits": 13.1
}

Example

curl -X POST https://api.fuser.studio/v1/recipe_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.recipe.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 empty Recipe node (type RecipeNode).

  • promptstring

    The workflow in plain words, with what goes in and what comes out: "a product photo and a tagline in, three ad sizes out". Leave it out to check on a build.

  • waitSecondsintegerdefault 45

    Wait up to this long (at most 45) for the build. Builds usually take 10–30 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.

  • nextstring
  • buildCreditsnumber

    Credits the latest build of this node charged: building a recipe is billed per model call, also when it fails. Count it in what you tell the user they spent.

  • errorstring

On this page