Fuser

Save nodes as a recipe

Save some of the canvas's nodes as a recipe in your library (a private draft), so the workflow can be reused as one Recipe node. Nodes that feed the selection from outside it become the recipe's inputs, and its last results its outputs. The nodes stay on the canvas as they are. Place the recipe anywhere later with canvas_edit (a RecipeNode with its recipeKey). To change a recipe of yours that is still a private draft, pass its recipeKey: the nodes become its next version (its name and tags stay), and canvases using it show Update available.

POST/v1/recipe_save
MCP tool recipe_save

Try it

POSTapi.fuser.studio/v1/recipe_save
BodyJSON
ResponseExample
{
  "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"
      }
    ]
  },
  "next": "example next"
}

Example

curl -X POST https://api.fuser.studio/v1/recipe_save \
  -H "x-api-key: $FUSER_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "canvasId": "3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c",
  "nodeIds": [
    "example node ids"
  ],
  "title": "Coral reef poster",
  "categories": [
    "branding-identity"
  ],
  "tags": [
    "example tags"
  ]
}'
const result = await fuser.recipe.save({
  canvasId: '3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c',
  nodeIds: ['example node ids'],
  title: 'Coral reef poster',
  categories: ['branding-identity'],
  tags: ['example tags'],
});

See the TypeScript SDK.

Input

  • canvasIdstringrequired

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

  • nodeIdsstring[]required

    The nodes that make up the workflow.

  • recipeKeystring

    A private draft recipe of yours: save these nodes as its next version instead of a new recipe.

  • titlestringrequired

    A short name, e.g. "Product ad in three sizes".

  • descriptionstring

    One sentence on what goes in and what comes out.

  • categories("branding-identity" | "marketing-advertising" | "social-content" | "film-entertainment" | "gaming" | "memes" | "music-album-art" | "fashion-streetwear" | "architecture-spaces" | "interiors-decor" | "art-illustration" | "photography" | "editorial-publishing" | "type-lettering" | "product-industrial" | "web-interface" | "zines-diy" | "toys-collectibles" | "generators" | "creative-tools" | "games" | "interactive-experiences" | "portfolios" | "chatbots-agents" | "music-instruments" | "landing-pages" | "directories-indexes" | "moodboard-collage" | "readers-zines" | "widgets-embeds" | "posters-key-art" | "logos-brand-kits" | "character-concept-sheets" | "product-packaging-mockups" | "lookbooks-editorials" | "storyboards-comics" | "stickers-emotes" | "thumbnails-title-cards" | "album-cover-art" | "template-type-lettering" | "zines-publications" | "merch-apparel" | "moodboards-style-frames" | "icon-asset-packs" | "wallpapers-backplates")[]required

    One to three categories.

  • tagsstring[]required

    One to five short tags.

Output

  • nextstring

On this page