Use a stock item
Copy one stock_search result into the user's media and this canvas, for the user's work under the Stock Library License. Returns a link: add it with canvas_edit as an ImageNode (input image) or VideoNode (input video) and wire that into a generator as a reference or start frame. One item per call, only ones the work needs; 50 imports a day.
/v1/stock_importstock_importTry it
{
"url": "https://media.fuser.studio/9c2a5d6e7f8a.png",
"mimeType": "image/png"
}Example
curl -X POST https://api.fuser.studio/v1/stock_import \
-H "x-api-key: $FUSER_API_KEY" \
-H "content-type: application/json" \
-d '{
"canvasId": "3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c",
"stockId": "example stock id",
"type": "image"
}'const result = await fuser.stock.import({
canvasId: '3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c',
stockId: 'example stock id',
type: 'image',
});See the TypeScript SDK.
Input
canvasIdstringrequiredThe canvas id. Pass it to canvas_get, canvas_edit and run_start.
stockIdstringrequiredThe stockId stock_search returned.
type"image" | "video"requiredThe type stock_search returned for it.
Output
urlstringmimeTypestring
Search the stock library
Find images and videos (no audio) in Fuser's stock library for reference, starter or style images, with a small preview of each. Search by words, by a stock item to look like (similarTo), or both. Pass a result's stockId and type to stock_import to put it on a canvas. One search pages through at most 200 results; each user has 300 searches and 50 imports a day. Stock is for the user's work and as model inputs only: never to train, embed or index models, and never to download in bulk.
Upload files
Step 1 of putting files from the user's machine on a canvas, for agents that run commands on that machine (Claude Code, Codex, an IDE). List the files (up to 50): each comes back with a link to PUT it to, or done if Fuser already has it. Then call upload_finish with uploadId. In a chat app use upload_box instead; a cloud code sandbox can't reach these links.