Import an image or video
Copy an image or video from a public URL into the canvas's assets and get a Fuser link for it. Use it before putting a web link on the canvas: it says straight away when the link can't be fetched, and the copy won't expire. For a file on the user's machine use upload_start.
/v1/media_importmedia_importTry it
{
"url": "https://media.fuser.studio/9c2a5d6e7f8a.png",
"mimeType": "image/png"
}Example
curl -X POST https://api.fuser.studio/v1/media_import \
-H "x-api-key: $FUSER_API_KEY" \
-H "content-type: application/json" \
-d '{
"canvasId": "3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c",
"url": "https://media.fuser.studio/9c2a5d6e7f8a.png"
}'const result = await fuser.media.import({
canvasId: '3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c',
url: 'https://media.fuser.studio/9c2a5d6e7f8a.png',
});See the TypeScript SDK.
Input
canvasIdstringrequiredThe canvas id. Pass it to canvas_get, canvas_edit and run_start.
urlstringrequired
Output
urlstringmimeTypestring
Look at media
See Fuser images and 3D models as small previews, and the first frame of a video, with facts such as size, length and transparency. Look at results before describing or judging them.
Download media as a zip
A link that downloads a canvas's results as one zip file, for when the user wants their files ('download everything', 'send me the images as a zip'). Give the user the link; it works for an hour. It changes nothing on the canvas. To back up the whole canvas instead, the user saves a .fsr file from the canvas menu in the Fuser app (Download project) and loads it with Upload project.