Fuser

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.

POST/v1/stock_import
MCP tool stock_import

Try it

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

  • canvasIdstringrequired

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

  • stockIdstringrequired

    The stockId stock_search returned.

  • type"image" | "video"required

    The type stock_search returned for it.

Output

  • urlstring
  • mimeTypestring

On this page