Upload file to private library
asset_uploadUpload a local image, audio or video as base64 to your private file library for up to 30 days. If the new file exceeds the library’s space or file-count limit, the oldest uploads that unfinished plans no longer need are deleted first. Returns an upload asset ID and evicted_count without a GPU job. Use this ID in uploads for Video/Edit/Upscale/Voice, or as a Movie asset. Reuse idempotency_key on retries. Never put base64 or a local path in batch arguments.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>",
"mime_type": "<mime_type>",
"base64": "<base64>",
"idempotency_key": "<idempotency_key>",
"acknowledge_rights": "<acknowledge_rights>",
"acknowledge_privacy": "<acknowledge_privacy>"
},
"name": "asset_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | Yes | Source file bytes encoded as base64. | |
| filename | Yes | Filename for the source upload. | |
| mime_type | Yes | Media type of the uploaded file. | |
| idempotency_key | Yes | Unique key for the intended operation. Reuse it on network retries. | |
| acknowledge_rights | Yes | Confirm the user has the rights or permissions to use the source material. | |
| acknowledge_privacy | Yes | Confirm the user has permission to process any personal data in the inputs. |