Fuser

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.

POST/v1/media_import
MCP tool media_import

Try it

POSTapi.fuser.studio/v1/media_import
BodyJSON
ResponseExample
{
  "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

  • canvasIdstringrequired

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

  • urlstringrequired

Output

  • urlstring
  • mimeTypestring

On this page