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.
/v1/recipe_saverecipe_saveTry it
{
"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
canvasIdstringrequiredThe canvas id. Pass it to canvas_get, canvas_edit and run_start.
nodeIdsstring[]requiredThe nodes that make up the workflow.
recipeKeystringA private draft recipe of yours: save these nodes as its next version instead of a new recipe.
titlestringrequiredA short name, e.g. "Product ad in three sizes".
descriptionstringOne 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")[]requiredOne to three categories.
tagsstring[]requiredOne to five short tags.
Output
nextstring
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.
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.